The Big Kernel Lock
2012-03-12 00:00
267 查看
http://lwn.net/Articles/281437/
BLK
==> semaphore
==> The semaphore is handled over to the new thread waiting for it. This introduces performance penalty --- the system's running idle almost 50% of the time.
==> lock stealing: A thread acquiring the semaphore could get it once the semaphore becomes available, regardless of whether or not the thread's at the head of the queue. However, this introduces bugs in some situation.
==> spin lock
==> makes the BKL non-preemptible. However, this sub-optimal BKL is currently the best solution for this trade-off problem.
BLK
==> semaphore
==> The semaphore is handled over to the new thread waiting for it. This introduces performance penalty --- the system's running idle almost 50% of the time.
==> lock stealing: A thread acquiring the semaphore could get it once the semaphore becomes available, regardless of whether or not the thread's at the head of the queue. However, this introduces bugs in some situation.
==> spin lock
==> makes the BKL non-preemptible. However, this sub-optimal BKL is currently the best solution for this trade-off problem.
相关文章推荐
- About Fast Lock in the WCE kernel
- linux中大内核锁(BKL--Big Kernel Lock)和自旋锁(FIFO Ticket Spinlock) -- 2014百度面试题目
- experienceing the long two phase lock.big suprise!!!
- 面试题:2014百度 linux中大内核锁(BKL--Big Kernel Lock)和自旋锁(FIFO Ticket Spinlock)
- libusb 的底層追蹤 (libusb thread support and the relation with kernel usbfs)
- Feature: High Memory In The Linux Kernel
- Entering the kernel without a driver and getting interrupt information from APIC
- 从EXE的资源段提取sys文件-转载自(rootkit:subverting the windows kernel)
- vbox安装,启动错误:Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.
- Uncompressing Linux___ done, booting the kernel_tekkamanninja-ChinaUnix博客
- 解决 unable to lock the administration directory (/var/lib/dpkg/) 问题
- 使用CocoaPods遇到一个问题:The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update ....
- (HDU)Open the Lock
- Perform a bisect test to identify the kernel problem (by quqi99)
- Understanding the Linux Kernel
- VMWare出现文件未能锁定(Failed to lock the file)的解决方法
- Thread State and the Global Interpreter Lock
- How To Compile A Kernel - The Ubuntu Way
- HDU--杭电--1195--Open the Lock--深搜
- yum install报错:Another app is currently holding the yum lock