guard / listen

The Listen gem listens to file modifications and notifies you about the changes.
https://rubygems.org/gems/listen
MIT License
1.92k stars 246 forks source link

Arch/Manjaro - wiki/Increasing-the-amount-of-inotify-watchers #444

Closed hrvoj3e closed 3 years ago

hrvoj3e commented 6 years ago

This needs to be updated - on my fresh install of Manjaro 17.1.7 there is a file 50-max_user_watches.conf which overrides this.

/etc/sysctl.d/
├── 40-max-user-watches.conf
└── 50-max_user_watches.conf
sudo sysctl --system

* Applying /etc/sysctl.d/40-max-user-watches.conf ...
fs.inotify.max_user_watches = 524288

* Applying /etc/sysctl.d/50-max_user_watches.conf ...
fs.inotify.max_user_watches = 16384

cat /proc/sys/fs/inotify/max_user_watches
16384

WIKI

https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
ionling commented 6 years ago

Same with me, Manjaro 17.1.11 Hakoila.

efosao commented 5 years ago

Thanks for the heads up @hrvoj3e - I was spinning my wheels with this one.

ioquatix commented 5 years ago

Can you please supply a PR.

SrBrahma commented 4 years ago

Thanks. Also, be aware that the difference isn't just the "40" to "50", the '-' also turns into '_'.

SuperITMan commented 4 years ago

@ioquatix How can I do a PR for a wiki page ? :blush:

I took a look on Google but didn't find anything except this: https://stackoverflow.com/questions/10642928/how-to-pull-request-a-wiki-page-on-github

Thanks for your help!

Regards, Alexis

Beloin commented 4 years ago

So all we need to change is in this file? I was experiencing this same issue: Operating System: Manjaro Linux

KDE Plasma Version: 5.18.4 KDE Frameworks Version: 5.69.0 Qt Version: 5.14.2 Kernel Version: 5.4.33-3-MANJARO OS Type: 64-bit Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz Memory: 7,7 GiB of RAM

Moxie1776 commented 4 years ago

Glad I found this, I have been fighting this.

Operating System: Manjaro Linux KDE Plasma Version: 5.19.3 KDE Frameworks Version: 5.73.0 Qt Version: 5.15.0 Kernel Version: 5.8.0-1-MANJARO OS Type: 64-bit

jvik commented 3 years ago

Why do I need to do this every time I reboot?

ColinDKelley commented 3 years ago

@jvik I'm not sure, but I hope someone can chime in with an answer. Meanwhile, I wanted to note that the Wiki has been deprecated in favor of the README, with all the old Wiki content merged over there. That makes it easy for anyone to suggest improvements in the form of a PR as @ioquatix requested above.

ColinDKelley commented 3 years ago

I'm closing out this ticket since it has gotten stale. But as stated above, we welcome any PRs to improve the documentation in the README.