Penguin
Diff: KernelPreemption
EditPageHistoryDiffInfoLikePages

Differences between current version and previous revision of KernelPreemption.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 10 Last edited on Thursday, July 6, 2006 8:09:49 pm by SimonHoward
Older page: version 9 Last edited on Monday, August 23, 2004 2:12:28 pm by PerryLorier Revert
@@ -5,9 +5,9 @@
 Now, in 2.4, the Big Kernel Lock has gone away, everything is protected by its own little locks. This means the kernel is "reentrant". Now, the Preemptive Kernel Patch works by allowing a process to preempt the suspension 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, whereas 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 its previous job. 
  
-Breaking the "big kernel lock" into many little locks is not nearly as simple as is might seem, because the slightest mistake in the logic results in a DeadLock, which, being in the [Kernel] is practically un-debuggable
+Breaking the "big kernel lock" into many little locks is not nearly as simple as is might seem, because the slightest mistake in the logic results in a DeadLock. 
  
 If you are looking for information on how to get KernelPreemption working under Linux kernels: 
  
 If you run a 2.6 kernel, then you just need to enable the preemptive kernel option.