site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Apr 2, 2006, at 11:47 PM, Parav Pandit wrote: Help me to understand the xnu SMP kernel. Effectively, yes. Effectively, yes. = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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)? 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? 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Smith