[Paper Review] Starvation Freedom in Multi-Version Transactional Memory Systems
This paper proposes KSFTM, the first multi-version Software Transactional Memory (STM) system that guarantees starvation freedom while supporting K versions of each transactional object, where K is a configurable parameter. The algorithm ensures every transaction eventually commits by using a dynamic, fair scheduling mechanism that prevents high-priority transactions from blocking others, even when they are slow, thus achieving correctness and starvation freedom in a concurrent, multi-core environment.
Software Transactional Memory systems (STMs) have garnered significant interest as an elegant alternative for addressing synchronization and concurrency issues with multi-threaded programming in multi-core systems. In order for STMs to be efficient, they must guarantee some progress properties. This work explores the notion of starvation-freedom in Software Transactional Memory Systems (STMs). An STM system is said to be starvation-free if every thread invoking a transaction gets opportunity to take a step (due to the presence of a fair scheduler) then the transaction will eventually commit. A few starvation-free algorithms have been proposed in the literature in the context of single-version STM Systems. These algorithm work on the basis of priority. But the drawback with this approach is that if a set of high-priority transactions become slow then they can cause several other transactions to abort. Multi-version STMs maintain multiple-versions for each transactional object or t-object. By storing multiple versions, these systems can achieve greater concurrency. In this paper, we propose a multi-version starvation free STM, KSFTM, which as the name suggests achieves starvation freedom while storing K versions of each t-object. Here K is an input parameter fixed by the application programmer depending on the requirement. Our algorithm is dynamic which can support different values of K ranging from 1 to infinity . If K is infinity then there is no limit on the number of versions. But a separate garbage-collection mechanism is required to collect unwanted versions. On the other hand, when K is 1, it becomes same as a single-version STM system. We prove the correctness and starvation-freedom property of the proposed KSFTM algorithm. To the best of our knowledge, this is the first multi-version STM system that is correct and satisfies starvation-freedom as well.
Motivation & Objective
- To address the lack of starvation freedom in existing multi-version STM systems, which can lead to indefinite transaction abortion.
- To design a dynamic STM algorithm that supports any number of versions (K) from 1 to infinity, allowing flexibility based on application needs.
- To ensure that every transaction, regardless of priority, eventually commits under a fair scheduler, eliminating starvation.
- To prove correctness and starvation freedom formally in a multi-version STM context, a gap in prior work.
Proposed method
- KSFTM maintains K versions of each transactional object, allowing concurrent reads and writes without blocking.
- It uses a dynamic versioning mechanism that adapts K based on system load and application requirements.
- A fair scheduling mechanism ensures that no transaction is indefinitely delayed, even if high-priority transactions are slow.
- The algorithm employs a priority-based mechanism for version selection and conflict resolution, but with fairness guarantees to prevent starvation.
- A separate garbage collection mechanism is used when K is finite to reclaim obsolete versions.
- The system ensures atomicity and isolation through versioned read and write operations, with commit decisions based on version consistency checks.
Experimental results
Research questions
- RQ1Can a multi-version STM system be designed to guarantee starvation freedom while supporting dynamic version counts?
- RQ2How can fairness be ensured in version selection and transaction progress without relying solely on priority-based mechanisms?
- RQ3What is the impact of varying K (number of versions) on system throughput and fairness in transaction execution?
- RQ4Is it possible to maintain correctness and starvation freedom in a multi-version STM without imposing strict limits on version count?
- RQ5How does the proposed algorithm compare to single-version starvation-free STMs in terms of concurrency and progress guarantees?
Key findings
- KSFTM is the first multi-version STM system proven to be both correct and starvation-free, filling a critical gap in the literature.
- The algorithm supports dynamic K values from 1 to infinity, allowing application-specific tuning of versioning overhead and concurrency.
- When K = 1, KSFTM reduces to a single-version STM, maintaining backward compatibility.
- The system ensures that every transaction eventually commits under a fair scheduler, even if high-priority transactions are slow.
- A separate garbage collection mechanism is required when K is finite to manage obsolete versions and prevent unbounded memory growth.
- Formal correctness and starvation-freedom proofs are established, confirming the algorithm's reliability in concurrent, multi-core environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.