0

i want to use cgroup v2 to control memory firstly: `

cd /sys/fs/cgroup

mkdir test

cat cgroup.controllers 
cpuset cpu io memory pids

echo 1M > memory.high

then open a new terminal and

stress -m 1 --vm-bytes 200M --vm-keep #here i get pid

then

echo pid > cgroup.procs

i use cat cgroup.procs find pid exists in the file, and cat memoey.hgh 104857600,but memory.current is 0 i think these will make sense,but actually not,is some step wrong? and what shoud i do?

jack
  • 1

0 Answers0