lkml.org 
[lkml]   [2004]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] 2.6.0 batch scheduling, HT aware
Date
Pavel Machek wrote:

>>Why do I need hyper-thread aware batch scheduling?
>>
>>If you have a hyperthread (P4HT) processor and run it as two logical cpus you
>>can have a very low priority task running that can consume 50% of your
>>physical cpu's capacity no matter how high priority tasks you are running.
>>For example if you use the distributed computing client setiathome you will
>>be effectively be running at half your cpu's speed even if you run setiathome
>>at nice 20. Batch scheduling for normal cpus allows only idle time to be used
>>for batch tasks, and for HT cpus only allows idle time when both logical cpus
>>are idle.
>
>
> BTW this is going to be an issue even on normal (non-HT)
> systems. Imagine memory-bound scientific task on CPU0 and nice -20
> memory-bound seti&home at CPU1. Even without hyperthreading, your
> scientific task is going to run at 50% of speed and seti&home is going
> to get second half. Oops.

Yes and even worse, if you stop running setiathome the scientific task
*still* only gets half the available CPU!

The difference is that with HT running a task on one sibling actually
does (or can) slow the other. That's not true with true SMP, at least
not directly, since the resourses shared (memory and disk) are much
farther away from the CPU.

--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.239 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site