Bug 817 - [4.19/5.10][x86_64/aarch64]incorrect meminfo in container sub cgroup
Summary: [4.19/5.10][x86_64/aarch64]incorrect meminfo in container sub cgroup
Status: CONFIRMED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: zhongjiang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-07 16:44 UTC by kangjiangbo
Modified: 2022-04-13 20:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kangjiangbo 2022-04-07 16:44:20 UTC
Description of problem:
4.19和5.10版本x86/arm均存在此问题:

当用户/程序在容器中读取 /proc/meminfo会显示该用户/程序所在的cgroup的meminfo,当该用户/程序所在的cgroup并不是容器的根组时,读取/proc/meminfo显示的就不是容器的内存信息,这并不符合用户/程序的预期



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: