-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reactor, linux-aio: advise users in more detail on setting aio-max-nr
Print a table of the AIO counts we intend to use (at "debug" level). If the intended counts cannot be allocated, reduce the network AIO count like before, but now also print an updated table (as a warning). Tell the user the specific number they should write to "/proc/sys/fs/aio-max-nr" for avoiding the reduction (assuming their current "aio-nr" does not change). If the per CPU network AIO count would have to be reduced under 1, format a clear error message with (up to) four specific recommendations: - aio-max-nr value for reaching 1 network AIOCB per CPU (always printed), - aio-max-nr value for reaching the originally requested network AIOCB per CPU (always printed), - the highest value to reduce the application's CPU count to, in order to reach 1 network AIOCB per CPU, within the current (aio-max-nr - aio-nr) budget (printed only if this SMP count is at least 1), - the value to reduce the application's CPU count to, in order to reach the originally requested network AIOCB per CPU, within the current (aio-max-nr - aio-nr) budget (printed only if this SMP count is at least 1). Motivated by <scylladb/scylladb#5981>. Signed-off-by: Laszlo Ersek <[email protected]>
- Loading branch information
Showing
2 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters