On Fri, 23 Dec 2011 20:29:10 +0800, Easley wrote: > I changed #define ELEMENTS 1024*1024*64 to #define ELEMENTS > 1024*1024*20, > > and it takes effect. Thank you. > ------- > And there is another question. It's on another machine > I take the following steps: > -------------- > [root@ ~]# echo 1000 > /proc/sys/vm/nr_hugepages > [root@ ~]# mkdir /hugetlb > [root@ ~]# HUGETLB_MORECORE=yes LD_PRELOAD=libhugetlbfs.so ./a.out > --------------- > There's should be output some error message, but it output nothing. > (I do this in order to check whether hugepage take effect.) > I think there's some wrong hugetlbfs setting, and I don't know why. > My machine total memory is 24GB, and hugepages is 434 pages. > Any help will appreciated. > > --Easley
libhugetlbfs will output debug messages if told to do so using environment variables. Please set HUGETLB_DEBUG=yes and HUGETLB_VERBOSE=99. These options will make libhugetlbfs output what is happening at each step and will give us some clue as to what may be going wrong. As a side note, if you are using a newer libhugetblfs (>=2.0) you should have a few helper programs that will make it easier to configure huge pages on a system and to run programs using huge pages, see the man pages for hugeadm and hugectl. Eric ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel