Issue
If you see no processes under some user, but LVE Manager and LVE Statistics keep showing it is using some memory, the most probable reason for this behaviour is disk cache.
Environment
- CloudLinux
- LVE
Solution
To check personal users' disk cache, use these files:
-
on CloudLinux 6:
# cat /proc/bc/XXX/meminfo
-
on CloudLinux 7 and CloudLinux 6 Hybrid:
# cat /proc/bc/lveXXX/meminfo
Look for this line: Cached: 67300 kB
-
on CloudLinux 8 and CloudLinux 7 Hybrid:
# cat /sys/fs/cgroup/memory/lveXXX/memory.stat
Look for this line: cache 1662976
NB: XXX is user ID, could be found with:
# id username
Note the Path
CloudLinux uses hierarchical cgroups where:
-
lvpXXXX represents a parent cgroup that contains multiple LVE users, e.g. when a user belongs to a reseller.
-
lveXXXX is the specific cgroup for an individual user.
# find /sys/fs/cgroup/memory/ -name lveXXXX
-
example without parent:
# find /sys/fs/cgroup/memory/ -name lve1006
/sys/fs/cgroup/memory/lve1006 -
example with parent:
# find /sys/fs/cgroup/memory/ -name lve1044
/sys/fs/cgroup/memory/lvp1044/lve1044
Comments
2 comments
No such thing on hybrid (4.18) kernel. Alternative ? Another location ?
Hello Christos,
Yes, there is another location.
# cat /sys/fs/cgroup/memory/lveXXX/memory.stat
Look for this line:
cache 1662976
Please sign in to leave a comment.