<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I have a soultion to the gam_server 100% cpu usage.  What is happening
is that there <br>
isn't a config file for the gam_server so it defaults to checking NFS
mounts as fast as it can<br>
and under some conditions will cause it to run away and use 100% cpu. 
The fix is to <br>
create a config file: /etc/gamin/gaminrc with the contents:<br>
<br>
cat /etc/gamin/gaminrc<br>
<br>
# configuration for gamin<br>
# Can be used to override the default behaviour.<br>
# notify filepath(s) : indicate to use kernel notification<br>
# poll filepath(s)   : indicate to use polling instead<br>
# fsset fsname method poll_limit : indicate what method of notification
for the filesystem<br>
#                                  kernel - use the kernel for
notification<br>
#                                  poll - use polling for notification<br>
#                                  none - don't use any notification<br>
#<br>
#                                  the poll_limit is the number of
seconds<br>
#                                  that must pass before a resource is
polled again.<br>
#                                  It is optional, and if it is not
present the previous<br>
#                                  value will be used or the default.<br>
<br>
fsset nfs poll 10                 # use polling on nfs mounts and poll
once every 10 seconds<br>
<br>
-------------------------------------------<br>
<br>
This will limit polling to every 10 seconds and seams to prevent it
from running away.<br>
<br>
Thanks,<br>
Dana Wellen<br>
<br>
<br>
<br>
Shehzad Tahir Nagi wrote:
<blockquote cite="mid46CD6A95.2040204@levelelimited.com" type="cite"><br>
Hi,
  <br>
  <br>
I have a very basic problem but some how i am not able to get my head
around it. I have Dell blade servers 1955 with RHEL4 OS on it. For past
few days the system has started acting very busy and after quick
investigation (just writing top) we found out that the "gam_server"
service is taking 100% cpu usage. I understand we are doing a little
bit of IO working on the box but even then it shouldn't be taking 100%
process time.
  <br>
  <br>
>From what I have noticed its a bug with the kernal but i am a bit
confused how to fix it? If i kill the process, what are the drawbacks?
We have two NFS mounted drive on the blades too.
  <br>
  <br>
Please if any one has quick suggestion or a fix, it will be highly
appreciated.
  <br>
  <br>
Thanks alot in advance.
  <br>
  <br>
Regards,
  <br>
Shehzad
  <br>
  <br>
_______________________________________________
  <br>
rhn-users mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:rhn-users@redhat.com">rhn-users@redhat.com</a>
  <br>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/rhn-users">https://www.redhat.com/mailman/listinfo/rhn-users</a>
  <br>
  <br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<h3><font color="#3366ff"><b>Dana Wellen</b></font></h3>
<i>Sr. Systems Engineer <br>
ON Semiconductor<br>
Phone: (401) 886-3554<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:dana.wellen@onsemi.com">dana.wellen@onsemi.com</a>
</i><br>
</div>
</body>
</html>