Re: [lxc-users] Container free memory vs host and OOM errors

2016-09-27 Thread Andrey Repin
Greetings, Mathias Gibbens!

>   It looks like the fix for that regression wasn't included until 4.7.5.
> I'm compiling it and will see if I still get the OOM errors. However, my
> original question still stands: is the difference in reported available
> memory between containers and the host intentional, or a bug?

It's likely a misfeature.
Container sees the available RAM, count RAM used by its processes, and
calculating free memory from them two with no way to know that it's not the
only one using the memory.
I'd suggest you always limit container memory, even if only marginally (say,
40-60% of available RAM), if you know you'd be running heavy processes inside
them from time to time.


-- 
With best regards,
Andrey Repin
Tuesday, September 27, 2016 18:53:13

Sorry for my terrible english...

___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Container free memory vs host and OOM errors

2016-09-27 Thread Mathias Gibbens
Hi Tomasz,

  It looks like the fix for that regression wasn't included until 4.7.5.
I'm compiling it and will see if I still get the OOM errors. However, my
original question still stands: is the difference in reported available
memory between containers and the host intentional, or a bug?

Thanks,
Mathias

On Tue, 2016-09-27 at 11:45 +0900, Tomasz Chmielewski wrote:
> On 2016-09-27 11:24, Mathias Gibbens wrote:
> > Hi,
> > 
> >   Recently I've been setting up unprivileged LXC containers on an older
> > server that has 6GB of physical RAM. As my containers are running,
> > occasionally I am seeing OOM errors in the host's syslog when the 
> > kernel
> 
> 
> >   This system is running Debian stretch (currently the "testing"
> > distribution), 64bit kernel 4.7.4-grsec
> 
> Might be 4.7.x kernel.
> 
> There was some OOM regression in 4.7.x, but I'm not sure if it was fixed 
> in 4.7.4 or not.
> 
> 
> Tomasz Chmielewski
> https://lxadm.com
> 




signature.asc
Description: This is a digitally signed message part
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Container free memory vs host and OOM errors

2016-09-26 Thread Tomasz Chmielewski

On 2016-09-27 11:24, Mathias Gibbens wrote:

Hi,

  Recently I've been setting up unprivileged LXC containers on an older
server that has 6GB of physical RAM. As my containers are running,
occasionally I am seeing OOM errors in the host's syslog when the 
kernel




  This system is running Debian stretch (currently the "testing"
distribution), 64bit kernel 4.7.4-grsec


Might be 4.7.x kernel.

There was some OOM regression in 4.7.x, but I'm not sure if it was fixed 
in 4.7.4 or not.



Tomasz Chmielewski
https://lxadm.com

___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users