This page has been created statically by the administrator due to uh, "load" issues.

When SMP was first introduced to Linux back in 2.0 kernel days, it was done with the "big kernel lock". The Big Kernel Lock was used so that when one processor tried to enter the kernel it had to aquire this lock, and if another processor was already in the kernel it would block and wait for it to finish.

In the 2.2 series of kernels, this "Big Kernel Lock" was slowly removed from parts of the kernel. This allowed more than one processor to be executing kernel code simultaniously, but only for some operations, others hadn't been updated yet for one reason or another, so they aquired the Big Kernel Lock.

Now, in 2.4, the Big Kernel Lock has gone away, everything is protected by it's own little locks. this means the kernel is "Reentrant". Now, the Premptive Kernel Patch works by allowing a process to preempt the suspention of another process already in the kernel on the same CPU. This gives much better response, since if you have a high priority task that's blocked waiting on some data, and a low priority process running, as soon as the data is available to the High priority task it can resume running immediately, where as before Preemption it would have to wait until the low priority task left the kernel.

Surprisingly enough, in most situations this actually improves performance! The reason is that processes that have been blocked get an opportunity to run as soon as possible doing a bit of work and then usually blocking quickly afterwards allowing the machine to return to it's previous job.

Please visit the WlugSponsors.

Last edited on Saturday, January 24, 2004 12:27:41 am by JamesSpooner.

Please note that any user can change the the contents of pages on this site, and therefore the Waikato Linux Users Group can offer no assurances that the information is correct, and the information on this site is not necessarily the opinion of the Waikato Linux Users Group, or any of its members. Copyright is retained by the individual authors of a page. If you have any complaints about the contents of this page, please do not hesitate to contact the Waikato Linux Users Group, or, click the Edit button below!


PageHistory Diff Info