On Thu, 2 Dec 2010, Serge E. Hallyn wrote: > Quoting Gordon Henderson ([email protected]): >> On Mon, 29 Nov 2010, Trent W. Buck wrote: >> >>> 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. >> >> Finally, a use for LVM.... >> >> And here was me about to embark on using filesystems in files loopback >> mounted... > > That should also work, just a bit slower, right?
I don't know, really. I use loopback mounted filesystems for other things and I don't really notice much slowdowns compared to the native filesystem, but I've never benchmarked it. It is some years since I looked at LVM and I wasn't impressed then so stopped thinking about it and used something else (I was looking at snapshot abilities at the time) I build systems for a purpose so rarely have the need to do the only thing LVM might be handy for - ie. resizing a volume so it just doesn't fgure in my systems, but maybe this is a valid use now. Gordon ------------------------------------------------------------------------------ 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
