Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-09 Thread Fajar A. Nugraha
On Fri, May 9, 2014 at 6:11 PM, CDR wrote: > I just tested and in fact, the memory restriction does not work. > a) set a 5G limit for the container > b) started the container > c) gave 16 G memory to mysql > D) restarted mysql > it works fine and it also shows the memory on "show variable like '%b

Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-09 Thread CDR
I just tested and in fact, the memory restriction does not work. a) set a 5G limit for the container b) started the container c) gave 16 G memory to mysql D) restarted mysql it works fine and it also shows the memory on "show variable like '%buffer%' Any idea how to work around this? I am afraid a

Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-09 Thread CDR
The memory limit falis in Ubuntu Server lxc-start -n utel-kde lxc-start: call to cgmanager_set_value_sync failed: invalid request lxc-start: Error setting cgroup memory.limit_in_bytes limit lxc/utel-kde lxc-start: Error setting memory.limit_in_bytes to 5GB for utel-kde lxc-start: failed to setup t

Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-09 Thread Wojciech Arabczyk
This is a drawback of the procutils package, and nothing you can really do about it. Better explained here: http://fabiokung.com/2014/03/13/memory-inside-linux-containers/ On 9 May 2014 11:13, CDR wrote: > Dear Serge > I type inside the container > free -g > and it shows the memory of the whole

Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-09 Thread CDR
Dear Serge I type inside the container free -g and it shows the memory of the whole box. Am sure that is not by design. The customer must not see that. Philip On Thu, May 8, 2014 at 11:04 PM, Serge Hallyn wrote: > Quoting CDR (vene...@gmail.com): >> Dear Friends >> I found an example for the co

Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-08 Thread Serge Hallyn
Quoting CDR (vene...@gmail.com): > Dear Friends > I found an example for the config file > lxc.cgroup.memory.limit_in_bytes = 5GB > lxc.cgroup.memory.memsw.limit_in_bytes = 6G > > But the container still shows100% of the memoty. what do you mean by 'shows'? ___

Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-08 Thread CDR
Dear Friends I found an example for the config file lxc.cgroup.memory.limit_in_bytes = 5GB lxc.cgroup.memory.memsw.limit_in_bytes = 6G But the container still shows100% of the memoty. Philip On Thu, May 8, 2014 at 10:35 PM, CDR wrote: > Dear friends > > The memory control does not work > I run

Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-08 Thread CDR
Dear friends The memory control does not work I run this command lxc-cgroup -n utel-kde memory.limit_in_bytes 53687091 which is supposed to assing 5B of ram to my container. Then I logged into the container and the box´s memory was still visible within. Then I added this line to the config memory.

Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-06 Thread Piotr Synowiec
Thanks, it's working! Good day ;) 2014-05-06 15:35 GMT+02:00 Dwight Engen : > On Tue, 6 May 2014 15:19:28 +0200 > Piotr Synowiec wrote: > > > Hi, > > > >I want to update memory.limit_in_bytes. The question is do I need > > to restart container after changing that limit or there is a way to

Re: [lxc-users] Is it possible to change memory limits without restarting container?

2014-05-06 Thread Dwight Engen
On Tue, 6 May 2014 15:19:28 +0200 Piotr Synowiec wrote: > Hi, > >I want to update memory.limit_in_bytes. The question is do I need > to restart container after changing that limit or there is a way to > apply that limit w/out restarting container? You don't need to restart, see the lxc-cgro

[lxc-users] Is it possible to change memory limits without restarting container?

2014-05-06 Thread Piotr Synowiec
Hi, I want to update memory.limit_in_bytes. The question is do I need to restart container after changing that limit or there is a way to apply that limit w/out restarting container? Regards, Piotr Synowiec ___ lxc-users mailing list lxc-users@lists.

[lxc-users] Is it possible to change memory limits without restarting container?

2014-05-06 Thread Piotr Synowiec
Hi, I want to update memory.limit_in_bytes. The question is do I need to restart container after changind that limit or there is a way to apply that limit w/out restarting container? Regards, Piotr Synowiec ___ lxc-users mailing list lxc-users@lists.