MCP
DD

Dave Dice

21 papers in the library · Same-name authors told apart using DBLP

Papers

21
Hapax Locks : Value-Based Mutual Exclusion
Dave DiceAlex Kogan
We present Hapax Locks, a new mutual-exclusion algorithm that combines constant-time arrival and unlock paths with FIFO admission order, while being space efficient and generating little coherence traffic under contention. Its latency and scalability match state-of-the-art locks, yet it imposes fewer runtime constraints, easing integration into existing systems. Notably, no pointers shift or escape ownership between threads.
arXivarXiv · · November 18, 2025
0
0
Semaphores Augmented with a Waiting Array
Dave DiceAlex Kogan
This paper presents the TWA-semaphore, a scalable semaphore implementation that remains compact and achieves extremely low latency. It first introduces a ticket-semaphore derived from the ticket lock algorithm, which is simple but suffers from global spinning. Applying techniques from the TWA ticket lock, the authors replace global spinning with a waiting array, yielding a semaphore that scales well while preserving compactness.
arXivarXiv · · January 30, 2025
0
0
Reciprocating Locks
Dave DiceAlex Kogan
Reciprocating Locks is a mutual exclusion algorithm for cache-coherent shared memory with constant-time doorway and release, local spinning, and a single waiting element per thread regardless of lock count. It does not guarantee strict FIFO but bounds bypass and has strong anti-starvation. The lock is compact, space-efficient, and designed for practical use in general-purpose environments like Linux. It demonstrates high throughput under contention and low latency without contention, often outperforming state-of-the-art spin locks.
arXivarXiv · · January 4, 2025
0
3
Exploring Time-Space trade-offs for synchronized in Lilliput
Dave DiceAlex Kogan
This paper explores synchronization algorithms for HotSpot's `synchronized` construct under Project Lilliput, which reduces object header size. The central contribution is a curated set of algorithms that reveal space-time trade-offs. The key design dimensions are the location of synchronization metadata (monitor fields), the mapping from object to those fields, and the lifecycle of monitor information. Each algorithm could replace the current HotSpot implementation, and the paper assumes familiarity with the existing design and Compact Java Monitors (CJM).
arXivarXiv · · September 26, 2024
0
0
FedPerm: Private and Robust Federated Learning by Parameter Permutation
Hamid MozaffariVirendra J. MaratheDave Dice
FedPerm is a federated learning algorithm that simultaneously addresses client data privacy and robustness to model poisoning attacks. It combines an intra-model parameter shuffling technique to amplify privacy with Private Information Retrieval (PIR) methods for cryptographic aggregation of client updates. This combination enables the server to constrain parameter updates, mitigating poisoning effects. Unique hyperparameters allow trading computation overhead for model utility. Empirical evaluation on MNIST shows FedPerm outperforms existing Differential Privacy (DP) solutions in FL.
arXivarXiv · · August 16, 2022
0
8
Intra-process Caching and Reuse of Threads
Dave DiceAlex Kogan
This paper introduces a process-local cache of idle threads to reduce the latency of thread creation and destruction on Linux. Instead of destroying a thread upon termination, it is recycled for subsequent creation requests. The approach lowers thread-creation cost by nearly an order of magnitude, delivering significant performance gains for applications that rapidly create and destroy many threads.
arXivarXiv · · May 16, 2021
0
2
Ready When You Are: Efficient Condition Variables via Delegated Condition Evaluation
Dave DiceAlex Kogan
The paper proposes delegated condition evaluation, a technique that eliminates futile wakeups in multi-threaded programs. Instead of broadcasting notifications to all waiting threads, the notifying thread evaluates the conditions of each waiter and sends notifications only to the relevant threads. An initial evaluation shows a 3-4x throughput improvement over legacy condition variables.
arXivarXiv · · May 14, 2021
0
1
Optimizing Inference Performance of Transformers on CPUs
Dave DiceAlex Kogan
This paper optimizes inference for Transformer-based models on CPUs, focusing on BERT. It identifies the main computational components and proposes three targeted optimizations that achieve up to 2.37x speedup on the HuggingFace inference benchmark without modifying model implementation or affecting accuracy.
arXivarXiv · · February 12, 2021
0
26
Hemlock : Compact and Scalable Mutual Exclusion
Dave DiceAlex Kogan
Hemlock is a mutual exclusion algorithm that requires only one word per thread plus one word per lock. It provides local spinning in most cases, high throughput, and low latency, while being context-free and FIFO. Its performance matches or exceeds the best scalable spin locks.
arXivarXiv · · February 7, 2021
0
20
Compact Java Monitors
Dave DiceAlex Kogan
Compact Java Monitors proposes a replacement implementation for the synchronized construct in the HotSpot JVM, assuming familiarity with the current HotSpot implementation. The central contribution is a more compact monitor design that aims to reduce memory overhead and improve performance for synchronization, while maintaining the same semantics as the existing implementation.
arXivarXiv · · January 28, 2021
0
2
Scalable Range Locks for Scalable Address Spaces and Beyond
Alex KoganDave DiceShady Issa
The paper presents a lock-less range-lock implementation that uses linked lists instead of a tree, eliminating internal spin-lock contention in the common case. It also introduces a speculative mechanism to refine lock ranges within the mprotect operation, enabling concurrent mprotect on disjoint memory regions. The approach achieves up to 9× speedup over the stock Linux kernel and is demonstrated in both user-space and kernel-space, with applications extending to concurrent data structures like skip lists.
arXivarXiv · · June 22, 2020
0
22
Fissile Locks
Dave DiceAlex Kogan
Fissile locks combine a test-and-test (TS) lock as a fast path and a Compact NUMA-aware (CNA) lock as a slow path, allowing threads on the fast path to bypass the slow path queue with bounded frequency to avoid starvation. This design achieves TS-like low latency under low contention and CNA-like scalability and admission-order guarantees under high contention, using a tunable parameter to control the bypass limit.
arXivarXiv · · March 10, 2020
0
13
Avoiding Scalability Collapse by Restricting Concurrency
Dave DiceAlex Kogan
The paper introduces GCR (generic concurrency restriction), a lock-agnostic wrapper that intercepts lock acquisition calls and decides when threads may proceed, thereby avoiding the scalability collapse that occurs when growing thread counts degrade performance in saturated or oversubscribed systems. A NUMA-aware variant, GCR-NUMA, further restricts allowed threads to the same socket. Evaluations on over two dozen locks, three machines, and three benchmarks show up to three orders of magnitude speedup under contention with negligible overhead otherwise.
arXivarXiv · · May 26, 2019
0
14
{BRAVO—Biased} Locking for {Reader-Writer} Locks
Dave DiceAlex Kogan
BRAVO is a simple transformation that augments any existing reader-writer lock, adding just two integer fields to the lock instance. Readers announce their presence by hashing their thread identity with the lock address to index a shared visible readers table, into which they install the lock address; all locks and threads in an address space can share this table, and readers of the same lock tend to write to different locations, reducing coherence traffic. This lets a simple compact lock achieve scalable concurrent reading with only a modest, constant memory increase. Implemented in user space and integrated with the Linux kernel reader-writer semaphore, BRAVO improved performance and scalability of underlying locks in read-heavy workloads while introducing virtually no overhead, including when writes are frequent.
USENIXUSENIX · 2019
0
Compact NUMA-Aware Locks
Dave DiceAlex Kogan
This paper introduces a compact NUMA-aware lock that requires only one word of memory, independent of the number of sockets. It is derived from the MCS lock and organizes waiting threads into two queues: one for threads on the same socket as the lock holder and another for threads on different sockets. The lock retains local spinning and a single atomic instruction on the acquisition path. Evaluated in the Linux kernel's qspinlock, it matches MCS single-thread performance and under contention outperforms MCS while achieving similar performance to state-of-the-art NUMA-aware locks that use much more space.
arXivarXiv · · October 12, 2018
0
72
TWA -- Ticket Locks Augmented with a Waiting Array
Dave DiceAlex Kogan
TWA (Ticket Locks Augmented with a Waiting Array) modifies the classic ticket lock by directing long-term waiting threads to a globally shared waiting array rather than spinning on the single grant field. Only short-term waiting still uses the grant field. This limits the number of threads continuously polling the grant, reducing remote cache invalidations and accelerating lock handover. Under high contention, TWA improves scalability compared to classic ticket locks and performs at or above MCS locks, while retaining the simple fast path of ticket locks under light contention.
arXivarXiv · · October 3, 2018
0
13
Persistent Memory Transactions
Virendra MaratheAchin MishraAmee TrivediYihe HuangFaisal ZaghloulSanidhya KashyapMargo SeltzerTim HarrisSteve ByanBill BridgeDave Dice
This paper analyzes performance trade-offs among three transaction runtime implementations on persistent memory: undo logging, redo logging, and copy-on-write. It finds no single runtime is universally optimal; performance depends on factors such as workload read/write patterns, persistence domain size, cache locality, and runtime overhead. The analysis is confirmed with microbenchmarks and three real-world applications (a key-value store, a SQLite port, and persistified memcached), which also reveal additional effects of multithreading and synchronization.
arXivarXiv · · March 9, 2018
0
30
Malthusian Locks
Dave Dice
This paper addresses scalability collapse from excessive threads in contended locks. It proposes Malthusian Locks, which modify lock admission to limit concurrent threads by passivating surplus ones, capping concurrency to a level that keeps the lock saturated. Short-term unfairness is mitigated by periodically swapping active and passivated sets to ensure long-term fairness. The method is palliative but often yields performance benefits, with no harm in the worst case.
arXivarXiv · · November 19, 2015
0
The Influence of Malloc Placement on TSX Hardware Transactional Memory
Dave DiceTim HarrisAlex KoganYossi Lev
The paper shows that dynamic memory allocators (e.g., malloc) can increase L1 conflict-miss rates by placing active blocks onto the same cache indices, which under Intel Haswell HTM causes transactional aborts. In transactional lock elision (TLE), such persistent aborts force a thread onto the non-transactional slow path, blocking concurrent fast-path transactions. This placement-induced loss of concurrency reduces aggregate throughput.
arXivarXiv · · April 17, 2015
0
20
Hardware extensions to make lazy subscription safe
Dave DiceTimothy L. HarrisAlex KoganYossi LevMark Moir
This paper identifies pitfalls in lazy subscription, an optimization that defers reading the lock to increase concurrency, showing it is unsafe for Transactional Lock Elision (TLE) because unmodified critical sections may behave incorrectly before subscribing. Existing compiler and hardware proposals fail to avoid all pitfalls. The authors propose hardware extensions that make lazy subscription safe for both TLE and single-global-lock transactional systems without requiring special compiler support, and also show how nontransactional loads can enhance its effectiveness.
arXivarXiv · · July 23, 2014
0
19
Lightweight Contention Management for Efficient Compare-and-Swap Operations
Dave DiceDanny HendlerIlya Mirsky
This paper studies whether software-based contention management can improve the efficiency of hardware compare-and-swap (CAS) operations. The authors show that lightweight contention management significantly boosts CAS performance under medium and high contention, with only small overhead at low contention. The central contribution is demonstrating that simple software support can mitigate the performance degradation of CAS due to memory contention.
arXivarXiv · · May 24, 2013
0
49
Frequent collaborators
Alex Kogan (17)
Tim Harris (2)
Yossi Lev (2)
Hamid Mozaffari (1)
Virendra J. Marathe (1)
Shady Issa (1)
Virendra Marathe (1)
Achin Mishra (1)
Amee Trivedi (1)
Yihe Huang (1)
Faisal Zaghloul (1)
Sanidhya Kashyap (1)