[Bug 36581] Re: gam_server consumes lots of cpu time

Rocco Stanzione grasshopper at linuxkungfu.org
Thu Jun 8 13:32:43 UTC 2006


I now know why this is happening, at least to me.  All my music is on a
remote samba share, mounted under /mnt.  AmaroK monitors the directory
for changes using gamin.  Gamin expects things under /mnt to be
temporarily mounted, so instead of the MUCH more efficient kernel
dnotify method of watching for updates, it actually polls all the files
in the mounted directory every second.  In my case, it probably can't
even list all the files in one second, so it's constantly working as
hard as it can, in userspace, to do its thing.  I'm going to request
(upstream) a compile-time option to specify the directory or directories
to poll without dnotify, so we can package it as /media, where we expect
our temporary mounts to be (the gamin author, I think, is a redhat guy,
and expects them under /mnt).  Changing to "needs info" because I wonder
how many of the rest of you have a similar setup (directories with lots
of files under /mnt) that would allow us to close this bug if we get the
new compile-time option and a new package for it.

** Changed in: gamin (Ubuntu)
       Status: Confirmed => Needs Info

-- 
gam_server consumes lots of cpu time
https://launchpad.net/bugs/36581




More information about the kubuntu-bugs mailing list