[lkml]   [2007]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] CFS scheduler, -v18

* Vegard Nossum <> wrote:

> I'd also like to point out that Folding@Home seems to draw more CPU
> than it should. Or, at least, in top, it shows up as using 50% CPU
> even though other processes are demanding as much as they can get. The
> FAH program should be running with idle priority. I expect it to fall
> to near 0% when other programs are running at full speed, but it keeps
> trotting along. And I am pretty sure that this is not due to SMP/HT (I
> made sure to utilize both CPUs).

your FAH processes are running with nice +19 - that should be enough to
throttle them. With v18 you can also mark it SCHED_IDLE:

schedtool -D $$ # mark the shell idle

SCHED_IDLE gets inherited by child tasks so if you mark the shell that
starts up FEH as SCHED_IDLE, all FEH threads should be SCHED_IDLE too.
(or you can start it up via schedtool -D -e ... )

does it still get more CPU time than you'd expect it to get? A reniced
or SCHED_IDLE task will 'fill in' any idle time that it senses, so in
itself it's not an anomaly if a task gets 50% and FEH fills in the
remaining 50%. Does it still get CPU time if you start two CPU hogs:

for (( N=0; N < 2; N++ )); do ( while :; do :; done ) & done

? If yes, that would be an anomaly.

> Otherwise, I am satisfied with the performance of CFS. Especially the
> desktop is noticably smoother. Thanks!

great! :-)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-07-03 09:17    [W:0.223 / U:4.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site