Re: [PATCH 06/17] Use statfs to determine size of huge pages

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

 



Joerg Roedel wrote:
On Sun, May 17, 2009 at 08:00:40PM +0300, Avi Kivity wrote:
Anthony Liguori wrote:
From: Joerg Roedel <joerg.roedel@xxxxxxx>

The current method of finding out the size of huge pages does not work
reliably anymore. Current Linux supports more than one huge page size
but /proc/meminfo only show one of the supported sizes.
To find out the real page size used can be found by calling statfs. This
patch changes qemu to use statfs instead of parsing /proc/meminfo.
Since we don't support 1GBpages in stable-0.10, this is unneeded.

This patch is needed to run current KVM on a hugetlbfs backed with
1GB pages. Therefore I think this patch is needed. It is an improvement
over the /proc/meminfo parsing anyway and is not strictly related to
kvm kernel support for 1GB pages.

Is there any userspace support requirements for 1GB pages?

That is, if you had a 2.6.31 kernel and stable-0.10, would 1GB pages work (assuming this patch is backported)?

This patch could still be considered a feature vs. bug fix but I'm mostly curious.

Regards,

Anthony Liguori

Joerg



--
Regards,

Anthony Liguori

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux