* Scheduling with HyperThreading
@ 2003-02-25 1:04 Mike Sullivan
2003-02-25 5:45 ` James Bourne
0 siblings, 1 reply; 7+ messages in thread
From: Mike Sullivan @ 2003-02-25 1:04 UTC (permalink / raw)
To: linux-kernel
What kernel versions will attempt to distribute jobs across physical CPUs on
Xeon SMP configurations.
Mike
--
----------------------------------------------------------------------
Mike Sullivan Director Performance Computing
@lliance Technologies, Voice: (416) 385-3255,
18 Wynford Dr, Suite 407 Fax: (416) 385-1774
Toronto, ON, Canada, M3C-3S2 Toll Free:1-877-216-3199
http://www.alltec.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scheduling with HyperThreading
2003-02-25 1:04 Scheduling with HyperThreading Mike Sullivan
@ 2003-02-25 5:45 ` James Bourne
2003-02-25 5:59 ` William Lee Irwin III
0 siblings, 1 reply; 7+ messages in thread
From: James Bourne @ 2003-02-25 5:45 UTC (permalink / raw)
To: Mike Sullivan; +Cc: linux-kernel
On Mon, 24 Feb 2003, Mike Sullivan wrote:
> What kernel versions will attempt to distribute jobs across physical CPUs on
> Xeon SMP configurations.
>From what I've heard, Arjans' user space daemon might be the way
things are going, it's at http://people.redhat.com/arjanv/irqbalance/ .
The other way that you might try is the irq load balance patch that Ingo
produced. There is a patch that is from 2.4.20 at
http://www.hardrock.org/kernel/2.4.20/ and it is what I'm using at work on
our current Xeon systems (until I have the chance to test the user space
daemon at least).
Hope that helps.
Regards
James Bourne
> Mike
--
James Bourne, Supervisor Data Centre Operations
Mount Royal College, Calgary, AB, CA
www.mtroyal.ab.ca
"There are only 10 types of people in this world: those who
understand binary and those who don't."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scheduling with HyperThreading
2003-02-25 5:45 ` James Bourne
@ 2003-02-25 5:59 ` William Lee Irwin III
0 siblings, 0 replies; 7+ messages in thread
From: William Lee Irwin III @ 2003-02-25 5:59 UTC (permalink / raw)
To: James Bourne; +Cc: mingo, Mike Sullivan, linux-kernel
On Mon, 24 Feb 2003, Mike Sullivan wrote:
>> What kernel versions will attempt to distribute jobs across physical CPUs on
>> Xeon SMP configurations.
On Mon, Feb 24, 2003 at 10:45:18PM -0700, James Bourne wrote:
> From what I've heard, Arjans' user space daemon might be the way
> things are going, it's at http://people.redhat.com/arjanv/irqbalance/ .
> The other way that you might try is the irq load balance patch that Ingo
> produced. There is a patch that is from 2.4.20 at
> http://www.hardrock.org/kernel/2.4.20/ and it is what I'm using at work on
> our current Xeon systems (until I have the chance to test the user space
> daemon at least).
I think he's referring to the cpu scheduler, not interrupt load
balancing. mingo might have some insight into current patches for
this and current results thereof. I don't really participate in
the scheduler aside from very occasional bugfixing.
-- wli
^ permalink raw reply [flat|nested] 7+ messages in thread
* Scheduling with Hyperthreading
@ 2003-02-25 7:43 Mike Sullivan
0 siblings, 0 replies; 7+ messages in thread
From: Mike Sullivan @ 2003-02-25 7:43 UTC (permalink / raw)
To: linux-kernel
Sorry, should have been more specific. I am referring to the scheduler.
I have noticed
that if I run two compute intensive jobs on a Dual Xeon, the processes
run on separate
physical cpus and can spend a significant amount of time with both on a
single
cpu. I have seen some patches that try to improve on this and was
wondering if
they have made it into the production kernel stream. I ran tests on a
2.4.20 kernel and
it had the same problem as a 2.4.18 kernel.
Thanks
Mike
William Lee Irwin III wrote:
>On Mon, 24 Feb 2003, Mike Sullivan wrote:
>
>
>>>What kernel versions will attempt to distribute jobs across physical CPUs on
>>>Xeon SMP configurations.
>>>
>>>
>
>On Mon, Feb 24, 2003 at 10:45:18PM -0700, James Bourne wrote:
>
>
>>From what I've heard, Arjans' user space daemon might be the way
>>things are going, it's at http://people.redhat.com/arjanv/irqbalance/ .
>>The other way that you might try is the irq load balance patch that Ingo
>>produced. There is a patch that is from 2.4.20 at
>>http://www.hardrock.org/kernel/2.4.20/ and it is what I'm using at work on
>>our current Xeon systems (until I have the chance to test the user space
>>daemon at least).
>>
>>
>
>I think he's referring to the cpu scheduler, not interrupt load
>balancing. mingo might have some insight into current patches for
>this and current results thereof. I don't really participate in
>the scheduler aside from very occasional bugfixing.
>
>
>-- wli
>
>
--
----------------------------------------------------------------------
Mike Sullivan Director Performance Computing
@lliance Technologies, Voice: (416) 385-3255,
18 Wynford Dr, Suite 407 Fax: (416) 385-1774
Toronto, ON, Canada, M3C-3S2 Toll Free:1-877-216-3199
http://www.alltec.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scheduling with Hyperthreading
[not found] <Pine.LNX.4.44.0302250852190.26386-100000@coffee.psychology.mcmaster.ca>
@ 2003-02-25 21:01 ` Mike Sullivan
0 siblings, 0 replies; 7+ messages in thread
From: Mike Sullivan @ 2003-02-25 21:01 UTC (permalink / raw)
To: Mark Hahn, linux-kernel
Mark
I would to a quick snap with top, and when I saw 99.9% I assumed the the
process had
been there during the time top was starting up.
Looking at /proc/(pid)/cpu, shows that with two jobs running they are
sticking to cpu 0 and 1
which are siblings
Regards
Mike
Mark Hahn wrote:
>>that if I run two compute intensive jobs on a Dual Xeon, the processes
>>run on separate
>>physical cpus and can spend a significant amount of time with both on a
>>single
>>cpu.
>>
>>
>
>how did you determine this? running another program, such as top,
>will naturally disturb the scheduler and corrupt any observations.
>the only means I can think of is to look in /proc/<pid>/cpu near
>very infrequently (ideally, just before the processes exit.)
>or is this what you've done?
>
>
--
----------------------------------------------------------------------
Mike Sullivan Director Performance Computing
@lliance Technologies, Voice: (416) 385-3255,
18 Wynford Dr, Suite 407 Fax: (416) 385-1774
Toronto, ON, Canada, M3C-3S2 Toll Free:1-877-216-3199
http://www.alltec.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Scheduling with Hyperthreading
@ 2003-02-25 21:21 Pallipadi, Venkatesh
0 siblings, 0 replies; 7+ messages in thread
From: Pallipadi, Venkatesh @ 2003-02-25 21:21 UTC (permalink / raw)
To: Mike Sullivan, Mark Hahn, linux-kernel, Nakajima, Jun
What is the nature of this jobs that you are running?
1) Just the continuous computations from the user land
2) computations mixed with some system calls, i/o or some other of sleep
wakeups.
My guess at this moment is that it is the former one. With that kind of
a load, one can easily get stuck in this "bad" situation with 2 jobs
running on the same package. And as these processes doesn't sleep or get
scheduled out, they continue to run on the same CPUs, mostly trying to
use any cache affinity in those CPUs.
2.4.20 has code in place to take care of load as in 2 above. When trying
to find the best CPU to schedule in a process (while waking up from
sleep), it actually looks at idle package v/s idle logical processor.
Thanks,
-Venkatesh
> -----Original Message-----
> From: Mike Sullivan [mailto:mike.sullivan@alltec.com]
> Sent: Tuesday, February 25, 2003 1:01 PM
> To: Mark Hahn; linux-kernel
> Subject: Re: Scheduling with Hyperthreading
>
>
> Mark
>
> I would to a quick snap with top, and when I saw 99.9% I
> assumed the the
> process had
> been there during the time top was starting up.
>
> Looking at /proc/(pid)/cpu, shows that with two jobs running they are
> sticking to cpu 0 and 1
> which are siblings
>
>
>
>
>
>
> Regards
>
>
>
> Mike
>
> Mark Hahn wrote:
>
> >>that if I run two compute intensive jobs on a Dual Xeon,
> the processes
> >>run on separate
> >>physical cpus and can spend a significant amount of time
> with both on a
> >>single
> >>cpu.
> >>
> >>
> >
> >how did you determine this? running another program, such as top,
> >will naturally disturb the scheduler and corrupt any observations.
> >the only means I can think of is to look in /proc/<pid>/cpu near
> >very infrequently (ideally, just before the processes exit.)
> >or is this what you've done?
> >
> >
>
> --
> ----------------------------------------------------------------------
> Mike Sullivan Director Performance Computing
> @lliance Technologies, Voice: (416) 385-3255,
> 18 Wynford Dr, Suite 407 Fax: (416) 385-1774
> Toronto, ON, Canada, M3C-3S2 Toll Free:1-877-216-3199
> http://www.alltec.com
>
>
>
> -
> 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/
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scheduling with Hyperthreading
[not found] <Pine.LNX.4.44.0302251616300.31810-100000@coffee.psychology.mcmaster.ca>
@ 2003-02-25 21:23 ` Mike Sullivan
0 siblings, 0 replies; 7+ messages in thread
From: Mike Sullivan @ 2003-02-25 21:23 UTC (permalink / raw)
To: Mark Hahn; +Cc: linux-kernel
I have tried RH 2.4.18 stock redhat kernels and and 2.4.20 kernels. Both
seem to
do badly.
Is there somewhere to look to see a history of the schedular work, or do
I need
to puruse all of the changelogs to get an idea of what kernel I should
be trying.
Regards
Mike
Mark Hahn wrote:
>>I would to a quick snap with top, and when I saw 99.9% I assumed the the
>>process had
>>been there during the time top was starting up.
>>
>>Looking at /proc/(pid)/cpu, shows that with two jobs running they are
>>sticking to cpu 0 and 1
>>which are siblings
>>
>>
>
>ah, sorry if you said this, but which kernel are you running?
>you need a HT-aware scheduler, for sure. does your problem go away
>if you boot with noht?
>
>
--
----------------------------------------------------------------------
Mike Sullivan Director Performance Computing
@lliance Technologies, Voice: (416) 385-3255,
18 Wynford Dr, Suite 407 Fax: (416) 385-1774
Toronto, ON, Canada, M3C-3S2 Toll Free:1-877-216-3199
http://www.alltec.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-02-25 22:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-25 7:43 Scheduling with Hyperthreading Mike Sullivan
[not found] <Pine.LNX.4.44.0302251616300.31810-100000@coffee.psychology.mcmaster.ca>
2003-02-25 21:23 ` Mike Sullivan
-- strict thread matches above, loose matches on Subject: below --
2003-02-25 21:21 Pallipadi, Venkatesh
[not found] <Pine.LNX.4.44.0302250852190.26386-100000@coffee.psychology.mcmaster.ca>
2003-02-25 21:01 ` Mike Sullivan
2003-02-25 1:04 Scheduling with HyperThreading Mike Sullivan
2003-02-25 5:45 ` James Bourne
2003-02-25 5:59 ` William Lee Irwin III
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox