Re: [Qemu-devel] [RFC] scripts: qmp: Introduce vcpu pinning helper script

2016-09-29 Thread Peter Xu
On Thu, Sep 29, 2016 at 08:50:51AM +0200, Maxime Coquelin wrote: [...] > >Nit: for TCG, looks like we are using a single thread for all vCPUs. > >In that case, I'd suggest we make sure KVM is enabled before running > >this script, otherwise raise error (It won't make sense we pin the > >same TID

Re: [Qemu-devel] [RFC] scripts: qmp: Introduce vcpu pinning helper script

2016-09-28 Thread Maxime Coquelin
On 09/29/2016 04:40 AM, Peter Xu wrote: On Tue, Sep 20, 2016 at 09:04:56AM +0200, Maxime Coquelin wrote: This python script calls 'query-cpus' QMP command to retrieve vCPUs thread IDs. Thread IDs are then used by taskset to pin vCPUs to physical CPUs passed in command line. In case more vCPUs

Re: [Qemu-devel] [RFC] scripts: qmp: Introduce vcpu pinning helper script

2016-09-28 Thread Peter Xu
On Tue, Sep 20, 2016 at 09:04:56AM +0200, Maxime Coquelin wrote: > This python script calls 'query-cpus' QMP command to retrieve > vCPUs thread IDs. > Thread IDs are then used by taskset to pin vCPUs to physical > CPUs passed in command line. > > In case more vCPUs are present than the number of C

[Qemu-devel] [RFC] scripts: qmp: Introduce vcpu pinning helper script

2016-09-20 Thread Maxime Coquelin
This python script calls 'query-cpus' QMP command to retrieve vCPUs thread IDs. Thread IDs are then used by taskset to pin vCPUs to physical CPUs passed in command line. In case more vCPUs are present than the number of CPUs assigned in command line, multiple vCPUs get pinned to physical CPUs. Si