Thank you very much. 
I still have a question. How can I know that have been take effect?
I take steps as follow:
------------------
mkdir /hugetlb
mount -t hugetlbfs hugetlbfs /hugetlb
HUGETLB_MORECORE=yes LD_PRELOAD=libhugetlbfs.so hugepagesz=16M hugepages=32 
./myprogram
------------------
That's right?


 
 Easley
 
------------------ Original ------------------
From:  "bill4carson"<bill4car...@gmail.com>;
Date:  Thu, Nov 10, 2011 11:24 AM
To:  "Easley"<ugi...@gmail.com>; 
Cc:  "libhugetlbfs-devel"<libhugetlbfs-devel@lists.sourceforge.net>; 
Subject:  Re: [Libhugetlbfs-devel] How to change the hugepagesize?

 


On 2011年11月10日 10:41, Easley wrote:
>
> Hi,
>
> I run "grep Huge /proc/meminfo" in  rhel5.4 .
> it shows:
> HugePages_Total:     0
> HugePages_Free:      0
> HugePages_Rsvd:      0
> Hugepagesize:     2048 kB
>
> It says hugepagesize is 2M, how can I change the size to 16M?
> Any help will be appreciated.
>
> Easley

   You can *only* do this by adding "hugepagesz=16M hugepages=32" into 
you command line
   to preallocate 32 16M hugepages.

   Prerequisite is you hardware support 16M huge page.

>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
>
>
> _______________________________________________
> Libhugetlbfs-devel mailing list
> Libhugetlbfs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

-- 
I am a slow learner
but I will keep trying to fight for my dreams!

--bill
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to