多核微内核的粗粒度锁性能评价
An Evaluation of Coarse-Grained Locking for Multicore Microkernels
摘要:
在操作系统中,粗粒度锁定和细粒度锁定之间的权衡是一个众所周知的问题。粗粒度锁定在低争用下提供较低的开销,细粒度锁定在争用下提供较高的可伸缩性,尽管以实现复杂性和降低最佳情况性能为代价。我们重新审视这种权衡的上下文中的微内核和紧耦合的核心共享缓存和低内核间迁移延迟。我们在两种架构上评估性能:x86和ARM MPCore,在前一种情况下还利用事务存储器(Intel TSX)。我们的论文是,在这样的硬件上,一个设计良好的微内核,与短的系统调用,可以利用粗粒度锁定在现代硬件上,避免多个锁的运行时间和复杂性成本,使形式化验证,并仍然实现可扩展性媲美细粒度锁定。
英文摘要:
The trade-off between coarse- and fine-grained locking is a well understood issue in operating systems. Coarse-grained locking provides lower overhead under low contention, fine-grained locking provides higher scalability under contention, though at the expense of implementation complexity and re- duced best-case performance. We revisit this trade-off in the context of microkernels and tightly-coupled cores with shared caches and low inter-core migration latencies. We evaluate performance on two architectures: x86 and ARM MPCore, in the former case also utilising transactional memory (Intel TSX). Our thesis is that on such hardware, a well-designed microkernel, with short system calls, can take advantage of coarse-grained locking on modern hardware, avoid the run-time and complexity cost of multiple locks, enable formal verification, and still achieve scalability comparable to fine-grained locking.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。