Open JamiKettunen opened 1 year ago
As per https://unix.stackexchange.com/questions/13751/kernel-inotify-watch-limit-reached:
# find /proc/*/fd -lname anon_inode:inotify | cut -d/ -f3 | xargs -I '{}' -- ps --no-headers -o '%p %U %c' -p '{}' | uniq -c | sort -nr
96 4409 phablet webber
6 2762 phablet lomiri
6 1 root systemd
4 2343 phablet systemd
3 2716 phablet mediascanner-se
2 3200 phablet mtp-server
2 3134 phablet telephony-servi
2 2389 phablet pulseaudio
2 1994 root polkitd
2 1875 root udisksd
2 1823 root NetworkManager
1 873 systemd+ systemd-timesyn
1 4441 phablet zeitgeist-fts
1 4336 phablet openstore
1 3911 phablet content-hub-ser
1 3130 phablet maliit-server
1 2772 phablet evolution-addre
1 2768 phablet evolution-calen
1 2743 phablet telephony-servi
1 2733 phablet evolution-sourc
1 2675 phablet telephony-servi
1 2619 phablet ayatana-indicat
1 2614 phablet ayatana-indicat
1 2610 phablet ayatana-indicat
1 2422 phablet dbus-daemon
1 2374 systemd+ systemd-resolve
1 2028 root agetty
1 1870 root systemd-logind
1 1812 message+ dbus-daemon
1 1790 root accounts-daemon
1 1406 1010 wlan_assistant
1 1390 1021 mnld
1 1074 root systemd-udevd
So indeed something the app does causes all watch descriptors available to be used; fwiw on original Volla Phone cat /proc/sys/fs/inotify/max_user_watches
returns 8192
While porting this app over to Ubuntu Touch 20.04 I noticed
journalctl -f
didn't work as normal and instead printedInsufficient watch descriptors available. Reverting to -n.
and didn't follow the log during app runtime; closing Webber immediately fixes the situation...https://www.reddit.com/r/Fedora/comments/kgb6sh/comment/ggecv04/ lead me to see
fs.inotify.max_user_watches = 8192
kernel parameter value, not sure how much this app exactly creates upon launch but it seems to be excessive as I've never before seen it.