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

Creates A LOT of watch descriptors when running? #62

Open
JamiKettunen opened this issue Jan 26, 2023 · 1 comment
Open

Creates A LOT of watch descriptors when running? #62

JamiKettunen opened this issue Jan 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@JamiKettunen
Copy link
Contributor

While porting this app over to Ubuntu Touch 20.04 I noticed journalctl -f didn't work as normal and instead printed Insufficient 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.

@JamiKettunen
Copy link
Contributor Author

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

@timsueberkrueb timsueberkrueb added the bug Something isn't working label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants