[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160714192237.GA13522@cmpxchg.org>
Date: Thu, 14 Jul 2016 15:22:37 -0400
From: Johannes Weiner <hannes@...xchg.org>
To: Andy Lutomirski <luto@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, x86@...nel.org,
linux-kernel@...r.kernel.org, Brian Gerst <brgerst@...il.com>,
Vladimir Davydov <vdavydov@...tuozzo.com>,
Michal Hocko <mhocko@...nel.org>, linux-mm@...ck.org
Subject: Re: [PATCH 1/4] mm: Track NR_KERNEL_STACK in KiB instead of number
of stacks
On Thu, Jul 14, 2016 at 12:14:10PM -0700, Andy Lutomirski wrote:
> Currently, NR_KERNEL_STACK tracks the number of kernel stacks in a
> zone. This only makes sense if each kernel stack exists entirely in
> one zone, and allowing vmapped stacks could break this assumption.
>
> Since frv has THREAD_SIZE < PAGE_SIZE, we need to track kernel stack
> allocations in a unit that divides both THREAD_SIZE and PAGE_SIZE on
> all architectures. Keep it simple and use KiB.
>
> Cc: Vladimir Davydov <vdavydov@...tuozzo.com>
> Cc: Johannes Weiner <hannes@...xchg.org>
> Cc: Michal Hocko <mhocko@...nel.org>
> Cc: linux-mm@...ck.org
> Reviewed-by: Josh Poimboeuf <jpoimboe@...hat.com>
> Reviewed-by: Vladimir Davydov <vdavydov@...tuozzo.com>
> Acked-by: Michal Hocko <mhocko@...e.com>
> Signed-off-by: Andy Lutomirski <luto@...nel.org>
Acked-by: Johannes Weiner <hannes@...xchg.org>
Powered by blists - more mailing lists