Resolve review comments

Signed-off-by: Frank Chen <frank.chen021@outlook.com>
This commit is contained in:
Frank Chen 2023-04-27 21:03:14 +08:00
parent 5b4e014b8e
commit 33443351c3

View File

@ -543,8 +543,8 @@ class SettingsRandomizer:
0.2, 0.5, 1, 10 * 1024 * 1024 * 1024 0.2, 0.5, 1, 10 * 1024 * 1024 * 1024
), ),
"local_filesystem_read_method": lambda: random.choice( "local_filesystem_read_method": lambda: random.choice(
# io_uring is not supported on macOS, don't choose it # Allow to use uring only when running on Linux
["read", "pread", "mmap", "pread_threadpool", "io_uring"] if platform.system().lower() != "darwin" else ["read", "pread", "mmap", "pread_threadpool"] ["read", "pread", "mmap", "pread_threadpool", "io_uring"] if platform.system().lower() == "linux" else ["read", "pread", "mmap", "pread_threadpool"]
), ),
"remote_filesystem_read_method": lambda: random.choice(["read", "threadpool"]), "remote_filesystem_read_method": lambda: random.choice(["read", "threadpool"]),
"local_filesystem_read_prefetch": lambda: random.randint(0, 1), "local_filesystem_read_prefetch": lambda: random.randint(0, 1),