Parallel Memory Management in Goose, C++, and Rust: An Experimental Study of Allocation, Reclamation, and Scaling
Abstract
Compiler-managed memory can reduce allocation and reclamation overhead, but its behavior under parallel workloads remains insufficiently characterized. This study evaluates Goose v2026.3 against C++ and Rust implementations, including tree variants with individually allocated nodes and contiguous arenas. We benchmarked worker-local dynamic arrays and binary trees using multiple workers on a workstation with four physical cores and eight logical CPUs. Repeated tree experiments included five construction, traversal, and reclamation rounds. Each main experimental configuration was measured in 15 independent process runs. We measured whole-process execution time, release-operation intervals, and memory usage at synchronized checkpoints. We also examined strong and weak scaling. For depth-20 trees with eight workers, Goose achieved 5.62% and 10.95% lower median execution times than the C++ and Rust arenas, respectively. Its additional process RSS at the LIVE checkpoint was comparable to the arenas and substantially lower than that of individually allocated trees, but its virtual memory size was much larger. Logical reclamation did not always reduce resident memory, and Goose showed lower weak-scaling efficiency than the C++ and Rust arenas. Results for dynamic arrays were mixed. These results indicate that compiler-managed storage can be effective for parallel workloads with predictable object lifetimes. However, execution time alone does not capture its memory and scalability trade-offs.
Create a lesson
Metadata
- Categories
- cs.DC, cs.PL
Related papers
StarMPI-SVD: Distributed-Memory Parallel Star-M Tensor SVD
Shared title terminologycs.DCNaman Pesricha, Grey Ballard, Srinivas Eswar et al.
XM-Sparse: High-Throughput Sparse-Attention LLM Serving over Scale-up Memory Pools
Shared title terminologycs.DCYijun Sun, Xudong Liao, Zhuobin Huang et al.
GC-MoE on SM120: Overlapping Expert-Parallel Token Dispatch with Warp-Level FP8xFP4 Block-Scaled MMA on Consumer Blackwell
Shared title terminologycs.DCYong Li, Haoyu Wang, Kan Liu et al.
Generalized Tensor Parallelism: Powering Trillion-Parameter LLM Training at 10+ EFLOP/s
Shared title terminologycs.DCShiqing Fan, Deepak Narayanan, Jimmy Zhang et al.
LIBRA: Runtime Co-Tuning of Batch Size and Parallelism for Time-Efficient LLM Training
Shared title terminologycs.DCShengkai Lyu, Hairui Zhao, Daran Sun et al.
RankServe: Rank-Aware CPU-GPU Scheduling for Memory-Constrained MoE Serving
Shared title terminologycs.DCHengyi Zhu, Zhendong Mi, Pu Zhao et al.