LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-26-2008, 06:27 PM   #1
SqdnGuns
Senior Member
 
Registered: Aug 2005
Distribution: Slackware64 Current
Posts: 1,023

Rep: Reputation: 118Reputation: 118
Question gam_server CPU Hog


Greetings:

I have been having an issue with gam_server taking up 100% of one of my CPU cores. I have searched around and have not come up with any definitive answers.

Some say it's NFS...............I don't run NFS.

Some say it's Firefox, if that's the case, time's that gam_server takes off, Firefox is not running.

Some say it is a Gnome issue...............I don't run Gnome.

Some say it is Xfce...............but it happens when I am not running Xfce. I'm running Fluxbox on 12.2

I cannot kill the process at all, not even as root, the only way to cure it is to reboot the box and that is not acceptable.

I have read the following, http://www.gnome.org/~veillard/gamin/config.html , and this provided no solution.

I understand that it is part of inotify......the only thing that I can think of is that I recently installed from SlackBuilds.org. libnotify, exo-notify and notification-daemon-xfce. I have a sneaky suspicion it is one of these????

Does anyone have a clue as to what it can be?? I'm stumped..........
 
Old 12-26-2008, 06:45 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,122
Blog Entries: 11

Rep: Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044
A guess...

I am not familiar with it but since it is a file alteration monitor system it must have to build it's baseline database. If this is a new behaviour then maybe it is still working it's way through your drive(s) to build that database???

If you do not use it, why is it running at all? Is it maybe part of an incomplete package?
 
Old 12-26-2008, 07:53 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,830

Rep: Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832
What are you looking to do - can't you use inotify directly; say via inotify-tools
 
Old 12-26-2008, 08:29 PM   #4
SqdnGuns
Senior Member
 
Registered: Aug 2005
Distribution: Slackware64 Current
Posts: 1,023

Original Poster
Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by syg00 View Post
What are you looking to do - can't you use inotify directly; say via inotify-tools
I'm not trying to do anything, it just randomly kicks in from what I can tell and hogs the CPU. In fact, I was just using mousepad a few moments ago to edit my fluxbox menu when I heard the CPU kick into overdrive. I ran top and 'lo and behold, 100% CPU usage from gam_server. I can't kill it at, either as user or root. All I can do is a reboot to kill the damn process.

Frustrating..........

EDIT:

Google "gam_server" and there is a ton of hits at what a problem this has been going back as far as 2004. Why am I seeing this issue now?

Perplexed..........

Last edited by SqdnGuns; 12-26-2008 at 08:35 PM.
 
Old 12-26-2008, 08:45 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,830

Rep: Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832
Ah sorry - I though you had installed it for a reason. I didn't realize Pat had built it in (no Slack here to check).
 
Old 12-27-2008, 01:39 AM   #6
SqdnGuns
Senior Member
 
Registered: Aug 2005
Distribution: Slackware64 Current
Posts: 1,023

Original Poster
Rep: Reputation: 118Reputation: 118
Lightbulb

I may have found the solution:

After doing some more digging around & experimenting, I have not had any issue with gam_server going off the charts.

At first I created a .gaminrc file in my ~ that contained the following:

Code:
fsset ext3 poll 10
fsset jfs poll 10
This did not appear to work so I then created a similar file in my /etc, although most of the recommendations were to put it in /etc/gamin but that does not exist in Slackware.

With the above, this tells gam_server to poll my filesystem every 10 seconds rather than what it was originally polling at.

It's been a few hours now and looking good.
 
Old 12-27-2008, 02:27 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,830

Rep: Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832
Shouldn't need to poll at all - what does the (kernel) config have for inotify ???
 
Old 12-27-2008, 04:32 AM   #8
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 1,003

Rep: Reputation: 126Reputation: 126
Gamin website has a section which explains how to turn on the debug feature. Maybe you can try that and see what's causing the problem. There must be some application triggering this.

Regarding inotify, is it relevant in this setting? AFAIK it's the new notification system of the kernel that replaced dnotify and gamin is not part of it (nor the other way around).
 
Old 12-27-2008, 08:18 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,830

Rep: Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832Reputation: 2832
inotify should (effectively ?) deprecate both fam and gamin.
The only thing I can think of that would need gamin these days on Linux is Thunar.
 
Old 12-29-2008, 06:31 AM   #10
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 1,003

Rep: Reputation: 126Reputation: 126
Yeah some file managers use it, like emelfm2 (actually it can be configured to use d/inotify as well, but the script on slackbuils.org uses gamin I think).
 
Old 12-29-2008, 09:16 AM   #11
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 99

Rep: Reputation: 11
gam_server always runs when amarok is started, I imagine it's to poll the music collection directories.
 
Old 06-11-2019, 01:27 PM   #12
GPS Pilot
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
Quote:
Google "gam_server" and there is a ton of hits at what a problem this has been going back as far as 2004. Why am I seeing this issue now?
Well, here it is 2019 and I'm having trouble with gam_server hogging CPU on my workstation at work! Putting .gaminrc file in ~ didn't help, and I don't have permission to edit /etc.

The workstation runs RHEL 7.4 (Linux 3.10.0) and KDE 4.14.8.
 
1 members found this post helpful.
Old 06-11-2019, 02:28 PM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,534

Rep: Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901
Quote:
Originally Posted by GPS Pilot View Post
Well, here it is 2019 and I'm having trouble with gam_server hogging CPU on my workstation at work! Putting .gaminrc file in ~ didn't help, and I don't have permission to edit /etc.

The workstation runs RHEL 7.4 (Linux 3.10.0) and KDE 4.14.8.
Slackware relevance? ZERO.
 
Old 06-11-2019, 07:32 PM   #14
GPS Pilot
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
Ok, sorry, I found this thread when I googled gam_server, and I didn't even realize it's a Slackware thread. It does contain more and better information about gam_server than any other thread I found. So, if I'm having trouble with gam_server on RHEL, should I really go elsewhere and create a new thread that doesn't contain the useful background information that this thread has?
 
Old 06-12-2019, 01:27 AM   #15
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,534

Rep: Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901
Quote:
Originally Posted by GPS Pilot View Post
Ok, sorry, I found this thread when I googled gam_server, and I didn't even realize it's a Slackware thread. It does contain more and better information about gam_server than any other thread I found. So, if I'm having trouble with gam_server on RHEL, should I really go elsewhere and create a new thread that doesn't contain the useful background information that this thread has?
Dude, yes. We don't care about your RHEL issues, it only pollutes the discussions in this Slackware forum.
This thread is also 11 years old, what you did is called "necro-posting" (look it up) and frowned upon.

You also did not add anything of value. The "and I don't have permission to edit /etc" makes me think you are working on a corporate desktop, so go find your IT support desk.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gam_server openbox cpu usage up to 100% shogun1234 Linux - Desktop 2 12-22-2008 04:37 PM
Opera CPU hog? SVwander Linux - General 3 10-11-2006 05:22 AM
gam_server: CPU Obese jonursenbach Ubuntu 0 08-09-2006 04:12 PM
frostrwire cpu hog lou Linux - Software 4 03-28-2006 08:36 AM
frosrwire cpu hog lou Linux - Software 2 03-26-2006 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration