From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751540AbcGNT1b (ORCPT ); Thu, 14 Jul 2016 15:27:31 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:52566 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751153AbcGNT13 (ORCPT ); Thu, 14 Jul 2016 15:27:29 -0400 Date: Thu, 14 Jul 2016 15:24:45 -0400 From: Johannes Weiner To: Andy Lutomirski Cc: Andrew Morton , x86@kernel.org, linux-kernel@vger.kernel.org, Brian Gerst , Vladimir Davydov , Michal Hocko , linux-mm@kvack.org Subject: Re: [PATCH 2/4] mm: Fix memcg stack accounting for sub-page stacks Message-ID: <20160714192445.GB13522@cmpxchg.org> References: <9b5314e3ee5eda61b0317ec1563768602c1ef438.1468523549.git.luto@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9b5314e3ee5eda61b0317ec1563768602c1ef438.1468523549.git.luto@kernel.org> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 14, 2016 at 12:14:11PM -0700, Andy Lutomirski wrote: > We should account for stacks regardless of stack size, and we need > to account in sub-page units if THREAD_SIZE < PAGE_SIZE. Change the > units to kilobytes and Move it into account_kernel_stack(). > > Fixes: 12580e4b54ba8 ("mm: memcontrol: report kernel stack usage in cgroup2 memory.stat") > Cc: Vladimir Davydov > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: linux-mm@kvack.org > Reviewed-by: Josh Poimboeuf > Reviewed-by: Vladimir Davydov > Acked-by: Michal Hocko > Signed-off-by: Andy Lutomirski Acked-by: Johannes Weiner