[libvirt] [PATCH RFC]: Support numad

Dave Allan dallan at redhat.com
Tue Feb 28 16:43:48 UTC 2012


On Tue, Feb 28, 2012 at 04:40:06PM +0000, Daniel P. Berrange wrote:
> On Tue, Feb 28, 2012 at 11:33:03AM -0500, Dave Allan wrote:
> > On Tue, Feb 28, 2012 at 10:10:50PM +0800, Osier Yang wrote:
> > > numad is an user-level daemon that monitors NUMA topology and
> > > processes resource consumption to facilitate good NUMA resource
> > > alignment of applications/virtual machines to improve performance
> > > and minimize cost of remote memory latencies. It provides a
> > > pre-placement advisory interface, so significant processes can
> > > be pre-bound to nodes with sufficient available resources.
> > > 
> > > More details: http://fedoraproject.org/wiki/Features/numad
> > > 
> > > "numad -w ncpus:memory_amount" is the advisory interface numad
> > > provides currently.
> > > 
> > > This patch add the support by introducing new XML like:
> > >   <numatune>
> > >     <cpu required_cpus="4" required_memory="524288"/>
> > >   </numatune>
> > 
> > Isn't the usual case going to be the vcpus and memory in the guest?
> > IMO we should default to passing those numbers to numad if
> > required_cpus and required_memory are not provided explicitly.
> 
> Indeed, why you would want to specify anything different ? At
> first glance my reaction was just skip the XML and call numad
> internally automatically with the guest configured allocation

That seems reasonable to me.

Dave

> 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 :|




More information about the libvir-list mailing list