Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754464AbcJGF3D (ORCPT ); Fri, 7 Oct 2016 01:29:03 -0400 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:45947 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753754AbcJGF3B (ORCPT ); Fri, 7 Oct 2016 01:29:01 -0400 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: iamjoonsoo.kim@lge.com X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Fri, 7 Oct 2016 14:14:01 +0900 From: Joonsoo Kim To: Doug Smythies Cc: "'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: <20161007051400.GA7294@js1304-P5Q-DELUXE> References: <002b01d21fea$fb0bab60$f1230220$@net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002b01d21fea$fb0bab60$f1230220$@net> 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: 995 Lines: 25 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. Thanks. > > References: > > https://bugzilla.kernel.org/show_bug.cgi?id=172981 > https://bugzilla.kernel.org/show_bug.cgi?id=172991 > https://patchwork.kernel.org/patch/9361853 > https://patchwork.kernel.org/patch/9359271