Skip to content

Commit

Permalink
machine: increase max number of inotify instances
Browse files Browse the repository at this point in the history
increase the number of inotify instances to 524288 instead of using
the default value of 128.

Closes: containers#19848

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Sep 4, 2023
1 parent 9bcab49 commit f8c5c52
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/machine/ignition.go
Expand Up @@ -431,6 +431,23 @@ Delegate=memory pids cpu io
},
})

// Increase the number of inotify instances.
files = append(files, File{
Node: Node{
Group: GetNodeGrp("root"),
Path: "/etc/sysctl.d/10-inotify-instances.conf",
User: GetNodeUsr("root"),
},
FileEmbedded1: FileEmbedded1{
Append: nil,
Contents: Resource{
// TODO this should be fixed for all vmtypes
Source: EncodeDataURLPtr("fs.inotify.max_user_instances=524288\n"),
},
Mode: IntToPtr(0644),
},
})

// Issue #11489: make sure that we can inject a custom registries.conf
// file on the system level to force a single search registry.
// The remote client does not yet support prompting for short-name
Expand Down

0 comments on commit f8c5c52

Please sign in to comment.