This topic describes the new memcg statistical items added to the Memcg Exstat feature in Alibaba Cloud Linux 2 with kernel version 4.19.91-18.al7
and later and Alibaba Cloud Linux 3 with kernel version 5.10.134-12.al8
and later. The new memcg statistical items include statistics on latency caused by changes in the global minimum watermark and statistics on latency caused by memcg backend asynchronous reclamation.
New memcg statistical items
Memcg statistical item | Description |
Statistics on latency caused by changes in the global minimum watermark |
|
Statistics on latency caused by memcg backend asynchronous reclamation |
|
Query the memory.exstat interface
Create a test file at the mount point of the memcg and check whether the memcg file contains the memory.exstat interface. In most cases, the mount point of the memcg is /sys/fs/cgroup/memory.
Create a test file.
sudo mkdir /sys/fs/cgroup/memory/test
Query the memory.exstat interface.
cat /sys/fs/cgroup/memory/test/memory.exstat
The following command output indicates that the memcg file contains the memory.exstat interface.
wmark_min_throttled_ms 0 wmark_reclaim_work_ms 0