On 18/11/2020 13:28, Luca BRUNO wrote:
A dynamic default is being tackled directly at kernel level. There is a currently in-progress patch on linux-fsdevel for this, first revision is at https://patchwork.kernel.org/project/linux-fsdevel/patch/20201026204418.2319.... For further context, see https://github.com/coreos/fedora-coreos-tracker/issues/637
Great info, thanks Luca.
It seems like the same issues are identified on that thread as by others on this one. IDE's and sync'y things being almost universally problematic with the low default.
I'm not familiar with kernel dev. How long do these kind of things take to trickle into a distro? Would it still be worth targeting something for F34? Could a file dropped into /etc/sysctl.d/10-max_user_watches.conf be a quick win?
So far the only drawbacks mentioned are an increase in RAM usage when a lot of watches are in use and _maybe_ a filesystem slowdown (which so far hasn't been raised by anyone on the kernel.org thread).
My biggest offender, netbeans (17k watchers), is currently using 1.6G of RAM. Another 50MB really would be a drop in the ocean.
G.