handle reaching inotify max watches better
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nautilus |
New
|
Undecided
|
Unassigned | ||
Ubuntu One Client |
Confirmed
|
Medium
|
Unassigned | ||
ubuntuone-client (Ubuntu) |
Confirmed
|
Medium
|
Roberto Alsina |
Bug Description
Binary package hint: ubuntuone-client
I'm testing the maverick proposed version of the client to test if the crash of bug #744383 if fixed. Since I now have 20GB instead of the 2GB I had to move some folders with many files and some very large files into the Ubuntu one directory. The sync seemed to stop an a tail -f on the sync deamon log failed with no space left on device yet the disks still have enough space and enough inodes. Searching the web indicates that it seems that kernel memory for watchers was exhausted:
ayers@schiefer:~$ sudo sysctl fs.inotify.
fs.inotify.
ayers@schiefer:~$ sudo sysctl fs.inotify.
fs.inotify.
After executing this the tail worked again.
I suggest some mechanism to limit the amount of watchers needed or to at least notify the user when the limit is exceeded as this effects other processes because system wide resources get exhausted.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: ubuntuone-client 1.4.6-0ubuntu3
ProcVersionSign
Uname: Linux 2.6.35-28-generic x86_64
Architecture: amd64
Date: Fri Apr 15 11:47:11 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=de_AT.utf8
SHELL=/bin/bash
SourcePackage: ubuntuone-client
UbuntuOneSyncda
UbuntuOneUserSy
[bandwidth_
read_limit = 2097152
write_limit = 2097152
on = False
summary: |
- sync daemon need to many watchers + handle reaching inotify max watches better |
tags: | added: u1-support |
tags: | added: u1-by-support |
tags: | removed: u1-support |
Changed in ubuntuone-client: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: |
added: raring removed: maverick |
In a default ubuntu install i get:
$ sudo sysctl fs.inotify. max_user_ watches max_user_ watches = 524288
fs.inotify.
Which is enough for syncdaemon to work.
It is true that we could do something better than just fail when the user runs out of watches, so i am marking this as whishlist.