gam_server eating 100% cpu

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

gam_server eating 100% cpu

Post by witek »

From time to time a computer of mine gets choked by gam_server running 100% cpu. I`m not sure when that happens but this machine is extensively connected remotely (NFS, VNC, SFTP, SCP, HTTP)
I wonder what is this gam_server for? I`ve been looking on the web and many users have similiar problems. How to get rid of this issue?

[EDIT] So far I`m trying this solution (I do hope it`s gonna work):
http://www.linuxquestions.org/questions ... ost4288756
http://www.linuxquestions.org/questions ... ost3388265
User avatar
dab1414
Posts: 30
Joined: 2. Jun 2011, 19:26

Re: gam_server eating 100% cpu

Post by dab1414 »

Since no one has responded I will
Can you show your "/etc/gamin/gaminrc"

AFAIK, if you do not have all the filesystems you use in this file, then gamin will poll anything not in this file like a million times a second(or whatever the default setting is).

The homepage for Gamin is: http://www.gnome.org/~veillard/gamin/
WIKI: http://en.wikipedia.org/wiki/Gamin
There are many applications that require the use of a FAM, in this case gamin. Some include Samba, ktorrent, thunar, compiz, amarok, koffice etc...

Here is my "/etc/gamin/gaminrc" to compare:
# configuration for gamin
# Can be used to override the default behaviour.
# notify filepath(s) : indicate to use kernel notification
# poll filepath(s) : indicate to use polling instead
# fsset fsname method poll_limit : indicate what method of notification for the filesystem
# kernel - use the kernel for notification
# poll - use polling for notification
# none - don't use any notification
#
# the poll_limit is the number of seconds
# that must pass before a resource is polled again.
# It is optional, and if it is not present the previous
# value will be used or the default.

#notify /mnt/local* /mnt/pictures* # use kernel notification on these paths
#poll /tmp/* /var/* # use poll notification on these paths

# A safe default is to poll filesystems once every 15 seconds:
fsset btrfs poll 15
fsset cifs poll 15
fsset ext2 poll 15
fsset ext3 poll 15
fsset ext4 poll 15
fsset hfs poll 15
fsset hfsplus poll 15
fsset iso9660 poll 15
fsset jfs poll 15
fsset nfs poll 15
fsset nfs4 poll 15
fsset ntfs poll 15
fsset ntfs-3g poll 15
fsset ocfs2 poll 15
fsset reiserfs poll 15
fsset udf poll 15
fsset vfat poll 15
fsset xfs poll 15
Hope this somewhat helps you out.
You can easily judge the character of a man by how he treats those who can do nothing for him.
-Unknown


My Linux screenshots:
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: gam_server eating 100% cpu

Post by witek »

Thanks for the reply. That`s exactly what I`m trying to do: I created /etc/gamin/gaminrc and defined how often to poll filesystems but you remind me that I also should define a policy for NFS. Thanks.

By the way: Couldn`t Salix installation provide the file /etc/gamin/gaminrc by default with reasonable values?
User avatar
Akuna
Salix Wizard
Posts: 1038
Joined: 14. Jun 2009, 12:25

Re: gam_server eating 100% cpu

Post by Akuna »

witek wrote:By the way: Couldn`t Salix installation provide the file /etc/gamin/gaminrc by default with reasonable values?
You could probably ask its package maintainer directly.
Image
What really matters is where you are going, not where you come from.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: gam_server eating 100% cpu

Post by Shador »

Akuna wrote:
witek wrote:By the way: Couldn`t Salix installation provide the file /etc/gamin/gaminrc by default with reasonable values?
You could probably ask its package maintainer directly.
Not necessary: http://www.salixos.org/forum/viewtopic.php?f=32&t=2408 ;)
Image
Post Reply