「inotify」

改进

[Sol] inotify_add_watch … (No space left on device)

partitioning – inotify_add_watch — failed: “No space left on device” – Ask Ubuntu

inotify_add_watch(/home/xxxxxxx/.config/fcitx/dbus) failed: (No space left on device)

echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Q:内核参数 fs.inotify.max_user_watches 的最大值?
A:AFAICT, root can change max_user_watches to any value that’s 2147483647 (231-1) or under, as long as you’re confident you have enough RAM to support that number of watches.
R:What is a reasonable amount of inotify watches with Linux? – Stack Overflow

参考

Homepage: https://github.com/rvoicilas/inotify-tools/wiki
Wikipedai / inotify: https://en.wikipedia.org/wiki/Inotify
man 7 inofity: http://man7.org/linux/man-pages/man7/inotify.7.html