Re: spin locks and SMP xnu?
Re: spin locks and SMP xnu?
- Subject: Re: spin locks and SMP xnu?
- From: Michael Smith <email@hidden>
- Date: Mon, 3 Apr 2006 10:19:05 -0700
On Apr 2, 2006, at 11:47 PM, Parav Pandit wrote:
Help me to understand the xnu SMP kernel.
1. In SMP xnu environement on Power MAC G5 system, both the
processors share the same kernel address space, because we have
only one copy of kernel symbol table.
2. Does it mean that both the processors will have the same page
table or TLB entries for kernel space code (kernel, drivers,
filesystem)?
Effectively, yes.
3. Each processor will run its own schedular but both of them will
share the same task queue to pick up the task to execute. Is that
correct?
Effectively, yes.
4. We compile linux kernel for uniprocessor or SMP enviornment.
This uni or SMP decide the code for the spin locks. Either disable/
enable interrupt for uniprocessor or Do the spinning and locking
operation in addition to disabling inetrrupts.
We don't do this compliation stuff for the xnu kernel; how xnu
kernel takes care of this code optimization and functionality ?
Unlike Linux, the xnu kernel is designed to support a single loadable
module binary regardless of the number of CPUs. All of these details
are taken care of for you - simply use the most appropriate
synchronisation primitive, and assume that it will be optimised
accordingly.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden