I'm wondering why I seem to loose so much power when comparing my VMs vCPU to the physical PVE CPU:
Got a PoC PVE 3.4 test cluster, node1-4 runs Ceph Giant with RBD pool for VM images, node5-7 runs VMs.
Node 1,2,7 are 2x dual core AMD Opteron 2218, 24GB,
Node5 is Intel Xeon based, 2x quad core E5440 @ 2.83GHz 32GB,
Node 6 is Intel Xeon based, 1x dual core 5160 @ 3GHz 12GB,
# visit pve 'date; i=0; while (( i < 1000000 )); do (( i ++ )); done; date'
calling node1...
Sat Mar 7 14:59:57 CET 2015
Sat Mar 7 15:00:06 CET 2015
calling node2...
Sat Mar 7 15:00:06 CET 2015
Sat Mar 7 15:00:15 CET 2015
calling node3...
Sat Mar 7 15:00:15 CET 2015
Sat Mar 7 15:00:28 CET 2015
calling node4...
Sat Mar 7 15:00:28 CET 2015
Sat Mar 7 15:00:36 CET 2015
calling node5...
Sat Mar 7 15:00:36 CET 2015
Sat Mar 7 15:00:43 CET 2015
calling node6...
Sat Mar 7 15:00:43 CET 2015
Sat Mar 7 15:00:50 CET 2015
calling node7...
Sat Mar 7 15:00:50 CET 2015
Sat Mar 7 15:00:59 CET 2015
With VM mostly idle, testing one VM at time I get these numbers
# visit vms 'date; i=0; while (( i < 1000000 )); do (( i ++ )); done; date'
calling vm1...
Sat Mar 7 15:01:20 CET 2015
Sat Mar 7 15:04:37 CET 2015
calling vm2...
Sat Mar 7 15:04:38 CET 2015
Sat Mar 7 15:08:53 CET 2015
calling vm3...
Sat Mar 7 15:08:56 CET 2015
Sat Mar 7 15:13:34 CET 2015
calling vm4...
Sat Mar 7 15:13:35 CET 2015
Sat Mar 7 15:16:31 CET 2015
calling vm5...
Sat Mar 7 15:16:32 CET 2015
Sat Mar 7 15:20:05 CET 2015
Why are a a vCPU so much slower than a hypervisor host physical CPU?
Are KVM normal expected to slow things down so much, I would assume in the order of < 5% slower.
TIA
Got a PoC PVE 3.4 test cluster, node1-4 runs Ceph Giant with RBD pool for VM images, node5-7 runs VMs.
Node 1,2,7 are 2x dual core AMD Opteron 2218, 24GB,
Node5 is Intel Xeon based, 2x quad core E5440 @ 2.83GHz 32GB,
Node 6 is Intel Xeon based, 1x dual core 5160 @ 3GHz 12GB,
# visit pve 'date; i=0; while (( i < 1000000 )); do (( i ++ )); done; date'
calling node1...
Sat Mar 7 14:59:57 CET 2015
Sat Mar 7 15:00:06 CET 2015
calling node2...
Sat Mar 7 15:00:06 CET 2015
Sat Mar 7 15:00:15 CET 2015
calling node3...
Sat Mar 7 15:00:15 CET 2015
Sat Mar 7 15:00:28 CET 2015
calling node4...
Sat Mar 7 15:00:28 CET 2015
Sat Mar 7 15:00:36 CET 2015
calling node5...
Sat Mar 7 15:00:36 CET 2015
Sat Mar 7 15:00:43 CET 2015
calling node6...
Sat Mar 7 15:00:43 CET 2015
Sat Mar 7 15:00:50 CET 2015
calling node7...
Sat Mar 7 15:00:50 CET 2015
Sat Mar 7 15:00:59 CET 2015
With VM mostly idle, testing one VM at time I get these numbers
# visit vms 'date; i=0; while (( i < 1000000 )); do (( i ++ )); done; date'
calling vm1...
Sat Mar 7 15:01:20 CET 2015
Sat Mar 7 15:04:37 CET 2015
calling vm2...
Sat Mar 7 15:04:38 CET 2015
Sat Mar 7 15:08:53 CET 2015
calling vm3...
Sat Mar 7 15:08:56 CET 2015
Sat Mar 7 15:13:34 CET 2015
calling vm4...
Sat Mar 7 15:13:35 CET 2015
Sat Mar 7 15:16:31 CET 2015
calling vm5...
Sat Mar 7 15:16:32 CET 2015
Sat Mar 7 15:20:05 CET 2015
Why are a a vCPU so much slower than a hypervisor host physical CPU?
Are KVM normal expected to slow things down so much, I would assume in the order of < 5% slower.
TIA