how to fix mem/swap usage in the lxc ?

lynn_yudi

Renowned Member
Nov 27, 2011
86
0
71
hi, all

In the fedora 22(lxc) have this issue.
In the centos 6(lxc) have no this issue.

# free -m
total used free shared buff/cache available
Mem: 16384 18014398509481164 16381 80 822 16381
Swap: 8796093005823 0 8796093005823

# lxc-info -n 103
Name: 103
State: RUNNING
PID: 1536290
IP: 172.16.1.1
CPU use: 1.55 seconds
BlkIO use: 27.56 MiB
Memory use: 32.54 MiB
KMem use: 0 bytes
Link: veth103i0
TX bytes: 66.20 KiB
RX bytes: 134.79 KiB
Total bytes: 200.99 KiB
 
Can you post the container's config and `pveversion -v`, please?
 
# cat /etc/pve/lxc/103.conf
arch: amd64
cpulimit: 4
cpuunits: 202400
hostname: test
memory: 16384
net0: bridge=vmbr0,gw=172.16.1.254,hwaddr=36:64:30:33:31:38,ip=172.16.1.1/24,name=eth0,tag=2,type=veth
onboot: 1
ostype: fedora
rootfs: local:103/vm-103-disk-1.raw,size=32G
swap: 16384

# pveversion -v
proxmox-ve: 4.1-34 (running kernel: 4.2.6-1-pve)
pve-manager: 4.1-5 (running version: 4.1-5/f910ef5c)
pve-kernel-4.2.6-1-pve: 4.2.6-34
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-31
qemu-server: 4.0-49
pve-firmware: 1.1-7
libpve-common-perl: 4.0-45
libpve-access-control: 4.0-11
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.5-3
pve-container: 1.0-39
pve-firewall: 2.0-15
pve-ha-manager: 1.0-19
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-6
lxcfs: 0.13-pve3
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve7~jessie
openvswitch-switch: 2.3.2-2

from 4 to now, have this issue always. :(