Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

devedse
Copy link

@devedse devedse commented Jan 12, 2021

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

@jlesage
Copy link
Owner

jlesage commented Jan 12, 2021

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

@devedse
Copy link
Author

devedse commented Jan 18, 2021

@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.

@walawa75
Copy link

walawa75 commented May 1, 2021

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 :-) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants