From d73a3936703b49c19c13e7dea4008b6006d329a2 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Tue, 25 Jul 2023 16:58:03 +0300 Subject: [PATCH] main: increase Seastar reactor task quota in debug mode Debug mode is so slow that the work:poll ratio decreases, leading to even more slowness as more polling is done for the same amount of work. Increase the task quota to recover some performance. Ref #14752. Closes #14820 --- main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cc b/main.cc index 61d35e021b..e2f2ab7363 100644 --- a/main.cc +++ b/main.cc @@ -553,6 +553,10 @@ For more information about individual tools, run: scylla {tool_name} --help To start the scylla server proper, simply invoke as: scylla server (or just scylla). )"; app_cfg.default_task_quota = 500us; +#ifdef DEBUG + // Increase the task quota to improve work:poll ratio in slow debug mode. + app_cfg.default_task_quota = 5ms; +#endif app_cfg.auto_handle_sigint_sigterm = false; app_cfg.max_networking_aio_io_control_blocks = 50000; // We need to have the entire app config to run the app, but we need to