Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446490 - app-emulation/qemu - transparent hugepage support via madvise (backport request)
Summary: app-emulation/qemu - transparent hugepage support via madvise (backport request)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Doug Goldstein (RETIRED)
URL: http://git.qemu.org/?p=qemu.git;a=com...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-08 15:58 UTC by kfm
Modified: 2013-01-12 03:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kfm 2012-12-08 15:58:57 UTC
On some platforms, transparent huge page support can be advantageous to KVM performance:

http://www.linux-kvm.org/wiki/images/9/9e/2010-forum-thp.pdf

Currently, the only way to have qemu benefit is to unconditionally enable THP support on the host with the 'always' policy but there are valid reasons not to want to do that. A better approach is to have the application itself use madvise(2) to to enable huge page support for any allocated memory regions as appropriate.

This support has finally made its way into qemu as of commit ad0b532 (a one-liner patch). If there are any plans to stabilize >=qemu-1.2 in the near future, I would really appreciate it if this patch were to be considered for inclusion.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2013-01-12 03:55:12 UTC
This is in qemu-1.2.2