-->
 
 
Old 05-15-2008, 10:08 AM   #1
Administrator
Administrator
 
Join Date: Jul 2005
Posts: 7,376
Blog Entries: 17
Post Removing the Big Kernel Lock

"As some of the latency junkies on lkml already know, commit 8e3e076 in v2.6.26-rc2 removed the preemptible BKL feature and made the Big Kernel Lock a spinlock and thus turned it into non-preemptible code again. This commit returned the BKL code to the 2.6.7 state of affairs in essence," began Ingo Molnar. He noted that this had a very negative affect on the real time kernel efforts, adding that Linux creator Linus Torvalds indicated the only acceptable way forward was to completely remove the BKL. Ingo explained:


"This task is not easy at all. 12 years after Linux has been converted to an SMP OS we still have 1300+ legacy BKL using sites. There are 400+ lock_kernel() critical sections and 800+ ioctls. They are spread out across rather difficult areas of often legacy code that few people understand and few people dare to touch. It takes top people like Alan Cox to map the semantics and to remove BKL code, and even for Alan (who is doing this for the TTY code) it is a long and difficult task."


Ingo went on to describe how the BKL works, how it differs from other locking mechanisms, and why this complicates removing it permanently from the kernel. He noted that the various dependencies of the lock are lost in the haze of 15 years of code changes, "all this has built up to a kind of Fear, Uncertainty and Doubt about the BKL: nobody really knows it, nobody really dares to touch it and code can break silently and subtly if BKL locking is wrong." He then suggested "changing the rules of the game", creating a "kill-the-BKL" branch which "turns the BKL into an ordinary albeit somewhat big mutex, with a quirky lock/unlock interface called 'lock_kernel()' and 'unlock_kernel()'."


read more



[details]
 Administrator is offline Status: Offline

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu’s Shuttleworth: mobile Linux stalled by proprietary lock on industry, lack of neutral Linux platform Administrator News 0 02-25-2008 05:28 PM
Java diagnostics with the Lock Analyzer Part 3 BlueVoodoo News 0 11-20-2007 01:56 PM
Removing the i386 and x86_64 Directories Administrator News 0 10-26-2007 01:30 PM
Reduce lock contention and improve performance BlueVoodoo News 0 10-18-2007 03:03 PM
Where Is the Linux Kernel Going? Administrator News 0 06-21-2007 10:17 AM


All times are GMT -7. The time now is 07:41 AM.

 
         


Design by: vBulletin Skins Zone
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0