feat: increase aio-max-nr and inotify.max_user_instances

Increase values:
- fs.aio-max-nr to 1048576 (for Ceph|Veritas|other storages)
- fs.inotify.max_user_instances to 8192 (since the usual 512 is too small today's needs)

There is no need to adjust fs.inotify.max_user_watches since it's set dynamically during startup by kernel.

Closes #5175

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
This commit is contained in:
Dmitriy Matrenichev 2022-04-21 17:37:26 +04:00
parent 85b328e997
commit c0709d9707
No known key found for this signature in database
GPG Key ID: D3363CF894E68892

View File

@ -139,7 +139,11 @@ func (ctrl *KernelParamDefaultsController) getKernelParams() []*kernel.Param {
// configs inotify.
{
Key: "proc.sys.fs.inotify.max_user_instances",
Value: "512",
Value: "8192",
},
{
Key: "proc.sys.fs.aio-max-nr",
Value: "1048576",
},
}...)