<div dir="ltr">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):<div>1. first one uses cpu shield with taskset - it can be useful to leave some spare cores for other VM: <a href="https://gist.github.com/ayufan/cc2bf7b8c3d138cdd0c4">https://gist.github.com/ayufan/cc2bf7b8c3d138cdd0c4</a></div><div>2. and second one uses only taskset - it can be useful to assign all physical cores to VM: <a href="https://gist.github.com/ayufan/37be5c0b8fd26113a8be">https://gist.github.com/ayufan/37be5c0b8fd26113a8be</a><div><div><br></div><div>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?</div><div><br></div><div>Thanks,</div><div>Kamil</div><div><br></div>-- <br><div class="gmail_signature">Kamil Trzciński<br><br><a href="mailto:ayufan@ayufan.eu" target="_blank">ayufan@ayufan.eu</a><br><a href="http://www.ayufan.eu" target="_blank">www.ayufan.eu</a></div>
</div></div></div>