Why ulimit can't limit resident memory successfully and how?

前端 未结 2 1561
面向向阳花
面向向阳花 2021-02-13 20:46

I start a new bash shell, and execute:

ulimit -m 102400
ulimit -a
\"
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
schedu         


        
2条回答
  •  礼貌的吻别
    2021-02-13 20:52

    You can restrict the resident memory using cgroups. See Resident Set Size (RSS) limit has no effect

提交回复
热议问题