From c0709d97078f6574be3b6413a1513d91adeea26e Mon Sep 17 00:00:00 2001 From: Dmitriy Matrenichev Date: Thu, 21 Apr 2022 17:37:26 +0400 Subject: [PATCH] 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 --- .../pkg/controllers/runtime/kernel_param_defaults.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/app/machined/pkg/controllers/runtime/kernel_param_defaults.go b/internal/app/machined/pkg/controllers/runtime/kernel_param_defaults.go index 58860e2ee..7d5179fb7 100644 --- a/internal/app/machined/pkg/controllers/runtime/kernel_param_defaults.go +++ b/internal/app/machined/pkg/controllers/runtime/kernel_param_defaults.go @@ -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", }, }...)