On Thu, 10 Nov 2011 17:27:40 +0800, Easley wrote:
> 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?
>

The correct usage of the hugepagesz and hugepages options are on the 
kernel command line, not at program execution.  That said this option 
will only work where there is hardware support for 16MB pages and 
neither Intel, nor AMD support this huge page size.  I am assuming you 
are running x86_64 because of your default huge page size of 2M.  If so, 
these options will not work for you.

Eric

------------------------------------------------------------------------------
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