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 (

Re: [Libhugetlbfs-devel] [PATCH] ignore return value from readahead()

2012-09-06 Thread Eric B Munson
On Thu, 06 Sep 2012, Jan Stancek wrote: > do_readahead() requires a_ops->readpage to be != NULL: > 568 static ssize_t > 569 do_readahead(struct address_space *mapping, struct file *filp, > 570 pgoff_t index, unsigned long nr) > 571 { > 572 if (!mapping || !mapping->a_ops || !m

[Libhugetlbfs-devel] [PATCH] ignore return value from readahead()

2012-09-06 Thread Jan Stancek
do_readahead() requires a_ops->readpage to be != NULL: 568 static ssize_t 569 do_readahead(struct address_space *mapping, struct file *filp, 570 pgoff_t index, unsigned long nr) 571 { 572 if (!mapping || !mapping->a_ops || !mapping->a_ops->readpage) 573 return -

[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