Re: [PATCH v3 3/3] libxl: implement virDomainGetNumaParameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jul 13, 2013 at 02:27:18AM +0200, Dario Faggioli wrote:
> Although, having it depending on Xen >= 4.3 (by using the proper
> libxl feature flag).
> 
> Xen currently implements a NUMA placement policy which is basically
> the same as the 'interleaved' policy of `numactl', although it can
> be applied on a subset of the available nodes. We therefore hardcode
> "interleave" as 'numa_mode', and we use the newly introduced libxl
> interface to figure out what nodes a domain spans ('numa_nodeset').
> 
> With this change, it is now possible to query the NUMA node
> affinity of a running domain:
> 
> [raistlin@Zhaman ~]$ sudo virsh --connect xen:/// list
>  Id    Name                           State
> ----------------------------------------------------
>  23    F18_x64                        running
> 
> [raistlin@Zhaman ~]$ sudo virsh --connect xen:/// numatune 23
> numa_mode      : interleave
> numa_nodeset   : 1
> 
> Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
> ---
> Changes from v2:
>  * iterators turned from int to size_t
> 
> Changes from v1:
>  * fixed coding style, as requested during review;
>  * VIR_TYPED_PARAM_STRING_OKAY handled more properly;
> ---
>  src/libxl/libxl_driver.c |  141 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 141 insertions(+)
> 

ACK

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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]