Dan Plyukhin ; Gul Agha - A Scalable Algorithm for Decentralized Actor Termination Detection

lmcs:7353 - Logical Methods in Computer Science, March 11, 2022, Volume 18, Issue 1 - https://doi.org/10.46298/lmcs-18(1:39)2022
A Scalable Algorithm for Decentralized Actor Termination DetectionArticle

Authors: Dan Plyukhin ORCID; Gul Agha

    Automatic garbage collection (GC) prevents certain kinds of bugs and reduces programming overhead. GC techniques for sequential programs are based on reachability analysis. However, testing reachability from a root set is inadequate for determining whether an actor is garbage: Observe that an unreachable actor may send a message to a reachable actor. Instead, it is sufficient to check termination (sometimes also called quiescence): an actor is terminated if it is not currently processing a message and cannot receive a message in the future. Moreover, many actor frameworks provide all actors with access to file I/O or external storage; without inspecting an actor's internal code, it is necessary to check that the actor has terminated to ensure that it may be garbage collected in these frameworks. Previous algorithms to detect actor garbage require coordination mechanisms such as causal message delivery or nonlocal monitoring of actors for mutation. Such coordination mechanisms adversely affect concurrency and are therefore expensive in distributed systems. We present a low-overhead deferred reference listing technique (called DRL) for termination detection in actor systems. DRL is based on asynchronous local snapshots and message-passing between actors. This enables a decentralized implementation and transient network partition tolerance. The paper provides a formal description of DRL, shows that all actors identified as garbage have indeed terminated (safety), and that all terminated actors--under certain reasonable assumptions--will eventually be identified (liveness).


    Volume: Volume 18, Issue 1
    Published on: March 11, 2022
    Accepted on: December 22, 2021
    Submitted on: April 13, 2021
    Keywords: Computer Science - Logic in Computer Science

    Consultation statistics

    This page has been seen 2063 times.
    This article's PDF has been downloaded 536 times.