Skip to content

Commit

Permalink
feat: increase aio-max-nr and inotify.max_user_instances
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
DmitriyMV committed Apr 26, 2022
1 parent 85b328e commit c0709d9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}...)

Expand Down

0 comments on commit c0709d9

Please sign in to comment.