Welcome to Delicate template
Header
Just another WordPress site
Header

set cpu-afinity on XenServer 6

enero 17th, 2013 | Posted by cristiansan in CLI | Performance | TroubleShooting | XenServer

When you install a VM on XenServer, the cpu affinity is set to «any cpu» by default.
How to change this setting and do you set the cpu affinity?

1-Snap

You can use «xl vcpu-list» to see details about the cpu/vcpu for the VM and Domain.
If you need set the affinity for a specific server, you can do the next command:

«xl vcpu-pin [domain_name/vm_name] [vpu/all] [cpu/all]»

In my example, i set the cpu 0 to de vcpu 0 on the «services» machine.

2-snap

If you don’t need affinity, you can do a rollback using «all».

Examples:

xl vcpu-pin 101.CTXDOM.SERVICES 0 0
* set the affinity for vcpu 0 to cpu 0.

xl vcpu-pin 101.CTXDOM.SERVICES 0 all
* set the affinity for vcpu 0 to any cpu

You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

Leave a Reply

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *