Bug 380726

Summary: FIXED IN SVN: high CPU usage while idle
Product: [Applications] rkward Reporter: RKWard Team <rkward-devel>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description RKWard Team 2011-06-15 17:43:58 UTC
-- Originally posted by (AT sourceforge.net): nalimilan --

-- This ticket was imported from http://sourceforge.net/p/rkward/bugs/89 on 2017-05-30 15:26:44 +0100 --
I very often keep my RKward workspace open for a long time while working on something else, because that way I don't need to save and load it all the time. But I've noticed RKward is constantly eating CPU: rkward.rbackend uses about 4%, and rkward.bin 2% of my i5. That's really a lot, and that makes the fan noisy.

As I don't see why RKward would be working while nothing happens, I suppose it's doing something it could avoid. Or is that a bug specific to my setup?

I'm using RKWard 0.5.5 with R 2.13.0 on Fedora 15 \(x64\). \(And BTW RKward is really a great app\!\)
Comment 1 Thomas Friedrichsmeier 2011-06-17 08:05:50 UTC
Hi\!

Well, supporting all types of R events in a GUI is surprisingly difficult, and cannot easily be done without some polling. So some idle CPU load is to be expected.

That said, 4% and 2% really is a lot.  Here, I see about 1% each, on an aging Centrino-CPU, and the fan stays off.

I have improved this, slightly, in the development version, and probably this can be tweaked a bit more. It would really help, if you could give me some feedback, though, since obviously the metrics are a bit different on your system. Thus, could you take a look at our instructions for compiling the development version at: http://p.sf.net/rkward/svn ?

Regards
Thomas
Comment 2 Thomas Friedrichsmeier 2011-06-17 08:05:50 UTC
- **assigned_to**: nobody --> tfry
- **summary**: rkward.rbackend and rkward.bin use CPU even when idle --> high CPU usage while idle
Comment 3 RKWard Team 2011-06-17 08:18:14 UTC
-- Originally posted by (AT sourceforge.net): nalimilan --
Nice, thanks\! I'll try to test the development version \(anyways, I'll like to use a version more recent than Fedora's to benefit from the fixes\), but not immediately. For now, I have to use RKward to finish my Master thesis\! ;-\)
Comment 4 RKWard Team 2011-06-24 09:49:22 UTC
-- Originally posted by (AT sourceforge.net): nalimilan --
OK, I've tested the SVN version, and CPU usage is down to 0.3-0.7% for rkward.rbackend, and rkward.bin doesn't appear at all. So that's much better, I guess that's no longer a problem \(most apps have the same CPU usage pattern\).

Thanks for the quick response and fix. Now, you're going to regret it, I'll file any bugs I find\! ;-\)
Comment 5 RKWard Team 2011-06-24 09:49:22 UTC
-- Originally posted by (AT sourceforge.net): nalimilan --
- **status**: open --> open-fixed
Comment 6 Thomas Friedrichsmeier 2011-06-24 17:33:46 UTC
Thanks for your feedback. Keep the reports coming ,-\)
Comment 7 Thomas Friedrichsmeier 2011-06-24 17:33:47 UTC
- **summary**: high CPU usage while idle --> FIXED IN SVN: high CPU usage while idle
Comment 8 Thomas Friedrichsmeier 2011-10-24 07:13:23 UTC
- **status**: open-fixed --> closed-fixed