A Deterministic Method for Intermediate-Data Lifecycle Management in DAG-Oriented Multi-Stage Processing Systems
Keywords:
workflow management, intermediate data, garbage collection, directed acyclic graph, data lifecycle, buffer storage, pipeline processing, idempotency.Abstract
In multi-stage data-processing systems the intermediate datasets may greatly exceed the size of the final result and, under a bounded buffer capacity, lead to overflow. Classical space-reclamation approaches (reference counting, tracing garbage collection, fixed time-to-live, manual cleanup) either ignore task-completion semantics or require costly co- ordination. We propose a deterministic method for intermediate-data lifecycle management based on a topological analysis of consumer-task statuses in a directed acyclic graph (DAG). A safe-deletion criterion is formulated and proved correct; two cleanup policies (immediate and deferred) are described. The method requires no distributed locks, is linear in the graph size and idempotent. An analytical buffer-pressure model is derived; a simulation shows that, for a fixed buffer, the immediate policy cuts the required idle gap between data-taking sessions by an order of magnitude.
References
1. E. Deelman, K. Vahi, G. Juve et al., “Pegasus, a workflow management system for science automation,” Future Generation Computer Systems, vol. 46, pp. 17–35, 2015, doi:10.1016/j.future.2014.10.008.
2. P. Di Tommaso, M. Chatzou, E. W. Floden et al., “Nextflow enables reproducible computational work- flows,” Nature Biotechnology, vol. 35, no. 4, pp. 316–319, 2017, doi:10.1038/nbt.3820.
3. F. Mölder, K. P. Jablonski, B. Letcher et al., “Sustainable data analysis with snakemake,” F1000Research, vol. 10, p. 33, 2021, doi:10.12688/f1000research.29032.2.
4. T. Maeno, “Panda: distributed production and distributed analysis system for ATLAS,” Journal of Physics: Conference Series, vol. 119, no. 6, p. 062036, 2008, doi:10.1088/1742-6596/119/6/062036.
5. F. Stagni, A. Tsaregorodtsev, M. U. Garcia et al., “DIRAC in large particle physics experiments,” Journal of Physics: Conference Series, vol. 898, no. 9, p. 092020, 2017, doi:10.1088/1742-6596/898/9/092020.
6. D. Thain, T. Tannenbaum, and M. Livny, “Distributed computing in practice: the condor experi- ence,” Concurrency and Computation: Practice and Experience, vol. 17, no. 2–4, pp. 323–356, 2005, doi:10.1002/cpe.938.
7. G. E. Collins, “A method for overlapping and erasure of lists,” Communications of the ACM, vol. 3, no. 12, pp. 655–657, 1960, doi:10.1145/367487.367501.
8. P. R. Wilson, “Uniprocessor garbage collection techniques,” in Int. Workshop on Memory Management (IWMM 1992), in LNCS, vol. 637, 1992, pp. 1–42, doi:10.1007/BFb0017182.
9. R. Jones and R. Lins, Garbage Collection: Algorithms for Automatic Dynamic Memory Management. John Wiley & Sons, 1996.
10. R. Jones, A. Hosking, and E. Moss, The Garbage Collection Handbook: The Art of Automatic Memory Management. Chapman and Hall/CRC, 2011.
11. A. I. Legalov, V. S. Vasiliev, I. V. Matkovsky, and M. S. Ushakova, “Tool support for creation and trans- formation of functionally-streaming parallel programs,” Proceedings of the ISP RAS, vol. 29, no. 5, pp. 165–184, 2017, (in Russian). doi:10.15514/ISPRAS-2017-29(5)-10.
12. A. G. Feoktistov, S. A. Gorsky, I. A. Sidorov et al., “Continuous integration of functional content of distributed applied software packages in Orlando Tools,” Proceedings of the ISP RAS, vol. 31, no. 2, pp. 83–96, 2019, (in Russian). doi:10.15514/ISPRAS-2019-31(2)-7.
13. M. Barisits, T. Beermann, F. Berghaus et al., “Rucio: Scientific data management,” Computing and Software for Big Science, vol. 3, p. 11, 2019, doi:10.1007/s41781-019-0026-3.
14. A. B. Kahn, “Topological sorting of large networks,” Communications of the ACM, vol. 5, no. 11, pp. 558–562, 1962, doi:10.1145/368996.369025.
15. P. Helland, “Idempotence is not a medical condition,” Communications of the ACM, vol. 55, no. 5, pp. 56–65, 2012, doi:10.1145/2160718.2160734.
Downloads
Published
Issue
Section
License
Copyright (c) 1970 L. R. Romanychev, A. B. Degtyarev

This work is licensed under a Creative Commons Attribution 4.0 International License.
