Skip to content

the contents of /proc/stat be reset  #643

Open
@qwjhq

Description

@qwjhq

lxcfs in 5.0.4 version, in container exec command

1 、will get /proc/stat be reset after 3 minutes,
exec command: while true; do sleep 1; date >>/tmp/2; grep 'cpu' /proc/stat>>/tmp/2; done
2、in the same time get cpu from host cgroup file is normal,the value of the CPU is cumulative.
exec command: while true; do sleep; date >> /tmp/1; cat /sys/fs/cgroup/cpu,cpuacct/xxx(对应cgroup目录)/cpuacct.usage_all >>/tmp/1; done
3、change lxcfs version to 4.0.5 /proc/stat value is correct
image

lxcfs 4.0.5 5.0.4 run command :
/usr/local/bin/lxcfs --enable-cfs -l --enable-pidfd -u /var/lib/lxc/lxcfs

lxcfs 4.0.5 use fuse-2.9.9

lxcfs 5.0.4 use fuse3-3.9.2

container mount:
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    IncompleteWaiting on more information from reporter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions