可恢复互斥的自适应公平变换
Adaptive and Fair Transformation for Recoverable Mutual Exclusion
摘要:
互斥是处理并发系统中竞争的最常用技术之一。传统上,互斥算法是在假设进程在获取/释放锁或执行其临界区时不会失败的情况下设计的。但是,在现实生活中确实会发生故障,可能会使锁处于不一致的状态。这就产生了可恢复互斥(RME)的问题,涉及到设计一个互斥(ME)算法,可以容忍故障,同时保持安全性和活性属性。在这项工作中,我们提出了一个框架,将任何解决RME问题的算法转换为一个算法,该算法还可以同时适应(1)竞争锁的进程数量,以及(2)最近发生的故障数量,同时保持底层RME算法的正确性和性能属性。此外,作为这种转换的结果构造的算法增加了某些期望的属性,如公平性(FCFS的变体)和有界恢复。假设在底层RME算法中临界区请求的最差情况RMR复杂度是$R(n)$。然后,我们的框架产生一个RME算法的最坏情况下的RMR的关键部分请求的复杂性是由$\mathcal{O}(\min \{\ddot{c}, \sqrt{F+1}, R(n)\})$,其中$\ddot{c}$表示点竞争的请求和$F$表示在最近的过去的请求失败的数量。我们进一步扩展我们的框架,提出了一种新的内存回收算法,以限制最坏情况下的空间复杂度的RME算法。内存回收技术保持了我们的转换的公平性,性能和正确性的属性,是足够的一般性,以约束其他RME算法的空间。
英文摘要:
Mutual exclusion is one of the most commonly used techniques to handle contention in concurrent systems. Traditionally, mutual exclusion algorithms have been designed under the assumption that a process does not fail while acquiring/releasing a lock or while executing its critical section. However, failures do occur in real life, potentially leaving the lock in an inconsistent state. This gives rise to the problem of recoverable mutual exclusion (RME) that involves designing a mutual exclusion (ME) algorithm that can tolerate failures, while maintaining safety and liveness properties. In this work, we present a framework that transforms any algorithm that solves the RME problem into an algorithm that can also simultaneously adapt to (1) the number of processes competing for the lock, as well as (2) the number of failures that have occurred in the recent past, while maintaining the correctness and performance properties of the underlying RME algorithm. Additionally, the algorithm constructed as a result of this transformation adds certain desirable properties like fairness (a variation of FCFS) and bounded recovery. Assume that the worst-case RMR complexity of a critical section request in the underlying RME algorithm is $R(n)$. Then, our framework yields an RME algorithm for which the worst-case RMR complexity of a critical section request is given by $\mathcal{O}(\min \{\ddot{c}, \sqrt{F+1}, R(n)\})$, where $\ddot{c}$ denotes the point contention of the request and $F$ denotes the number of failures in the recent past of the request. We further extend our framework by presenting a novel memory reclamation algorithm to bound the worst-case space complexity of the RME algorithm. The memory reclamation techniques maintain the fairness, performance and correctness properties of our transformation and is general enough to be employed to bound the space of other RME algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。