On Thu, Jun 09, 2011 at 04:50:50PM +0800, bill wrote: > Hi, guys:) > > > In order to run a program based on huge page, either insert PF_LINUX_HUGETLB > in > program header or by setting HUGETLB_ELFMAP env. > > while testcases such as linkhuge/xB.linkhuge/xBDT.linkhuge don't meet neither > conditions mentioned above, so running them will using normal 4k > huge page.
The xB.linkhuge and xBDT.linkhuge testcases should have the PF_LINUX_HUGETLB flag in at least some of the program headers. If they don't then something is wrong with the link process for them. Note, however, that the program header flag based relinking method is rather fragile, and can easily break when the binutils version changes. That's why the HUGETLB_ELFMAP=R|W method is the newer, preferred method. > As a result: > ./linkhuge PASS > because there is no linkstring. > > LD_PRELOAD=libhugetlbfs.so ./linkhuge PASS > because there is no linkstring. > > ./xB.linkhuge FAIL > Not mapping in huge page > > > HUGETLB_ELFMAP=no xB.linkhuge PASS > because elfmap_inhibited is set on. > > I test these four cases in X86/ARM, they have the same result. > so did I misunderstand something > import? > > Please correct me if I am wrong. > > > Thanks > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Libhugetlbfs-devel mailing list > Libhugetlbfs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel > -- 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 ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel