On Tue, 2006-02-28 at 09:34, Andrew Morton wrote: > "Zhang, Yanmin" wrote: > > > > > > > > 2.6.16-rc3 uses hugetlb on-demand paging, but it doesn_t support hugetlb > > > > > > mprotect. My patch against 2.6.16-rc3 enables this capability. > > > > Based on David's comments, I worked out a new patch against 2.6.16-rc4. > > Thank David. > > > > Please always send an updated changelog when sending an updated patch. > Otherwise I have to go trolling back through the email thread to find it, > then work out what needs to be changed. Thanks for your kind reminder. I would do so next time. > > > > > I tested it on i386/x86_64/ia64. Who could help test it on other > > platforms, such like PPC64? > > I can do that - please send me your test app? I attach a test case. It will create directory /mnt/hugepages and delete it after testing automatically. To run it by user root: #gcc -o mprotect_testcase mprotect_testcase.c #echo "5">/proc/sys/vm/nr_hugepages #./mprotect_testcase You could use gdb to step it to see the changing of the process vma maps. Thanks.