Re: [PATCH v2] mm: show free pages per each migrate type

From: Andrew Morton
Date: Fri Apr 10 2015 - 00:20:42 EST


On Fri, 10 Apr 2015 04:16:15 +0000 ZhangNeil <neilzhang1123@xxxxxxxxxxx> wrote:

> > I think we can eliminate nr_free[][]:
>
> what about make it as global__variable?

That isn't as good - it permanently consumes memory and really requires
new locking to protect the array from concurrent callers.

--
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/