Don't choose io_uring for macOS

This commit is contained in:
Frank Chen 2023-04-27 15:18:26 +08:00
parent 7abb94fe33
commit 5b4e014b8e

View File

@ -11,6 +11,7 @@ import shutil
import sys
import os
import os.path
import platform
import signal
import re
import copy
@ -542,7 +543,8 @@ class SettingsRandomizer:
0.2, 0.5, 1, 10 * 1024 * 1024 * 1024
),
"local_filesystem_read_method": lambda: random.choice(
["read", "pread", "mmap", "pread_threadpool", "io_uring"]
# io_uring is not supported on macOS, don't choose it
["read", "pread", "mmap", "pread_threadpool", "io_uring"] if platform.system().lower() != "darwin" else ["read", "pread", "mmap", "pread_threadpool"]
),
"remote_filesystem_read_method": lambda: random.choice(["read", "threadpool"]),
"local_filesystem_read_prefetch": lambda: random.randint(0, 1),