Re: How does 2.6 SMP scheduler assign runqueues to multi-cores?

From: Nick Piggin
Date: Thu Jun 09 2005 - 02:06:08 EST


On Thu, 2005-06-09 at 06:32 +0000, helen monte wrote:
> > > > > By the way, in an SMT/hyperthreading processor, does the latest
> >kernel
> > > > > version assign one run queue per physical CPU, or per virtual
> >processor?
> > > > >
> > > > one run-queue per physical CPU
> > >
> > > No. Each logical processor has its own runqueue.
>
> How about muti-core? Does each core also have its own run queue? Does
> anyone know how multi-core would work with SMT? Is it possible that they
> work together? Is the following a possible scenario? : A node has two
> processors, each processor has two cores, and each core has two "virtual
> cores". And there are 8 run queues in total.
>

It is always one runqueue per virtual CPU, so dual core has 2 runqueues,
and dual core with SMT has 4 runqueues.

IBM and I believe Intel have chips that support SMT and have 2 cores.

--
SUSE Labs, Novell Inc.



Send instant messages to your online friends http://au.messenger.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/