[pve-devel] KVM CPU pinning

Kamil Trzciński ayufan at ayufan.eu
Tue Nov 11 15:51:25 CET 2014


I have my fancy home setup with VGA passthrough for Windows VM running
custom kernel with i915 arbiter and acs patches, but to make it shutter
free when playing games I have to PIN vCPUs to physical CPU cores.
Currently I have two scripts which have to be run after VM start (you only
require to run one):
1. first one uses cpu shield with taskset - it can be useful to leave some
spare cores for other VM:
https://gist.github.com/ayufan/cc2bf7b8c3d138cdd0c4
2. and second one uses only taskset - it can be useful to assign all
physical cores to VM: https://gist.github.com/ayufan/37be5c0b8fd26113a8be

However as always I'm thinking about how to integrate it with Proxmox. It's
not very handy to login for terminal and fire one of these. First I was
thinking about adding possibility to define hooks per-VM. Hook could be a
simple script to execute on machine up or down (there's something similar
already for CT). Second maybe it would be useful to have cpu pinning
integrated into Proxmox? Maybe you know better way to do this?

Thanks,
Kamil

-- 
Kamil Trzciński

ayufan at ayufan.eu
www.ayufan.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20141111/373ed6fa/attachment.htm>


More information about the pve-devel mailing list