Re: [Libhugetlbfs-devel] [PATCH] exhaust malloc arenas before malloc tests

2012-09-06 Thread Eric B Munson
On Thu, 06 Sep 2012, Jan Stancek wrote: > First allocation in malloc tests is just 1024 bytes. > If there is enough free mem in malloc arenas, this first > allocation can be satisfied without call to MORECORE() > and testcase will fail. > > LD_PRELOAD=libhugetlbfs.so HUGETLB_MORECORE=yes malloc (

[Libhugetlbfs-devel] [PATCH] exhaust malloc arenas before malloc tests

2012-09-06 Thread Jan Stancek
First allocation in malloc tests is just 1024 bytes. If there is enough free mem in malloc arenas, this first allocation can be satisfied without call to MORECORE() and testcase will fail. LD_PRELOAD=libhugetlbfs.so HUGETLB_MORECORE=yes malloc (2M: 64):FAIL Address is not hugepage When