Petr Menšík 075366ad6e Open inotify socket only when used.
Some of our Openstack users run quite large number of dnsmasq instances
on single host. They started hitting default limit of inotify socket
number on single system after upgrade to more recent version. System
defaults of sysctl fs.inotify.max_user_instances is 128. They reached
limit of 116 dnsmasq instances, then more instances failed to start.

I was surprised they have any use case for such high number of
instances. They use one dnsmasq for one virtual network.

I found simple way to avoid hitting low system limit. They do not use
resolv.conf for name server configuration or any dhcp hosts or options
directory. Created inotify socket is never used in that case. Simple
patch attached.

I know we can raise inotify system limit. I think better is to not waste
resources that are left unused.
2017-11-05 16:05:39 +00:00
2017-09-25 17:30:59 +01:00
2017-09-29 17:39:26 +01:00
2012-04-02 20:40:34 +01:00
2017-10-02 14:13:51 +01:00
2017-11-05 16:05:39 +00:00
2012-01-05 17:31:15 +00:00
2017-10-30 23:21:52 +00:00
2017-02-19 15:53:37 +00:00
2012-01-05 17:31:10 +00:00
2012-01-05 17:31:13 +00:00
2017-02-06 16:14:04 +00:00
2017-02-19 22:13:36 +00:00
2017-02-06 16:14:04 +00:00
2012-01-05 22:00:08 +00:00
Description
No description provided
17 MiB
Languages
C 94.2%
Perl 2.3%
HTML 1.2%
Shell 1.1%
Makefile 0.6%
Other 0.6%