Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7260309rwi; Mon, 24 Oct 2022 12:01:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VCaP4oaTiGyU94nnvc013hj/mm/UBlxQRH0NySdkpsGf/HQ6Z0ATxVibKEq8ADuuNnZag X-Received: by 2002:a17:903:124e:b0:178:6946:a2ba with SMTP id u14-20020a170903124e00b001786946a2bamr34583604plh.89.1666638106232; Mon, 24 Oct 2022 12:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666638106; cv=none; d=google.com; s=arc-20160816; b=ntA8hiC7SJNQiQaT7CujqxxGdKrM8ksBkXAUl8ijAvnYtKOBZsvCSmAQbGvv9VDXcz ARisxsicaqAUjvZOgmVYIDsLjHh/oiQ/hFb0kql6mEXdpdPtvMjgPCyeo5Tr9b0R7zvV iyQpbBXJMO8WliKNEJrG6fpwi7P3ZKfgPV4LKjdoIUof+97CdQaz7RSPQdsCspNgl08Z DZ4yw5tTHABzc40uQPCSraF9r43pdBOtgHyhMFVffubpDuAyYmSqQjHq7X972osUI6QT j+6MkcP663Z5DaY2xZQk+Re0NdSutuUvzWoLwuXj8RMwEk44Y2eSjZ/GSBrTyA5eFHzq xcUg== 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=gz6IbE5QNnnx6hJZ/M0UjY5y91KtBmJ2N2+vRHclsWk=; b=fdF5KrbWZF+L9XjMLexT2ijpA+NnNJQKQH8DihTKnkQ1z8/DJyeXzxDKxzJuRL5SCY f62KSWcMDQyVTrLD1FpHCTx+5ciK9NtcijgUBPLGd7NGEiq+0PVwIHFQ1xx5SgVnbKG1 g0uHrXnk8dM6oadTG3Evq7x1zeCeRT4P2sNSOVx7wEa3bBxrzbk1NrN7f77EcIBtjW90 OGbixsWzEhXgAhbVtWOMwEvfArimCXBXsMXId/stHKq+/EZCmpF3xuJRAGalnZVg3NGN LDGN9VfUUfLRtDhfiUGS2RL1tMljlQSuXryfVlIgNHFbewxivvDSYFZlA+kNi2eqgh6M IYQQ== 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 c22-20020a637256000000b0046ec7bec2b2si384452pgn.159.2022.10.24.12.01.31; Mon, 24 Oct 2022 12:01:46 -0700 (PDT) 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 S231815AbiJXSaS (ORCPT + 99 others); Mon, 24 Oct 2022 14:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230373AbiJXS3d (ORCPT ); Mon, 24 Oct 2022 14:29:33 -0400 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE584DBE4F for ; Mon, 24 Oct 2022 10:11:27 -0700 (PDT) Received: by mail-pf1-f173.google.com with SMTP id m6so9549366pfb.0 for ; Mon, 24 Oct 2022 10:11:27 -0700 (PDT) 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=gz6IbE5QNnnx6hJZ/M0UjY5y91KtBmJ2N2+vRHclsWk=; b=jMAILx40MPutTId9cA76kdNpd5+IF/jsYoAiCZulvw8X/IP92M1oStkrlS16VnSfHE j7vPtpyn3+dYkoIutGCl2biNjkwG6GJsUBlkKeFbPAKhhLJmDonUSwWacbNMAFzAGOLe HKFhP+clB4FKX+FPx2dogTaU4amR80AHQWXktxPwUfoSNUFNmuoDVQedUQZGYWECr078 9+dFJKkzA+OSzYk6VKtO6qtkGRarJCQCViwhdHFJsD6enjGBmSUBl6HEpPWYGvX09Y0z w8bloSicoz45EgrizIGo793zb6vvbRzbdCZvfR5zwKNUQKOIQnVndTU1AbiqjtUIILFf NaJw== X-Gm-Message-State: ACrzQf3vuSPyZFMPel5DDMIUih4wJQOhmD7jbI79ad+YatyivvTNqxOp Mea4FUCp2Ogm8ec73WY4Da0= X-Received: by 2002:a05:6a00:1687:b0:565:a932:f05a with SMTP id k7-20020a056a00168700b00565a932f05amr34363733pfc.21.1666631390642; Mon, 24 Oct 2022 10:09:50 -0700 (PDT) Received: from fedora (136-24-99-118.cab.webpass.net. [136.24.99.118]) by smtp.gmail.com with ESMTPSA id j7-20020a17090276c700b0017f73caf588sm829plt.218.2022.10.24.10.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 10:09:50 -0700 (PDT) Date: Mon, 24 Oct 2022 10:09:47 -0700 From: Dennis Zhou To: Baoquan He , Andrew Morton Cc: linux-kernel@vger.kernel.org, Tejun Heo , Christoph Lameter , linux-mm@kvack.org Subject: Re: [PATCH 0/8] Cleanup and optimization patches for percpu Message-ID: References: <20221024081435.204970-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221024081435.204970-1-bhe@redhat.com> X-Spam-Status: No, score=-1.6 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 Hello, On Mon, Oct 24, 2022 at 04:14:27PM +0800, Baoquan He wrote: > These were found out when reading percpu code, and queued in my local > branch for long time. Send them out for reviewing. > > Baoquan He (8): > mm/percpu: remove unused pcpu_map_extend_chunks > mm/percpu: use list_first_entry_or_null in pcpu_reclaim_populated() > mm/percpu: Update the code comment when creating new chunk > mm/percpu: add comment to state the empty populated pages accounting > mm/percpu: replace the goto with break > mm/percpu.c: remove the lcm code since block size is fixed at page > size > mm/percpu: remove unused PERCPU_DYNAMIC_EARLY_SLOTS > mm/slub, percpu: correct the calculation of early percpu allocation > size > > include/linux/percpu.h | 7 +++---- > mm/percpu.c | 44 +++++++++++++++++------------------------- > mm/slub.c | 3 ++- > 3 files changed, 23 insertions(+), 31 deletions(-) > > -- > 2.34.1 > > Thanks for the clean ups. The empty page accounting is more subtle than I remember. Andrew, I think for these cleanups it'd be easiest for you to pick these up. Thanks, Dennis