Re: [PATCH] Enable mprotect on huge pages
- From: David Gibson <david@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 14:32:20 +1100
On Tue, Feb 28, 2006 at 11:23:54AM +0800, Zhang, Yanmin wrote:
On Tue, 2006-02-28 at 09:34, Andrew Morton wrote:
"Zhang, Yanmin" <yanmin_zhang@xxxxxxxxxxxxxxx> wrote:Thanks for your kind reminder. I would do so next time.
> > > > mprotect. My patch against 2.6.16-rc3 enables this capability.2.6.16-rc3 uses hugetlb on-demand paging, but it doesn_t support hugetlb
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.
I attach a test case. It will create directory /mnt/hugepages and delete it
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?
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
If you could adapt this testcase to fit into the libhugetlbfs
testsuite, that would be really great (from
git://ozlabs.org/~dgibson/git/libhugetlbfs.git). Otherwise I guess I
will..
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] Enable mprotect on huge pages
- From: Zhang, Yanmin
- Re: [PATCH] Enable mprotect on huge pages
- References:
- [PATCH] Enable mprotect on huge pages
- From: Zhang, Yanmin
- Re: [PATCH] Enable mprotect on huge pages
- From: Andrew Morton
- Re: [PATCH] Enable mprotect on huge pages
- From: David Gibson
- Re: [PATCH] Enable mprotect on huge pages
- From: Zhang, Yanmin
- Re: [PATCH] Enable mprotect on huge pages
- From: Zhang, Yanmin
- Re: [PATCH] Enable mprotect on huge pages
- From: Andrew Morton
- Re: [PATCH] Enable mprotect on huge pages
- From: Zhang, Yanmin
- [PATCH] Enable mprotect on huge pages
- Prev by Date: Re: [PATCH] Enable mprotect on huge pages
- Next by Date: LD internal error while compiling 2.6.15 kernel
- Previous by thread: Re: [PATCH] Enable mprotect on huge pages
- Next by thread: Re: [PATCH] Enable mprotect on huge pages
- Index(es):
Relevant Pages
|