Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](cgroup memory) Correct cgroup mem info cache (apache#36966)
## Proposed changes After upgrading to Doris 2.1.3, we noticed that the "sys available memory" in be.INFO continuously decreases until it falls below the warning water mark, leading to persistent garbage collection (GC) despite the actual memory usage being very low. And The cache in cgroup mem info is always 0. Consequently, I identified an error in the calculation of available memory in cgroup memory: 1. The memory information for cgroup memory is stored in the file "memory.stat" rather than "memory.meminfo" (in fact, the "memory.meminfo" file does not exist). You can see the files under the cgroup path in the attached screenshot1. 2. The output content of "memory.stat" is shown in the screenshot1 below. <img width="1720" alt="image" src="https://github.com/apache/doris/assets/38196564/e654322e-9bf4-4f5e-951f-99e101ebbf47"> <img width="1364" alt="image" src="https://github.com/apache/doris/assets/38196564/02cf8899-7618-4d5f-bf59-68fa0c90ebf2"> <!--Describe your changes.--> My change is about two steps: 1. Modified the file name for mem info in cgroup. 2. Modified the process for extracting the cache from cgroup. Co-authored-by: Xinyi Zou <[email protected]>
- Loading branch information