Re: [openstack-dev] Efficiently pin running VMs to physical CPUs automatically

2013-06-23 Thread Wang, Shane
Very glad to see that, too. We also have some thoughts to look at the usage of 
CPU resources (like cache) for each VM, and adjust to aggregate and bind VMs to 
physical CPUs for QoS.
Look forward to seeing the initiatives proposed below to move forward.

Thanks.
--
Shane

 -Original Message-
 From: Qing He [mailto:qing...@radisys.com]
 Sent: Saturday, June 22, 2013 2:11 AM
 To: OpenStack Development Mailing List
 Subject: Re: [openstack-dev] Efficiently pin running VMs to physical CPUs
 automatically
 
 
 Russell,
 That's great initiative!  I'm wondering if a framework/abstraction layer can 
 be
 built so that different algorithms can be plugged in. I'm sure we can learn 
 from
 the none-vm world:
 http://en.wikipedia.org/wiki/Processor_affinity
 
 Thanks,
 Qing
 
 
  -Original Message-
  From: Russell Bryant [mailto:rbry...@redhat.com]
  Sent: 20 June 2013 17:48
  To: openstack-dev@lists.openstack.org
  Subject: Re: [openstack-dev] Efficiently pin running VMs to physical
  CPUs automatically
 
  On 06/20/2013 10:36 AM, Giorgio Franceschi wrote:
  Hello, I created a blueprint for the implementation of:
 
  A tool for pinning automatically each running virtual CPU to a
  physical one in the most efficient way, balancing load across
  sockets/cores and maximizing cache sharing/minimizing cache misses.
  Ideally able to be run on-demand, as a periodic job, or be triggered
  by events on the host (vm spawn/destroy).
 
  Find it at
  https://blueprints.launchpad.net/nova/+spec/auto-cpu-pinning
 
  Any inputappreciated!
 
  I'm actually surprised to see a new tool for this kind of thing.
 
  Have you seen numad?
 
  --
  Russell Bryant
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Efficiently pin running VMs to physical CPUs automatically

2013-06-21 Thread Daniel P. Berrange
On Thu, Jun 20, 2013 at 12:48:16PM -0400, Russell Bryant wrote:
 On 06/20/2013 10:36 AM, Giorgio Franceschi wrote:
  Hello, I created a blueprint for the implementation of:
  
  A tool for pinning automatically each running virtual CPU to a physical
  one in the most efficient way, balancing load across sockets/cores and
  maximizing cache sharing/minimizing cache misses. Ideally able to be run
  on-demand, as a periodic job, or be triggered by events on the host (vm
  spawn/destroy).
  
  Find it at https://blueprints.launchpad.net/nova/+spec/auto-cpu-pinning
  
  Any inputappreciated!
 
 I'm actually surprised to see a new tool for this kind of thing.
 
 Have you seen numad?

The approach used by 'pinhead' tool dscribed in the blueprint seems
to be pretty much equivalent to what 'numad' is already providing
for Libvirt KVM and LXC guests.

NB, numad is actually a standalone program for optimizing NUMA
placement of any processes on a server. Libvirt talks to it when
starting a guest to request info on where best to place the guest.

Daniel
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Efficiently pin running VMs to physical CPUs automatically

2013-06-21 Thread Alessandro Pilotti
 It seems that numad is libvirt specific - is that the case?

Hi, Hyper-V 2012 supports NUMA as well. It'd be great to plan an hypervisor 
independent solution from the start.


On 21.06.2013, at 11:13, Bob Ball bob.b...@citrix.com wrote:

 It seems that numad is libvirt specific - is that the case?
 
 I'm not sure if there is a daemon for other hypervisors but would it make 
 sense to have this functionality in OpenStack so we can extend it to work for 
 each hypervisor allowing it to control the affinity in their own way?  I 
 guess this would need the Pinhead tool to either support multiple hypervisors 
 or provide the pinning strategy to Nova which could then invoke the 
 individual drivers.
 
 Outside numa optimisations I think there are good reasons for Nova to support 
 modifying the affinity / pinning rules - for example I can imagine that some 
 flavours might be permitted dedicated or isolated vCPUs?  Integrating this 
 tool would allow us to provide it further hints/rules defined by the flavour 
 or administrator.
 
 Bob
 
 -Original Message-
 From: Russell Bryant [mailto:rbry...@redhat.com] 
 Sent: 20 June 2013 17:48
 To: openstack-dev@lists.openstack.org
 Subject: Re: [openstack-dev] Efficiently pin running VMs to physical CPUs 
 automatically
 
 On 06/20/2013 10:36 AM, Giorgio Franceschi wrote:
 Hello, I created a blueprint for the implementation of:
 
 A tool for pinning automatically each running virtual CPU to a physical
 one in the most efficient way, balancing load across sockets/cores and
 maximizing cache sharing/minimizing cache misses. Ideally able to be run
 on-demand, as a periodic job, or be triggered by events on the host (vm
 spawn/destroy).
 
 Find it at https://blueprints.launchpad.net/nova/+spec/auto-cpu-pinning
 
 Any inputappreciated!
 
 I'm actually surprised to see a new tool for this kind of thing.
 
 Have you seen numad?
 
 -- 
 Russell Bryant
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Efficiently pin running VMs to physical CPUs automatically

2013-06-20 Thread Giorgio Franceschi

Hello, I created a blueprint for the implementation of:

A tool for pinning automatically each running virtual CPU to a physical
one in the most efficient way, balancing load across sockets/cores and
maximizing cache sharing/minimizing cache misses. Ideally able to be run
on-demand, as a periodic job, or be triggered by events on the host (vm
spawn/destroy).

Find it at https://blueprints.launchpad.net/nova/+spec/auto-cpu-pinning

Any inputappreciated!

Thanks
--
*Giorgio Franceschi*
System Engineer
*TMG Online Media/Hyves* Frederiksplein, 42. 1017 XN Amsterdam
De informatie in dit e-mailbericht en eventuele bijlagen is vertrouwelijk en is 
alleen bestemd voor de beoogde ontvanger(s). Indien u dit bericht ten onrechte 
heeft ontvangen, wordt u verzocht de verzender daarvan in kennis te stellen en 
het bericht te vernietigen. Het is niet toegestaan de hierin opgenomen 
informatie op welke wijze dan ook te gebruiken of openbaar te maken. The 
information contained in this e-mail, including possible attachments, is 
confidential and is solely for the use of the intended recipient(s). Should you 
have received this e-mail unintentionally you are then requested to inform the 
sender and to destroy the message.It is prohibited to use or disclose the 
information this message contains in whatsoever way.


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev