Ask Your Question
2

How can I make VCPU use full power of phsical CPU?

asked 2015-05-19 20:53:07 -0600

zapp.prefect gravatar image

I configs /etc/nova/nova.conf like this:

cpu_allocation_ratio=1.0
cpu_mode=host-passthrough
ram_allocation_ratio=1.0

Then I create a instance with 8 VCPUs and 8G Memory .

To test the CPU , I use sysbench, here is how I test:

sysbench --test=cpu --cpu-max-prime=10000 --num-threads=8 run

It costs 2s in the instance, and it use all of 8 CPUs, I can see it in top, I mean all of 8 phsical CPU.

But at the compute node in which the instance running, same cmd , it only cost 1.5s .

And what's more, I have tried in OpenNebula, same hardware, same cmd, and it cost 1.6s in instance.

What Magic behinds this? Could anybody tell me why?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-28 01:24:32 -0600

zapp.prefect gravatar image

Does anyone konw how to fix it?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-05-19 20:53:07 -0600

Seen: 305 times

Last updated: May 28 '15