Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Actrace
V2EX  ›  Linux

cgroups 和 ulimit 的差别

  •  
  •   Actrace · Apr 8, 2015 · 2721 views
    This topic created in 4083 days ago, the information mentioned may be changed or developed.
    cgroups和ulimit似乎都可以针对资源做出限制,不过实质上的差别还不是搞得很清楚,各位大神支支招?
    2 replies    2015-04-08 10:03:54 +08:00
    halfbloodrock
        1
    halfbloodrock  
       Apr 8, 2015
    ulimit限制有限,对磁盘就没有能力限制。需要使用pam_limit.so 模块

    cgroup是更为完整的资源控制方式,需要内核支持
    GtDzx
        2
    GtDzx  
       Apr 8, 2015
    粗浅的认识: ulimit出现很早,是对user做出一些资源的限制。cgroup是为了更好支持虚拟化做出来的内核新特性,使用起来更方便,可以随意把进程加入cgroup或者从cgroup删除。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:31 · PVG 21:31 · LAX 06:31 · JFK 09:31
    ♥ Do have faith in what you're doing.