Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752236AbcJMH5y (ORCPT ); Thu, 13 Oct 2016 03:57:54 -0400 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:38616 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbcJMH5p (ORCPT ); Thu, 13 Oct 2016 03:57:45 -0400 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: iamjoonsoo.kim@lge.com X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Thu, 13 Oct 2016 16:42:20 +0900 From: Joonsoo Kim To: Michal Hocko Cc: Doug Smythies , "'Andrew Morton'" , "'Christoph Lameter'" , "'Pekka Enberg'" , "'David Rientjes'" , "'Johannes Weiner'" , "'Vladimir Davydov'" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] mm/slab: fix kmemcg cache creation delayed issue Message-ID: <20161013074220.GB2306@js1304-P5Q-DELUXE> References: <002b01d21fea$fb0bab60$f1230220$@net> <20161007051400.GA7294@js1304-P5Q-DELUXE> <20161007082055.GH18439@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161007082055.GH18439@dhcp22.suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1260 Lines: 26 On Fri, Oct 07, 2016 at 10:20:55AM +0200, Michal Hocko wrote: > On Fri 07-10-16 14:14:01, Joonsoo Kim wrote: > > On Thu, Oct 06, 2016 at 09:02:00AM -0700, Doug Smythies wrote: > > > It was my (limited) understanding that the subsequent 2 patch set > > > superseded this patch. Indeed, the 2 patch set seems to solve > > > both the SLAB and SLUB bug reports. > > > > It would mean that patch 1 solves both the SLAB and SLUB bug reports > > since patch 2 is only effective for SLUB. > > > > Reason that I send this patch is that although patch 1 fixes the > > issue that too many kworkers are created, kmem_cache creation/destory > > is still slowed by synchronize_sched() and it would cause kmemcg > > usage counting delayed. I'm not sure how bad it is but it's generally > > better to start accounting as soon as possible. With patch 2 for SLUB > > and this patch for SLAB, performance of kmem_cache > > creation/destory would recover. > > OK, so do we really want/need it for stable as well. I am not opposing > that but the effect doesn't seem to be a clear cut. I think that it's meaningful to solve problematic commit itself because it would cause the other problem in the future. And, this patch is simple enough to apply to the stable tree. Thanks.