Lune

ASPLOS2021顶会

Kard: lightweight data race detection with per-thread memory protection

Adil Ahmad, Sangho Lee, Pedro Fonseca, Byoungyoung Lee

2021年份
17被引次数
9顶会引用

摘要

Finding data race bugs in multi-threaded programs has proven challenging. A promising direction is to use dynamic detectors that monitor the program's execution for data races. However, despite extensive work on dynamic data race detection, most proposed systems for commodity hardware incur prohibitive overheads due to expensive compiler instrumentation of memory accesses; hence, they are not efficient enough to be used in all development and testing settings.

Kard is a lightweight system that dynamically detects data races caused by inconsistent lock usage-when a program concurrently accesses the same memory object using different locks or only some of the concurrent accesses are synchronized using a common lock. Unlike existing detectors, Kard does not monitor memory accesses using expensive compiler instrumentation. Instead, Kard leverages commodity per-thread memory protection, Intel Memory Protection Keys (MPK). Using MPK, Kard ensures that a shared object is only accessible to a single thread in its critical section, and captures all violating accesses from other concurrent threads. Kard overcomes various limitations of MPK by introducing key-enforced race detection, employing consolidated unique page allocation, carefully managing protection keys, and automatically pruning out non-racy or redundant violations. Our evaluation shows that Kard detects all data races caused by inconsistent lock usage and has a low geometric mean execution time overhead: 7.0% on PARSEC and SPLASH-2x benchmarks and 5.3% on a set of real-world applications (NGINX, memcached, pigz, and Aget).

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper9

问问它们各自怎么用它

它引用的顶会 Paper9

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖