Re: [PATCH 4/4] mm: prepare page_referenced() and page_idle to new THP refcounting

From: Andrew Morton
Date: Fri Nov 06 2015 - 17:39:06 EST


On Fri, 6 Nov 2015 12:29:21 +0200 "Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx> wrote:

> > page_mapcount() is getting pretty bad too.
>
> Do you want me to uninline slow path (PageCompound())?

I guess so. Uninlining all of page_mapcount() does this:

gcc-4.4.4:

text data bss dec hex filename
973702 273954 831512 2079168 1fb9c0 mm/built-in.o-before
970148 273954 831000 2075102 1fa9de mm/built-in.o-after

That's quite a bit of bloat.

I don't know why bss changed; this usually (always?) happens. Seems
bogus.
--
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/