Re: [lxc-users] memory limits(lxd forkstart) in LXD

2015-08-07 Thread Luis M. Ibarra
Here's part of the log file $sudo cat /var/log/lxd/lab1/lxc.log lxc_container 1438976958.115 DEBUGlxc_start - start.c:setup_signal_fd:259 - sigchild handler set lxc_container 1438976958.115 DEBUGlxc_console - console.c:lxc_console_peer_default:536 - no console peer lxc_container

[lxc-users] memory limits(lxd forkstart) in LXD

2015-08-07 Thread Luis M. Ibarra
Hi everyone, According to the configuration specs for memory limits I only have to add: lxc profile set [profile] [key] [value] well, I have a container inside a kvm vm with 1gb RAM, I want to limit the container memory to 250MB. So I did: $lxc profile set default limits.memory 250 $lxc

Re: [lxc-users] memory limits(lxd forkstart) in LXD

2015-08-07 Thread Serge Hallyn
Yeah it looks like right now lxd interprets the number as bytes. Try setting it to 25000. Or perhaps '250M' might work. Quoting Luis M. Ibarra (michael.iba...@gmail.com): Here's part of the log file $sudo cat /var/log/lxd/lab1/lxc.log lxc_container 1438976958.115 DEBUGlxc_start -

Re: [lxc-users] memory limits

2015-04-14 Thread Mohan G
@lists.linuxcontainers.org Sent: Thursday, April 9, 2015 11:11 AM Subject: Re: [lxc-users] memory limits On Thu, Apr 9, 2015 at 11:33 AM, Mohan G mohan...@yahoo.com wrote: Hi, query: if i create a cgroup with memory limit of 4GB  and if the system has 8GB ram, now if both the system wide

[lxc-users] memory limits

2015-04-08 Thread Mohan G
Hi,query: if i create a cgroup with memory limit of 4GB  and if the system has 8GB ram, now if both the system wide pressure is pretty high, does it mean it can take away part of this cgroup memory and what if the cgroup now wants to run its workloads ?My question is whether there is any

Re: [lxc-users] memory limits

2015-04-08 Thread Fajar A. Nugraha
On Thu, Apr 9, 2015 at 11:33 AM, Mohan G mohan...@yahoo.com wrote: Hi, query: if i create a cgroup with memory limit of 4GB and if the system has 8GB ram, now if both the system wide pressure is pretty high, does it mean it can take away part of this cgroup memory and what if the cgroup now