Hi.
I setup some containers (lxc 1.1.2 ubuntu-lxc-git-stable-1_1 ppa) and i
can configure memory with memory.limit_in_bytes, but i have two
problems:
- if i try to setup the swap memory limit with
memory.memsw.limit_in_bytes (in config or with lxc-cgroup), don't work
aparently, this is a mi
Quoting Yonsy Solis (yonsy@gmail.com):
> Hi.
>
> I setup some containers (lxc 1.1.2 ubuntu-lxc-git-stable-1_1 ppa)
> and i can configure memory with memory.limit_in_bytes, but i have
> two problems:
>
> - if i try to setup the swap memory limit with
> memory.memsw.limit_in_bytes (in config or
On Tue, Apr 28, 2015 at 2:59 PM, Serge Hallyn
wrote:
I suspect your kernel isn't compiled with the support for that. You
can verify that by looking under /sys/fs/cgroup/memory for a
memory.memsw.limit_in_bytes file. If you compile it into the kernel
then lxc will be able to use it
GRUB
.linuxcontainers.org] On Behalf
>Of Yonsy Solis
>Sent: Tuesday, April 28, 2015 10:34 PM
>To: LXC users mailing-list
>Subject: Re: [lxc-users] memory.limit_in_bytes works, but not
>memory.memsw.limit_in_bytes and cpuset.cpus
>
>
>
>On Tue, Apr 28, 2015 at 2:59 PM, Serge Hall
On Wed, Apr 29, 2015 at 7:10 AM, Jäkel, Guido wrote:
Dear Yonsys,
this is a known bug/feature of the controller, You can't
* lower memory.memsw limit_in_bytes below memory.limit_in_bytes
* raise memory.limit_in_bytes above memory.memsw limit_in_bytes
Notice that the default is "infinite"
Quoting Yonsy Solis (yonsy@gmail.com):
>
>
> On Wed, Apr 29, 2015 at 7:10 AM, Jäkel, Guido wrote:
> >Dear Yonsys,
> >
> >this is a known bug/feature of the controller, You can't
> >
> >* lower memory.memsw limit_in_bytes below memory.limit_in_bytes
> >* raise memory.limit_in_bytes above m
On Wed, Apr 29, 2015 at 8:15 AM, Serge Hallyn
wrote:
lxc-start -n db09
lxc-cgroup -n db09 memory.limit_in_bytes 512M
lxc-cgroup -n db09 memory.memsw.limit_in_bytes 2G
the host have 8GB RAM and 4GB swap.
with htop (and top too) i can see my ram memory in the container
limited to 512M
Quoting Yonsy Solis (yonsy@gmail.com):
>
>
> On Wed, Apr 29, 2015 at 8:15 AM, Serge Hallyn
> wrote:
>
> >> lxc-start -n db09
> >> lxc-cgroup -n db09 memory.limit_in_bytes 512M
> >> lxc-cgroup -n db09 memory.memsw.limit_in_bytes 2G
> >>
> >> the host have 8GB RAM and 4GB swap.
> >>
> >> with