Bug 171166 - gam_server restarting many times a second
gam_server restarting many times a second
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: gamin (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Alexander Larsson
:
Depends On:
Blocks: FC6Target
  Show dependency treegraph
 
Reported: 2005-10-18 19:25 EDT by Dave Malcolm
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-09-06 05:44:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dave Malcolm 2005-10-18 19:25:40 EDT
Description of problem:
Running rawhide(ish), seeing a problem where CPU usage becomes 70-80%, but
looking in top shows no obvious culprit.

On investigation it turns out that gam_server is restarting repeatedly,
occasionally visible for a fraction of a second in top or in gnome-system-monitor

Version-Release number of selected component (if applicable):
gamin-0.1.6-3
kernel-2.6.13-1.1601_FC5

How reproducible:
Don't know.  Seems to happen perhaps every few hours on my workstation; killing
off gnome-settings-daemon seems to help.

Here's a link for my own reference to the debug notes on gamin:
http://www.gnome.org/~veillard/gamin/debug.html

What process is responsible for restarting gam_server?  I'm happy to try to
track this down myself, but it's so transient that it's difficult to debug.  Thanks.
Comment 1 Alexander Larsson 2006-08-14 08:24:42 EDT
Any app that uses gamin will cause it to restart when its needed. However, it
shouldn't restart, because it shouldn't exit in the first place. Need to figure
out why its exiting.
Comment 2 Eric Hopper 2006-08-14 13:22:22 EDT
Of course, the process that continually restarts gam_server needs to throttle
itself a bit as well.  If the first few restarts fail, put in a greater interval
before it'll try again until its down to re-trying only once every 5-10 seconds
or so.

Defense in depth.  A bug that causes gam_server to crash all the time should be,
as much as possible, prevented from having a seriously negative effect on the
system as a whole.
Comment 3 Alexander Larsson 2006-08-16 02:48:05 EDT
I had a quick look at preventing excessive looping. Its not trivial, the
restarting happens an multiple levels.
Comment 4 Eric Hopper 2006-08-16 12:54:27 EDT
This is a big change, but perhaps gam_server could be configured to be on DBus
instead.  Then you can have a watchdog daemon that makes sure it stays healthy,
and apps can communicate with it via DBus.
Comment 5 Matthias Clasen 2006-08-18 22:10:20 EDT
Noting that the original report is almost a year old, has anybody
seen this problem in recent times ?
Comment 6 Eric Hopper 2006-08-19 03:39:11 EDT
I've not seen that problem, just gam using up ridiculous amounts of memory.
Comment 7 Matthias Clasen 2006-08-19 10:29:08 EDT
Ok, lets move this of the blocker list then
Comment 8 Alexander Larsson 2006-09-06 05:44:35 EDT
Lots of gamin fixing in rawhide lately. Please open new bugs with details if you
get anything like this with gamin 0.1.7-6 or later.

Note You need to log in before you can comment on or make changes to this bug.