Skip to contentSkip to conversation

VCPU affinity

DISCUSSION Ky Srinivasan 3 participants 5 messages Dec 18, 2006

lore
Share & tools
lore
#0 lore raw

What is the best way to pin VCPUs. It looks like the implementation of affinity currently is at best only "soft".

Regards,

K. Y

#1 lore raw
Quoted 3 lines · Ky Srinivasan

What is the best way to pin VCPUs. It looks like the implementation of affinity currently is at best only "soft".

Regards,

VCPU affinity should not be soft. By the time the set affinity hypercall returns, the VCPU in question should be running on a physical CPU set in its affinity mask.

If it's not behaving this way then something is broken. Can you send more details?

#3 lore raw
In reply to Ky Srinivasan

VCPUs will run only on CPUs in their affinity mask. If you want to pin to a particular CPU then specify an affinity mask with only that CPU contained in it.

-- Keir

Quoted 12 lines · Ky Srinivasan

What is the best way to pin VCPUs. It looks like the implementation of affinity currently is at best only "soft".

Regards,

K. Y

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
In reply to Emmanuel Ackaouy

I am chasing a bug we seem to be hitting where we are not able to specify the binding; will let you know once I know more.

Regards,

K. Y

Quoted 1 line
Quoted 1 line
Quoted 1 line

On Mon, Dec 18, 2006 at 11:01 AM, in message

<[email protected]>, Emmanuel Ackaouy

Quoted 12 lines · <[email protected]> wrote:
Quoted 4 lines · Ky Srinivasan

What is the best way to pin VCPUs. It looks like the implementation of affinity currently is at best only "soft".

Regards,

VCPU affinity should not be soft. By the time the set affinity hypercall returns, the VCPU in question should be running on a physical CPU set in its affinity mask.

If it's not behaving this way then something is broken. Can you send more details?

#4 lore raw
In reply to Keir Fraser

Kier,

Looks like we may have a problem in our tool stack. If I pin the VCPUs from the command line, VCPUs stay bound to the specified physical processors. However, if the binding is specified in the VM config file, it does not work. Looks like we are not correctly handling the CPU affinity information. Will keep you posted once I learn more.

Regards,

K. Y

Quoted 1 line
Quoted 1 line
Quoted 1 line

On Mon, Dec 18, 2006 at 11:05 AM, in message

Quoted 27 lines · Keir Fraser

VCPUs will run only on CPUs in their affinity mask. If you want to pin to a particular CPU then specify an affinity mask with only that CPU contained in it.

-- Keir

Quoted 5 lines · Ky Srinivasan

What is the best way to pin VCPUs. It looks like the implementation of affinity currently is at best only "soft".

Regards,

Quoted 7 lines

K. Y

_______________________________________________
Xen- devel mailing list
Xen- [email protected]
http://lists.xensource.com/xen- devel

_______________________________________________
Xen- devel mailing list
Xen- [email protected]
http://lists.xensource.com/xen- devel