Ask Your Question

Is there any way to determine which physical core of a host an instance has been placed on

asked 2016-12-24 02:47:12 -0500

Ali84 gravatar image

I'm gonna create a new flavor with --vcpus attribute set to 1 and set the --property hw:cpu_policy to dedicated so any instance launched with that flavor would be pinned on a fixed physical core on that host. I also assume if I make a host aggregate then another newly launched instance in that host aggregate & with the same flavor as first instance would be located beside the first one on the same physical core. Now I wounded if there's any way that I could check if they'd actually been located on the same physical core or not. So far all the command I came into just display the host node on which instances has been placed but not the specific physical core. If I'm lost on the topic please any idea how I could have co-located instances on a single physical core?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-12-24 04:00:42 -0500

volenbovsky gravatar image

Hi, output of 'virsh vcpupin <...> on Compute Host where the VM is running will show that

edit flag offensive delete link more


Thank you so much. Although virsh vcpupin did not report exactly what I was looking for but it gives a very related facility in regard to pinning vcpu to a pcpu that I was totally unaware of. After using it this virsh dumpxml <instance id> | grep vcpupin displayed what I was looking for.

Ali84 gravatar imageAli84 ( 2016-12-24 08:42:13 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-12-24 02:47:12 -0500

Seen: 93 times

Last updated: Dec 24 '16