public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question on build_sched_domains
@ 2006-03-24  2:58 Srivatsa Vaddagiri
  2006-03-24  7:12 ` Srivatsa Vaddagiri
  0 siblings, 1 reply; 6+ messages in thread
From: Srivatsa Vaddagiri @ 2006-03-24  2:58 UTC (permalink / raw)
  To: nickpiggin; +Cc: linux-kernel, Ingo Molnar

Nick,
	I was going thr' build_sched_domains and had a question
regarding formation of sched_groups for NUMA nodes. There are two 'for'
loops, each loop possibly allocating memory (sched_group) for one or more nodes.
My question is: in the outer loop, don't we need to skip allocating for
nodes for whom the inner loop has allocated in an earlier pass?

Taking the example of 4 node system which are in the same
sched_domain_node_span(), I see that we end up allocating 16
times (when 4 would have sufficed?).

What am I missing here? 

-- 
Regards,
vatsa

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

end of thread, other threads:[~2006-03-26  2:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-24  2:58 Question on build_sched_domains Srivatsa Vaddagiri
2006-03-24  7:12 ` Srivatsa Vaddagiri
2006-03-24  7:45   ` Nick Piggin
2006-03-25  8:36     ` Srivatsa Vaddagiri
2006-03-26  2:21       ` Nick Piggin
2006-03-26  2:41         ` Srivatsa Vaddagiri

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