Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fio - keep numjob always under 256 #3137

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

SRIKKANTH
Copy link
Collaborator

No description provided.

In fio test, numjob*max_iodepth (aio-nr) should always be less than aio-max-nr.
The default value of aio-max-nr is 65536.
As max_iodepth is 256, numjob which is equal to 'nproc' should not exceed 256.
/proc/sys/fs/aio-nr is the number of events currently active.
/proc/sys/fs/aio-max-nr is the maximum number of events that can be queued.
If aio-nr reaches aio-max-nr the io performance will drop and io_setup will
fail with EAGAIN.
read: https://www.kernel.org/doc/Documentation/sysctl/fs.txt
So we set numjob to 256 if numjob is larger than 256.
@SRIKKANTH SRIKKANTH force-pushed the smyakam/storage_perf_aio_max_nr branch from f311d9d to eb2a865 Compare January 12, 2024 16:29
@SRIKKANTH SRIKKANTH merged commit dd04550 into main Jan 30, 2024
45 checks passed
@SRIKKANTH SRIKKANTH deleted the smyakam/storage_perf_aio_max_nr branch January 30, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants