Why RSS not increasing why keeping allocation memory in heap

前端 未结 0 828
迷失自我
迷失自我 2021-01-17 15:57

I\'m learning cgroup, Here\'s my code to simulate oom:

while(true){
   int* mem = new int(100); 
   *mem = 1000; 
   sleep(1);
}

when running

相关标签:
回答
  • 消灭零回复
提交回复
热议问题