针对 macOS/APFS 的 AI 训练 crash 一致性检查点
Crash-Consistent Checkpointing for AI Training on macOS/APFS
AI总结:
本文针对 macOS/APFS 上 AI 训练提出 crash 一致性检查点方法,通过三种写入模式提升检查点可靠性,实验表明其能高效检测损坏并降低误报,性能开销显著。
摘要:
深度学习训练依赖于定期检查点来从故障中恢复,但不安全的检查点安装可能会在磁盘上留下损坏的文件。本文对 macOS/APFS 上 AI 训练的检查点安装协议和完整性验证进行了实验研究。我们实现了三种写入模式,具有递增的耐久性保证:不安全(基线,无 fsync)、原子_nodirsync(通过 fsync() 实现文件级耐久性)和原子_dirsync(文件+目录耐久性)。我们设计了一种格式无关的完整性守护程序,使用 SHA-256 校验和和自动回滚。通过受控实验,包括崩溃注入(430 次不安全模式试验)和损坏注入(1,600 次原子模式试验),我们证明完整性守护程序能够检测 99.8-100% 的损坏,且无误报。性能开销为原子_nodirsync 相比基线为 56.5-108.4%,原子_dirsync 为 84.2-570.6%。我们的发现量化了可靠性与性能的权衡,并为生产 AI 基础设施提供了部署指导。
英文摘要:
Deep learning training relies on periodic checkpoints to recover from failures, but unsafe checkpoint installation can leave corrupted files on disk. This paper presents an experimental study of checkpoint installation protocols and integrity validation for AI training on macOS/APFS. We implement three write modes with increasing durability guarantees: unsafe (baseline, no fsync), atomic_nodirsync (file-level durability via fsync()), and atomic_dirsync (file + directory durability). We design a format-agnostic integrity guard using SHA-256 checksums with automatic rollback. Through controlled experiments including crash injection (430 unsafe-mode trials) and corruption injection (1,600 atomic-mode trials), we demonstrate that the integrity guard detects 99.8-100% of corruptions with zero false positives. Performance overhead is 56.5-108.4% for atomic_nodirsync and 84.2-570.6% for atomic_dirsync relative to the unsafe baseline. Our findings quantify the reliability-performance trade-offs and provide deployment guidance for production AI infrastructure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。