[PATCH 00 of 25] Transparent Hugepage support #1

Andrea Arcangeli
2009-11-14T18:10:23Z

Hello,

Lately I've been working to make KVM use hugepages transparently without the
usual restrictions of hugetlbfs. The RFC got postitive review so I splitted
the patches. Maybe they can be splitted more but this is a start and it should
allow for easier code review plus there was some more development ;). See
patch 24/25 for all detailed comments on this feature.

I'll be offline next week but I wanted to send the last updates so you can
more easily review latest status while I'm away.

TODO:

1) add proper sysfs support in preparation for khugepaged daemon tunes
(obsolete the temporary/debug sysctl)

2) fixup smaps/pagemap stats (Adam you expressed interest in this area,
if you have patches removing split_huge_page_* they're welcome ;)

3) create collapse_huge_page

4) add madvise(MADV_HUGEPAGE)

5) add khugepaged calling collapse_huge_page on madvise(MADV_HUGEPAGE) regions

6) potential removal of split_huge_page from mremap/mprotect (lowprio)

If you want to more easily interact with this patchset I uploaded a quilt tree
here:

http://www.kernel.org/pub/linux/kernel/people/andrea/patches/v2.6/2.6.32-rc7/transparent_hugepage-1/

Thanks,
Andrea