]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnuma: Introduce pages helpers
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 6 Jun 2014 16:09:01 +0000 (18:09 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 19 Jun 2014 13:10:49 +0000 (15:10 +0200)
commit35f1095e12abf333903915f96f029612648346d4
tree6ef9c375a8c2d26fa379604738cce6eb71507488
parent99a63aed2d3a660b61a21f30da677d9e625510a6
virnuma: Introduce pages helpers

For future work we need two functions that fetches total number of
pages and number of free pages for given NUMA node and page size
(virNumaGetPageInfo()).

Then we need to learn pages of what sizes are supported on given node
(virNumaGetPages()).

Note that system page size is disabled at the moment as there's one
issue connected. If you have a NUMA node with huge pages allocated the
kernel would return the normal size of memory for that node. It
basically ignores the fact that huge pages steal size from the system
memory. Until we resolve this, it's safer to not confuse users and
hence not report any system pages yet.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/internal.h
src/libvirt_private.syms
src/util/virnuma.c
src/util/virnuma.h