Siju George <[email protected]> writes:

> 1) how do I limit the RAM usage of a container?

In lxc.conf(5):

    lxc.cgroup.memory.limit_in_bytes = 256M
    lxc.cgroup.memory.memsw.limit_in_bytes = 1G

> 2) how do I limit the disk usage of a container ?

Ensure the rootfs is a dedicated filesystem (e.g. an LVM LV), and limit
its size accordingly.

Depending on the container, quota(8) may be an appropriate
alternative -- note that it can be bypassed if the container runs with
CAP_SYS_ADMIN and/or CAP_SYS_RESOURCE capabilities.


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to