Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1313648rwb; Sun, 6 Nov 2022 23:30:00 -0800 (PST) X-Google-Smtp-Source: AMsMyM7mbmEO8vpdzdUQQnmsmBPUeNKv2HVEBo3cAJD48pAZysFGNRxy40guBKSVyDe4SetZkx9H X-Received: by 2002:aa7:cd58:0:b0:462:d797:483d with SMTP id v24-20020aa7cd58000000b00462d797483dmr50340728edw.343.1667806200228; Sun, 06 Nov 2022 23:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667806200; cv=none; d=google.com; s=arc-20160816; b=zcktlxsoHCKWCfr7m/WOzoYoJoZiUltmhLPJLZLdWyx2248bDdXIfqhKVtN4HFYn38 QnKOrhFmAX8i8yzYP34yrGOX7Xka2g4AxEQAksHXuw/eHOUPSiHQZGM8HpnJBwsds18b xbqnCRCl9g44AY+eqUuXGXIGlJUZs8s0r+/Rv/g7L6zYvdtwjMPHqmg3nm30RhrikE+q YErbRWNLVMS/rYUnDJqYBfonaZUH743kwdNYrGNHkVhIIgO7JBauSooF+SQ66gOp+uh5 05Tf4vxwee6IpqJiaEtveARcFkOjbnTmiHW49BzEk5D/jphDIKqLYx+dsU5AzrbIEN/R NtsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=PgoRVUgxwXJrcmiPeyTeFWYr8HX0hdcHEbm1EMJUS3k=; b=BzGoNqobJkpX+FAbxaMmElRB5SZvMY2wiUcEdLTqzozCdabGYFXPHRAUFxKXbqsnmj J07AX+G8sD9ywhPNiVKOl+Q3e98quFBgBaVdnXh/TZbVEvIl13NsWdU2WEJi0E6x83Tk 8NswRqyZerlVDRCr7eI+ndlvhTIEh0Odchr1gCxuaVA8C7T3PeqREw6Apl3oiv2xhEhl 2E9vkppQFGBrFFSKcGvgLuY1JMoHvcOpLXAzWOnT+pHHUzYkV2mTO4F5QNmviJNpOS4S hoSXbxvj22uOUd8z7He3LQ9sNsW5bYigVVnvyjATDK0qr9K5Vw/qdLdVSAKEIyMbH2bv FsOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a1709064fcf00b0079ed0a585c2si9234145ejw.261.2022.11.06.23.29.36; Sun, 06 Nov 2022 23:30:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbiKGHUa (ORCPT + 96 others); Mon, 7 Nov 2022 02:20:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbiKGHU3 (ORCPT ); Mon, 7 Nov 2022 02:20:29 -0500 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07760EA for ; Sun, 6 Nov 2022 23:20:29 -0800 (PST) Received: by mail-pl1-f181.google.com with SMTP id c2so10264934plz.11 for ; Sun, 06 Nov 2022 23:20:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PgoRVUgxwXJrcmiPeyTeFWYr8HX0hdcHEbm1EMJUS3k=; b=tGuVmynlCKS41wB+STnS20ND816H1/6aCKBJZ+D9TzdUKKd2lQGOKaJvNTbAPVrzwW 35QIUzAX3701Y4qKB8vKyREpSHgNqn2q+YuGVvQ3PlFm9Iy+LHROgKiqcbcE7pkQHGXP pq67v1awBFylWTGOemLQp6h6+P3IZw1pgFLlAEy8bKyWhStFmf6uZ01i3K3SbKTqvmwd 9/or89fZ6LdPlcLW2PAff1ymF/eY6ZPwVQlFaAG5Yyu/dW1iyxvY7Hgap3AEAUvs3i8S LvwwiQ3YLKPNMp/jeIC6rKbfEscgerIYmvEh7/CHgB/1Oj3vFO7r373RlsgnXPF8HH35 ad8g== X-Gm-Message-State: ANoB5pmyECSvMWaHXCSUoU18NEfhm2HRSm87/4QOA+crzWw4WhD03ot1 t0iQW/u2aGsPFwGoz8lyOJo= X-Received: by 2002:a17:902:bf0a:b0:188:6862:cc3d with SMTP id bi10-20020a170902bf0a00b001886862cc3dmr15727874plb.17.1667805628385; Sun, 06 Nov 2022 23:20:28 -0800 (PST) Received: from fedora ([47.153.164.177]) by smtp.gmail.com with ESMTPSA id x12-20020aa78f0c000000b0056cee8af3a5sm3710764pfr.29.2022.11.06.23.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Nov 2022 23:20:27 -0800 (PST) Date: Sun, 6 Nov 2022 23:20:24 -0800 From: Dennis Zhou To: Baoquan He Cc: Vlastimil Babka , linux-kernel@vger.kernel.org, Tejun Heo , Christoph Lameter , Andrew Morton , linux-mm@kvack.org, Pekka Enberg , David Rientjes , Joonsoo Kim , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com> Subject: Re: [PATCH 8/8] mm/slub, percpu: correct the calculation of early percpu allocation size Message-ID: References: <20221024081435.204970-1-bhe@redhat.com> <20221024081435.204970-9-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Baoquan, On Mon, Nov 07, 2022 at 12:35:56PM +0800, Baoquan He wrote: > On 11/06/22 at 09:56pm, Vlastimil Babka wrote: > > On 10/24/22 10:14, Baoquan He wrote: > > > SLUB allocator relies on percpu allocator to initialize its ->cpu_slab > > > during early boot. For that, the dynamic chunk of percpu which serves > > > the early allocation need be large enough to satisfy the kmalloc > > > creation. > > > > > > However, the current BUILD_BUG_ON() in alloc_kmem_cache_cpus() doesn't > > > consider the kmalloc array with NR_KMALLOC_TYPES length. Fix that > > > with correct calculation. > > > > > > Signed-off-by: Baoquan He > > > Cc: Christoph Lameter > > > Cc: Pekka Enberg > > > Cc: David Rientjes > > > Cc: Joonsoo Kim > > > Cc: Andrew Morton > > > Cc: Vlastimil Babka > > > Cc: Roman Gushchin > > > Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com> > > > --- > > > mm/slub.c | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > As only slub is touched and there's no prerequsities in the previous > > patches, I took this to the slab tree, branch > > slab/for-6.2/cleanups > > Yes, it only changes slub code. Thanks for taking it. > > I will resend v2 with the left 7 percpu only patches with update. > > Don't worry about resending them, I'll pick them up tomorrow morning. Thanks, Dennis