docker-crashplan-pro icon indicating copy to clipboard operation
docker-crashplan-pro copied to clipboard

Added script to readme to automatically update fs.inotify.max_user_watches

Open devedse opened this issue 4 years ago • 3 comments

Hi jlessage,

I've added a script to the readme to automatically update the fs.inotify.max_user_watches= during synology startup. This way it should persist during reboots.

Devedse

devedse avatar Jan 12 '21 15:01 devedse

Is this needed if one sets the limit in /etc.defaults/sysctl.conf ?

jlesage avatar Jan 12 '21 16:01 jlesage

@jlesage , I think it is, my /etc.defaults/sysctl.conf file contains this (for about a year or so now):

kernel.panic = 3
net.core.somaxconn = 1048576
net.ipv4.tcp_tw_reuse  = 1
fs.inotify.max_user_watches=104857600

However, it seems that once my Synology system updates, my /etc/sysctl.conf contains the following information:

kernel.panic = 3
net.core.somaxconn = 65535
net.ipv4.tcp_tw_reuse  = 1

So it doesn't seem to take the defaults file into account.

devedse avatar Jan 18 '21 09:01 devedse

Hi @jlesage and great thank to you for your work. Merci Josselin !!

I confirm it is working at the /etc/sysctl.conf location.

Is a sudo sysctl -p /etc/sysctl.conf at the end of the script wouldn't be useful to make the change effective @devedse ?

Unless the service is started after startup schelude task but I guess not :-) ?

walawa75 avatar May 01 '21 12:05 walawa75