Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

15.13 Memory Resource Controller

The Memory Resource Controller (memcg) represents a highly critical resource orchestration module that fits as one of the thirteen primary subsystem pillars of the Linux control groups (cgroups) framework. It is designed to enforce quota limits, monitor active footprints, and export accounting analytics for process groups. Leveraging the memory resource controller enables system administrators to enforce strict execution caps bounding the maximum volume of physical memory, swap space, and kernel-space allocations that a designated process group is permitted to consume. Furthermore, it allows administrators to configure custom memory reclamation priorities for cached allocations when the cgroup faces memory contention. System administrators can additionally configure the precise behavioral policy of the group when its allocation thresholds are breached—choosing whether the out-of-memory subsystem should immediately invoke the OOM killer to terminate a task within that group, or temporarily suspend the execution paths of the group's processes to wait for the system to free up sufficient memory blocks. The memory manager tracks and exports real-time memory usage metrics for every process bound within its hierarchical structure.

Copyright © 2026 Guangzhou eSmart Information Technology Co., Ltd. All Rights Reserved.
All content in this book is copyrighted by the author. For personal learning and exchange only. Commercial use without authorization is strictly prohibited. Email:

✉ 3348194517@qq.com | hai616878@gmail.com