← Back to team overview

desktop-packages team mailing list archive

[Bug 910129] Re: Nautilus uses 100% CPU when other apps update files

 

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/910129

Title:
  Nautilus uses 100% CPU when other apps update files

Status in “nautilus” package in Ubuntu:
  New

Bug description:
  As soon as I start using offlineimap (that generated and updates many
  files) nautilus will use 100% of CPU and gigabytes of RAM.

  I used strace on the nautilus process and I see that nautilus is kept
  busy by thousands of

  [pid  3322] 17:06:04.453762 futex(0x1f1d0b0, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
  [pid  1605] 17:06:04.453838 <... futex resumed> ) = 1
  [pid  1605] 17:06:04.453875 futex(0x1f1d0b0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
  [pid  3322] 17:06:04.453924 <... futex resumed> ) = 0
  [pid  3322] 17:06:04.453959 futex(0x1f1d0b0, FUTEX_WAKE_PRIVATE, 1) = 0
  [pid  3322] 17:06:04.454036 access("/home/gioele/Documents/email/INBOX/cur", W_OK) = 0
  [pid  3322] 17:06:04.454111 stat("/home/gioele/Documents/email/INBOX/cur", {st_mode=S_IFDIR|0700, st_size=434176, ...}) = 0
  [pid  3322] 17:06:04.454202 lstat("/home/gioele/Documents/email/INBOX/cur/1325261163_0.3251.pigpen,U=5199,FMD5=844bb96d088d057aa1b32ac1fbc67b56:2,S", {st_mode=S_IFREG|0600, st_size=1468, ...}) = 0
  [pid  3322] 17:06:04.454337 open("/home/gioele/Documents/email/INBOX/cur/1325261163_0.3251.pigpen,U=5199,FMD5=844bb96d088d057aa1b32ac1fbc67b56:2,S", O_RDONLY) = 30
  [pid  3322] 17:06:04.454421 read(30, "Delivered-To: gioeleb@xxxxxxxxx\n"..., 2141) = 1468
  [pid  3322] 17:06:04.454489 close(30)   = 0
  [pid  3322] 17:06:04.454658 access("/home/gioele/Documents/email/INBOX/cur/1325261163_0.3251.pigpen,U=5199,FMD5=844bb96d088d057aa1b32ac1fbc67b56:2,S", R_OK) = 0
  [pid  3322] 17:06:04.454740 access("/home/gioele/Documents/email/INBOX/cur/1325261163_0.3251.pigpen,U=5199,FMD5=844bb96d088d057aa1b32ac1fbc67b56:2,S", W_OK) = 0
  [pid  3322] 17:06:04.454819 access("/home/gioele/Documents/email/INBOX/cur/1325261163_0.3251.pigpen,U=5199,FMD5=844bb96d088d057aa1b32ac1fbc67b56:2,S", X_OK) = -1 EACCES (Permission denied)
  [pid  3322] 17:06:04.454904 open("/proc/filesystems", O_RDONLY) = 30
  [pid  3322] 17:06:04.454979 fstat(30, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
  [pid  3322] 17:06:04.455054 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe5d0579000
  [pid  3322] 17:06:04.455118 read(30, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 331
  [pid  3322] 17:06:04.455203 read(30, "", 1024) = 0
  [pid  3322] 17:06:04.455261 close(30)   = 0
  [pid  3322] 17:06:04.455322 munmap(0x7fe5d0579000, 4096) = 0
  [pid  3322] 17:06:04.455399 stat("/home/gioele/.thumbnails/normal/9d87b982e1c8ab9320ec69d78abc0ba4.png", 0x7fe5b435c9a0) = -1 ENOENT (No such file or directory)
  [pid  3322] 17:06:04.455488 stat("/home/gioele/.thumbnails/fail/gnome-thumbnail-factory/9d87b982e1c8ab9320ec69d78abc0ba4.png", 0x7fe5b435c9a0) = -1 ENOENT (No such file or directory)
  [pid  3322] 17:06:04.455571 lstat("/home/gioele/Documents/email/INBOX/cur", {st_mode=S_IFDIR|0700, st_size=434176, ...}) = 0

  I suppose that nautilus keeps ~/Documents under control and updates
  its thumbnails, or other metadata, as soon as a file is created or
  modified. The problem is that nautilus runs with nice = 0 and for some
  reasons leaks a huge amount of memory (~2GB per hour). Or, perhaps, it
  is disturbed by the fact that files are created in the new/ directory
  and then moved to the cur/ directory, as it is normal with Maildir
  directories.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: nautilus 1:2.30.1-0ubuntu1.2
  ProcVersionSignature: Ubuntu 2.6.32-37.81-generic 2.6.32.49+drm33.21
  Uname: Linux 2.6.32-37-generic x86_64
  Architecture: amd64
  Date: Fri Dec 30 17:07:47 2011
  InstallationMedia: Ubuntu 10.04.3 LTS "Lucid Lynx" - Release amd64 (20110720.1)
  SourcePackage: nautilus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/910129/+subscriptions


References