Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753032AbbHaOjo (ORCPT ); Mon, 31 Aug 2015 10:39:44 -0400 Received: from mail-yk0-f170.google.com ([209.85.160.170]:35269 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445AbbHaOjm (ORCPT ); Mon, 31 Aug 2015 10:39:42 -0400 Date: Mon, 31 Aug 2015 10:39:39 -0400 From: Tejun Heo To: Vladimir Davydov Cc: Michal Hocko , Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Fix memcg/memory.high in case kmem accounting is enabled Message-ID: <20150831143939.GC2271@mtj.duckdns.org> References: <20150831132414.GG29723@dhcp22.suse.cz> <20150831134335.GB2271@mtj.duckdns.org> <20150831143007.GA13814@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150831143007.GA13814@esperanza> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 823 Lines: 20 On Mon, Aug 31, 2015 at 05:30:08PM +0300, Vladimir Davydov wrote: > slab/slub can issue alloc_pages() any time with any flags they want and > it won't be accounted to memcg, because kmem is accounted at slab/slub > layer, not in buddy. Hmmm? I meant the eventual calling into try_charge w/ GFP_NOWAIT. Speculative usage of GFP_NOWAIT is bound to increase and we don't want to put on extra restrictions from memcg side. For memory.high, punting to the return path is a pretty stright-forward solution which should make the problem go away almost entirely. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/