After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 547131 - Excessive CPU usage while monitoring for mouse movement
Excessive CPU usage while monitoring for mouse movement
Status: RESOLVED DUPLICATE of bug 444927
Product: gnome-screensaver
Classification: Deprecated
Component: general
2.22.x
Other All
: Normal minor
: ---
Assigned To: gnome-screensaver maintainers
gnome-screensaver maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-10 03:32 UTC by angry.engineer
Modified: 2008-11-13 18:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description angry.engineer 2008-08-10 03:32:15 UTC
Please describe the problem:
The gnome-screensaver process will consume approximately 1 to 5% of the CPU while the mouse is being moved.  When the mouse movement stops but is within time limit the of the screensaver launching the cpu utilization goes to approximately zero.  An strace of the gnome-screensaver process shows show a lot of activity when the mouse is moved.

Steps to reproduce:
1. Launch Gnome's System Monitor or top
2. Move the mouse around the screen, watch the cpu usage by the gnome-screensaver process. 


Actual results:
Moving the mouse around should increased cpu utilization by the gnome-screensaver process.

Expected results:
Much less cpu utilization by a background process

Does this happen every time?
Yes.  More obvious on slower systems where the cpu utilization can be as high as 10% during mouse movement.

Other information:
It is observed on Fedora and Ubuntu distributions.

The process probably needs to be smarter about detecting movement.  Sampling every few seconds is probably a better approach.
Comment 1 angry.engineer 2008-08-10 19:38:29 UTC
There is an existing bug report on launchpad:
https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/230749
Comment 2 William Jon McCann 2008-11-13 18:23:14 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 444927 ***