I've 7 node Proxmox Cluster(4.2, just wait a good time to upgrade to 4.3), and on 2 of those nodes, LXC show strange performance when run with multi-thread programs.
a lxc config with 4 cpu quota
run sysbench in it with 2 4 8 threads I got:
The cpu time doubles when use 8 threads!
Also I got very bad performance for Java application.
KVM instance on same node is OK.
but if I move vm-165 to other node, problem disappears.
Kernel version is 4.4.13 or 4.4.21, but another node with 4.4.13 is fine.
Hardware configure is same (E5-2670 *2), include HT settings.
Any clues to check?
a lxc config with 4 cpu quota
Code:
root@pve2:~# more /etc/pve/lxc/165.conf
arch: amd64
cpulimit: 4
cpuunits: 1024
hostname: tmpcpu
memory: 8192
net0: name=eth0,bridge=vmbr0,hwaddr=FA:1F:6B:31:D3:6B,type=veth
ostype: centos
rootfs: lizardfs:165/vm-165-disk-1.raw,size=8G
swap: 512
run sysbench in it with 2 4 8 threads I got:
Code:
root@pve2:~# pct enter 165
[root@tmpcpu ~]# for i in 2 4 8; do sysbench --test=cpu --num-threads=$i --cpu-max-prime=10000 run | grep "total time" ; done
total time: 6.1024s
total time taken by event execution: 12.1959
total time: 2.7084s
total time taken by event execution: 10.8183
total time: 6.3878s
total time taken by event execution: 51.0799
Also I got very bad performance for Java application.
KVM instance on same node is OK.
but if I move vm-165 to other node, problem disappears.
Kernel version is 4.4.13 or 4.4.21, but another node with 4.4.13 is fine.
Hardware configure is same (E5-2670 *2), include HT settings.
Any clues to check?