Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756295AbcJGIVG (ORCPT ); Fri, 7 Oct 2016 04:21:06 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33725 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752879AbcJGIVB (ORCPT ); Fri, 7 Oct 2016 04:21:01 -0400 Date: Fri, 7 Oct 2016 10:20:55 +0200 From: Michal Hocko To: Joonsoo Kim 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: <20161007082055.GH18439@dhcp22.suse.cz> References: <002b01d21fea$fb0bab60$f1230220$@net> <20161007051400.GA7294@js1304-P5Q-DELUXE> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161007051400.GA7294@js1304-P5Q-DELUXE> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 995 Lines: 22 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. -- Michal Hocko SUSE Labs