Re: [PATCH 01 of 31] define MADV_HUGEPAGE

Andrea Arcangeli
2010-01-26T13:47:06Z

On Tue, Jan 26, 2010 at 01:30:37PM +0100, Andrea Arcangeli wrote:
> Very error prone that you can register in arch file, there are 4
> billions MADV_ available, the arch files shall be removed and it
> should all be defined in mman-common.h.

It seems 15 is free:

cd arch; grep -r MADV_ . |grep 15

so I will pick that one. Please nobody use number 15 or we
screwup...

I'll make a new #7 submit that also fixes one bug in
split_huge_page_mm/vma, find_vma should run on "address" not on
"address+HPAGE_PMD_SIZE-1" or it fails on the last hugepage on the vma
unless "address" is hugepage aligned (firefox flash tripped on this
last night, but thanks to the amount of BUG_ON that I added it was
immediate to fix). No more problems with java applets, flash etc...

14:45:10 up 15:10, 5 users, load average: 0.22, 0.17, 0.06

AnonPages: 612988 kB
AnonHugePages: 65536 kB