Re: hugepage test failures

Ken Chen
2007-07-24T00:02:07Z

> I'm a few hundred linux-mm emails behind, so maybe this has been
> addressed already. I hope so.
>
> I run hugepage-mmap and hugepage-shm tests (from Doc/vm/hugetlbpage.txt)
> on a regular basis. Lately they have been failing, usually with -ENOMEM,
> but sometimes the mmap() succeeds and hugepage-mmap gets a SIGBUS:

man, what did people do to hugetlb?

In dequeue_huge_page(), it just loops around for all the alloc'able
zones, even though this function is suppose to just allocate *ONE*
hugetlb page. That is a serious memory leak here. We need a break
statement in the inner if statement there.

- Ken