Re: [lxc-users] No swap space inside containers

2020-08-08 Thread Kees Bos
On Sat, 2020-08-08 at 12:20 -0300, Luis Felipe Marzagao wrote:

> 
> Any pointers?
> 


https://discuss.linuxcontainers.org/t/invalid-swaptotal-in-proc-meminfo-swaptotal-0/8231/17



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


[lxc-users] No swap space inside containers

2020-08-08 Thread Luis Felipe Marzagao

Swap is ok on the host:

manager@andromeda:~$ sudo swapon --show
NAME   TYPE  SIZE USED PRIO
/dev/zram0 partition   2G 256K    5
/dev/zram1 partition   2G 256K    5
/dev/zram2 partition   2G 256K    5
/dev/zram3 partition   2G   0B    5
/swapfile  file    2G   0B   -2

manager@andromeda:~$ free -h
  total    used    free  shared buff/cache   
available

Mem:    15G 11G    809M 53M 3.0G    3.5G
Swap:  9.8G    768K    9.8G

But there is no swap inside containers:

manager@andromeda:~$ lxc exec pbx -- free -h
  total    used    free  shared buff/cache   
available

Mem:    15G    546M 14G 50M 187M 14G
Swap:    0B  0B  0B

manager@andromeda:~$ lxc exec sombrero -- free -h
  total    used    free  shared buff/cache   
available

Mem:    15G    630M 14G    164K 102M 14G
Swap:    0B  0B  0B

I didn´t change any settings regarding swap or memory. This is a pretty 
standard ubuntu + lxd installation.


manager@andromeda:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"

manager@andromeda:~$ snap list
Name    Version    Rev    Tracking   Publisher   Notes
core    16-2.45.2  9665   latest/stable  canonical✓  core
core18  20200724   1885   latest/stable  canonical✓  base
lxd 4.4    16530  latest/stable  canonical✓  -

Any pointers?

Thanks  a lot.


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