public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How does 2.6 SMP scheduler initially assign a thread to a run queue?
@ 2005-06-07 23:50 helen monte
  2005-06-08 12:41 ` lk
  0 siblings, 1 reply; 6+ messages in thread
From: helen monte @ 2005-06-07 23:50 UTC (permalink / raw)
  To: linux-kernel

In the 2.6 kernel, there is one run queue per CPU, in case of an SMP.
After a thread is created, how does the scheduler determine which run
queue it goes to?  I know that once it goes to a particular run queue,
the scheduler would try to run that thread on that CPU to take
advantage of processor affinity; and then there would be the load
balancing stuff.  But at the very beginning, what algorithm does the
scheduler use to assign a newly created thread to a particulat CPU?
Would the load balancing algorithm be used? Or gang scheduling?
By the way, in an SMT/hyperthreading processor, does the latest kernel
version assign one run queue per physical CPU, or per virtual processor?



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-09  7:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-07 23:50 How does 2.6 SMP scheduler initially assign a thread to a run queue? helen monte
2005-06-08 12:41 ` lk
2005-06-08 19:03   ` Siddha, Suresh B
2005-06-08 19:25     ` Steven Rostedt
2005-06-09  6:32       ` How does 2.6 SMP scheduler assign runqueues to multi-cores? helen monte
2005-06-09  7:03         ` Nick Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox