Re: [PATCH 1/2] hugetlb: properly account rss

From: Andrew Morton
Date: Fri Jun 28 2013 - 18:03:32 EST


On Tue, 18 Jun 2013 14:47:04 -0400 Joern Engel <joern@xxxxxxxxx> wrote:

> When moving a program from mmap'ing small pages to mmap'ing huge pages,
> a remarkable drop in rss ensues. For some reason hugepages were never
> accounted for in rss, which in my book is a clear bug. Sadly this bug
> has been present in hugetlbfs since it was merged back in 2002. There
> is every chance existing programs depend on hugepages not being counted
> as rss.
>
> I think the correct solution is to fix the bug and wait for someone to
> complain. It is just as likely that noone cares - as evidenced by the
> fact that noone seems to have noticed for ten years.
>

Yes, that is a concern. I'll toss it in there so we can see what
happens, but I fear that any problems will take a long time to be
discovered.
--
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/