Re: [PATCH 1/5] virnuma: Introduce huge pages helpers

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

 



On Tue, Jun 10, 2014 at 07:21:11PM +0200, Michal Privoznik wrote:
> For future work we need two functions that fetches total number of
> huge pages and number of free pages for given numa node and page size
> (virNumaGetHugePageInfo()).
> 
> Then we need to learn which huge pages are supported on given node
> (virNumaGetHugePages()).
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/libvirt_private.syms |   2 +
>  src/util/virnuma.c       | 242 +++++++++++++++++++++++++++++++++++++++++++++++
>  src/util/virnuma.h       |  10 ++
>  3 files changed, 254 insertions(+)
> 
> diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
> index d1d6ff3..cb0d5b1 100644
> --- a/src/libvirt_private.syms
> +++ b/src/libvirt_private.syms
> @@ -1655,6 +1655,8 @@ virDomainNumatuneMemModeTypeFromString;
>  virDomainNumatuneMemModeTypeToString;
>  virNumaGetAutoPlacementAdvice;
>  virNumaGetDistances;
> +virNumaGetHugePageInfo;
> +virNumaGetHugePages;

Actually this should really have s/Huge// in the name
and return all page sizes, not merely huge ones.


Regards,
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]