[Paper Review] Sentinel: Runtime Data Management on Heterogeneous Main MemorySystems for Deep Learning
Sentinel is a runtime system that optimizes data management on heterogeneous main memory (HM) for deep learning workloads by leveraging domain-specific knowledge of DNNs. It enables accurate, low-overhead profiling at the data object level and proactively migrates hot data to fast memory, achieving near-peak performance with only 20% of the fast memory capacity required by a pure fast-memory system, outperforming state-of-the-art solutions by 18%.
Software-managed heterogeneous memory (HM) provides a promising solution to increase memory capacity and cost efficiency. However, to release the performance potential of HM, we face a problem of data management. Given an application with various execution phases and each with possibly distinct working sets, we must move data between memory components of HM to optimize performance. The deep neural network (DNN), as a common workload on data centers, imposes great challenges on data management on HM. This workload often employs a task dataflow execution model, and is featured with a large amount of small data objects and fine-grained operations (tasks). This execution model imposes challenges on memory profiling and efficient data migration. We present Sentinel, a runtime system that automatically optimizes data migration (i.e., data management) on HM to achieve performance similar to that on the fast memory-only system with a much smaller capacity of fast memory. To achieve this,Sentinel exploits domain knowledge about deep learning to adopt a custom approach for data management. Sentinel leverages workload repeatability to break the dilemma between profiling accuracy and overhead; It enables profiling and data migration at the granularity of data objects (not pages), by controlling memory allocation. This method bridges the semantic gap between operating system and applications. By associating data objects with the DNN topology, Sentinel avoids unnecessary data movement and proactively triggers data movement. Using only 20% of peak memory consumption of DNN models as fast memory size, Sentinel achieves the same or comparable performance (at most 8% performance difference) to that of the fast memory-only system on common DNN models; Sentinel also consistently outperforms a state-of-the-art solution by 18%.
Motivation & Objective
- To address the performance bottleneck in DNN training on heterogeneous main memory (HM) systems with limited fast memory capacity.
- To overcome the trade-off between profiling overhead and accuracy in runtime data management on HM.
- To reduce unnecessary data movement by aligning memory management with DNN topology and execution semantics.
- To enable efficient data migration with minimal runtime impact while maintaining high performance.
- To demonstrate that DNN training can achieve near-peak performance using only 20% of the fast memory capacity required by a fast-memory-only system.
Proposed method
- Sentinel leverages workload repeatability in DNN training to profile only one training step, minimizing runtime overhead while maintaining high profiling accuracy.
- It performs profiling and data migration at the granularity of individual data objects rather than memory pages, bridging the semantic gap between OS and application.
- By associating data objects with the DNN computation graph, Sentinel identifies hot data in advance and triggers proactive data migration.
- It uses a custom memory allocation strategy to control data placement and track access patterns at the object level.
- Sentinel avoids unnecessary data movement by understanding the DNN topology and execution flow, reducing migration overhead.
- It integrates with the application runtime to coordinate data migration with computation phases, minimizing performance stalls.
Experimental results
Research questions
- RQ1Can domain-specific knowledge about DNNs be used to reduce profiling overhead while maintaining high accuracy in data management on heterogeneous memory?
- RQ2How can data migration be optimized at the data object level rather than the page level to reduce unnecessary movement?
- RQ3Can proactive data migration based on DNN topology improve performance with minimal fast memory capacity?
- RQ4What is the performance impact of using only 20% of the fast memory capacity compared to a full fast-memory system?
- RQ5How does Sentinel compare to state-of-the-art HM data management solutions in terms of performance and overhead?
Key findings
- Sentinel achieves performance within 8% of a fast memory-only system using only 20% of the fast memory capacity required by such a system.
- With minimal runtime overhead, Sentinel enables accurate profiling at the data object level, avoiding the high cost of page-level profiling.
- Sentinel consistently outperforms a state-of-the-art HM data management solution by 18% across common DNN models.
- By leveraging DNN-specific semantics, Sentinel reduces unnecessary data movement and improves migration efficiency.
- The system effectively resolves the conflict between OS-level page management and application-level data access patterns in DNN workloads.
- Sentinel demonstrates that domain-aware data management can break the traditional trade-off between profiling overhead and accuracy in HM systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.