Re: [PATCH] x86: fix PAE pmd_bad bootup warning

From: Dave Hansen
Date: Tue May 06 2008 - 16:43:21 EST


On Tue, 2008-05-06 at 22:22 +0200, Hans Rosenfeld wrote:
> I expected that any hugepage that a process had mmapped would
> automatically be returned to the system when the process exits. That was
> not the case, the process exited and the hugepage was lost (unless I
> changed the program to explicitly munmap the hugepage before exiting).
> Removing the hugetlbfs file containing the hugepage also didn't free the
> page.

Could you post the code you're using to do this? I have to wonder if
you're leaving a fd open somewhere. Even if you rm the hugepage file,
it'll stay allocated if you have a fd open, or if *someone* is still
mapping it.

Can you umount your hugetlbfs?

-- Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/