Ubuntu + DualCore

cKGunslinger

Lifer
Nov 29, 1999
16,411
57
91

This is a snapshot from SysMonitor in my Ubuntu:

Text

It seems that some app is repeatedly swapped to the other CPU. Is this load balancing gone astray or normal behavior? I see this all the time..
 

Dark4ng3l

Diamond Member
Sep 17, 2000
5,061
1
0
Seems to me like something is causing one cpu to go to 100% and then it swaps it to the other cpu. That puts the other cpu at 100% and the whole sting starts over in a loop.... I have never seen this on my machines though so I don't know if its a bug or something.
 

Gamingphreek

Lifer
Mar 31, 2003
11,679
0
81
I have never heard or seen that happening.

Open a Terminal and type "sudo top" and watch to see which program is causing it to spike. "top -u [USERNAME]" is also an option if you believe the program is running on your userspace and not the root userspace.

-Kevin
 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
If it was swapping every few milliseconds, it would be a problem. Given that it takes seconds for a cpu swap, you're certainly not losing much performance to it, and its only helping to keep your chip alive and cool. If you're interested in a good technical reason to do exactly this, check out Heat and Run. www.ece.purdue.edu/~vijay/papers/2004/heat-and-run.pdf
 

cKGunslinger

Lifer
Nov 29, 1999
16,411
57
91
I guess it's not a bad thing that it keep swapping CPUs every 10 seconds or so (and it varies on which apps does it - typically it was Firefox, until I moved to Opera.) Basically, it's whichever app is running at greater than 50% CPU usage for extended periods. The only issue I have it that when playing a game (such as WoW,) I do see noticeable spikes every dozen seconds or so.

Just seemed kinda odd.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,836
4,815
75
Seems to be a common problem with WoW. There's mention in that thread of adjusting CPU affinity by recompiling your kernel. Naturally, I haven't come close to trying any of that.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
There's mention in that thread of adjusting CPU affinity by recompiling your kernel.

You only need to recompile your kernel if you're going to try another process scheduler, to set the affinity of any process you can simply use taskset.