-
Notifications
You must be signed in to change notification settings - Fork 593
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
rpk: aio tuner should take in account /proc/sys/fs/aio-nr when setting /proc/sys/fs/aio-max-nr #4004
Comments
Have a similar issue with the Redpanda container (observed in When resources are a little scarce, i get libc++abi: terminating with uncaught exception of type std::runtime_error:
Could not setup Async I/O: Resource temporarily unavailable.
The most common cause is not enough request capacity in /proc/sys/fs/aio-max-nr.
Try increasing that number or reducing the amount of logical CPUs available for your application and WARN 2023-01-20 13:01:00,316 seastar - Requested AIO slots too large,
please increase request capacity in /proc/sys/fs/aio-max-nr. available:54510 requested:88208 unfortunately, one cannot guarantee that that much resources are available in every Testcontainer execution. The worst thing about this, is that the Container does not say that it is unhealthy. |
Same here. I'm using the attached
|
In my case I had to increase the threshold by doing:
Now all 3 brokers are able to run:
|
Any progress here? It's almost 2025 |
@jsilvao |
Version & Environment
Redpanda version: v21.11.9
What went wrong?
In hosts where
/proc/sys/fs/aio-nr
has been previously tuned via sysctl, usingrpk redpanda tune
will set the value of/proc/sys/fs/aio-max-nr
to 1048576, in most cases it shouldn't be a problem but in hosts where/proc/sys/fs/aio-nr
is also configured to the same value or very close to it will cause Redpanda to abort with the following message:rpk[19642]: ERROR 2022-03-14 02:18:12,717 [shard 47] seastar - Could not setup Async I/O: Resource temporarily unavailable. The most common cause is not enough request capacity in /proc/sys/fs/aio-max-nr. Try increasing that number or reducing the amount of logical CPUs available for your application
What should have happened instead?
rpk redpanda tune
should take in account the value of/proc/sys/fs/aio-nr
and offset/proc/sys/fs/aio-max-nr
by the same amount in order to allocate the right number of AIO slots.JIRA Link: CORE-859
The text was updated successfully, but these errors were encountered: