Re: [openstack-dev] [openstack-dev[[nova] Simple question about sorting CPU topologies

2017-06-22 Thread Zhenyu Zheng
Jay Pipes [mailto:jaypi...@gmail.com] > > Sent: Tuesday, June 20, 2017 5:59 PM > > To: openstack-dev@lists.openstack.org > > Subject: Re: [openstack-dev] [openstack-dev[[nova] Simple question > > about sorting CPU topologies > > > > On 06/20/2017 12:53 PM, Chris

Re: [openstack-dev] [openstack-dev[[nova] Simple question about sorting CPU topologies

2017-06-20 Thread Mooney, Sean K
> -Original Message- > From: Jay Pipes [mailto:jaypi...@gmail.com] > Sent: Tuesday, June 20, 2017 5:59 PM > To: openstack-dev@lists.openstack.org > Subject: Re: [openstack-dev] [openstack-dev[[nova] Simple question > about sorting CPU topologies > > On 06/20/2017

Re: [openstack-dev] [openstack-dev[[nova] Simple question about sorting CPU topologies

2017-06-20 Thread Jay Pipes
On 06/20/2017 12:53 PM, Chris Friesen wrote: On 06/20/2017 06:29 AM, Jay Pipes wrote: On 06/19/2017 10:45 PM, Zhenyu Zheng wrote: Sorry, The mail sent accidentally by mis-typing ... My question is, what is the benefit of the above preference? Hi Kevin! I believe the benefit is so that the

Re: [openstack-dev] [openstack-dev[[nova] Simple question about sorting CPU topologies

2017-06-20 Thread Chris Friesen
On 06/20/2017 06:29 AM, Jay Pipes wrote: On 06/19/2017 10:45 PM, Zhenyu Zheng wrote: Sorry, The mail sent accidentally by mis-typing ... My question is, what is the benefit of the above preference? Hi Kevin! I believe the benefit is so that the compute node prefers CPU topologies that do

Re: [openstack-dev] [openstack-dev[[nova] Simple question about sorting CPU topologies

2017-06-20 Thread Jay Pipes
On 06/19/2017 10:45 PM, Zhenyu Zheng wrote: Sorry, The mail sent accidentally by mis-typing ... My question is, what is the benefit of the above preference? Hi Kevin! I believe the benefit is so that the compute node prefers CPU topologies that do not have hardware threads over CPU

Re: [openstack-dev] [openstack-dev[[nova] Simple question about sorting CPU topologies

2017-06-19 Thread Zhenyu Zheng
Sorry, The mail sent accidentally by mis-typing ... My question is, what is the benefit of the above preference? BR, Kevin On Tue, Jun 20, 2017 at 10:43 AM, Zhenyu Zheng wrote: > Hi, > > In https://github.com/openstack/nova/blob/master/ > nova/virt/hardware.py#L396

[openstack-dev] [openstack-dev[[nova] Simple question about sorting CPU topologies

2017-06-19 Thread Zhenyu Zheng
Hi, In https://github.com/openstack/nova/blob/master/nova/virt/hardware.py#L396 we calculated every possible CPU topologies and sorted by: # We want to # - Minimize threads (ie larger sockets * cores is best) # - Prefer sockets over cores possible = sorted(possible, reverse=True, key=lambda x: