gamin eats too much CPU cycles

Bug #4455 reported by Alex Ross on 2005-11-14
Affects Status Importance Assigned to Milestone
gamin (Nexenta Operating System)
Fix Committed
gamin (Ubuntu)

Bug Description

This bug is recorded in Nexenta Bug Tracking System (NTBS) as:

The gamin 0.1.5 does not seem to work well at all on Solaris platform. For some reasons the clients are sitting in a tight loop through the request API, which could be related to either bugs in the gamin library or the daemon itself in handling the requests.

The backend we are using is gam_server's generic poll (that is, gam_client_conn_read()). This one is a problem.

A workaround which is currently used today is to disable the gamin library, such that a bogus error is returned to the client upon processing a request. This has the effect of stopping further requests from the clients.

Here's the corresponding patch:

Index: gnusolaris1/gamin/trunk/server/gam_channel.c
--- gnusolaris1/gamin/trunk/server/gam_channel.c (revision 7607)
+++ gnusolaris1/gamin/trunk/server/gam_channel.c (revision 10039)
@@ -220,4 +220,9 @@
     int ret;
     GamConnDataPtr conn = (GamConnDataPtr) info;
+#ifdef __GNU_Solaris__
+ /* not implemented */
+ return (FALSE);

     if ((condition == G_IO_HUP) || (condition == G_IO_NVAL) ||

The other workaround would be to compile the GNOME components with any FAM support

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. This should probably be reported on for the upstream developper of the software

Changed in gamin:
assignee: nobody → gnome
status: New → Rejected
Changed in gamin:
status: Unknown → Fix Released
Revision history for this message
Christian Reis (kiko) wrote :

Marking fixed based on the original bugwatch.

Changed in gamin:
status: New → Fix Committed
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for posting this bug.

Is this an issue in Lucid?

Changed in gamin:
status: New → Incomplete
silap (silap) on 2019-12-03
Changed in gamin (Ubuntu):
assignee: Ubuntu GNOME (ubuntu-gnome) → silap (silap)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers