Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2811175pxp; Mon, 14 Mar 2022 05:34:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypcqg6eIF9g7SSC9MANZ8qs5rpIloVPmcGMAVEJJlTrpjZyDp2QVbTF+DZnlzOhmP5iVXl X-Received: by 2002:a17:906:26c6:b0:6da:ecd5:fd48 with SMTP id u6-20020a17090626c600b006daecd5fd48mr17885971ejc.93.1647261240790; Mon, 14 Mar 2022 05:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647261240; cv=none; d=google.com; s=arc-20160816; b=IVIH5ODzJGdWKeCIz++Vt1Dbn64G4gNLlH066Z7PnmD4WtwZ5UNnsaMuO2lELhuii8 xz+H0bvXfhlAjNNeqWFWN6pkh8iRZvYdEdoBgmiNLTz6lRuuU+Ko8itxzoIOZzsHSoYi tRzUnH2Fi2yDaCx77LnLu+HbDxDZJfdrHq/mnT9OiP+9gC2QAICfsAs0tIRMTJa6CCbT mb8QJ1PM3IA0mW9jeOzdbq+NL6+UuJgc4qEqgFSeFqc09KUaGd6rOcBmCi1oM7CTzShE UfnmiN/g/S1HwAJ9c9eOgSx0M5nhVlXzMdE5p0EB7/yILSMMBUiknRrL0cZeQEeyCgFu SHCw== 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:dkim-signature; bh=FLR7UKfsMlLrrEj/Umb+LOUGT1OJV73SR8LYmmVKGa4=; b=XeBWegDHQ83wjyoheK3dlquQbQAxKeLfSRfA+aVCT8LYA2XHDz+p3GRLdvkgadhkX9 BcYL851vtRqDzVM6pNjbev9YoaU9Aa90Wn4YUPpnng8zGrCZU9w+4HENJtWwxZmXxF9i kY6cffB/muEltFQtpPmeFDc6ki8HkvfAkJYbmSUz0AAYNWon63YDV6AADI40PLM2/LgM prF1f3MjndpbJ1f/UGMnOvVFO4lJGzdM9i3lLaXjZfKVMhP7inAOhC0Nf24Fog24Pb8J Ljmd9toUkn7gGZS2VEsEe3z1Rfp9e2mP3e1ymgL2EG9UaxSvu25mg3ZxmeZH8qIXOlIS 5mLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=qaGYal9E; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a50ccc6000000b00416306fdc00si9246653edj.618.2022.03.14.05.33.35; Mon, 14 Mar 2022 05:34:00 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=qaGYal9E; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235496AbiCMVUI (ORCPT + 99 others); Sun, 13 Mar 2022 17:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbiCMVUG (ORCPT ); Sun, 13 Mar 2022 17:20:06 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D11443AD2 for ; Sun, 13 Mar 2022 14:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=FLR7UKfsMlLrrEj/Umb+LOUGT1OJV73SR8LYmmVKGa4=; b=qaGYal9EH35BPnMCN0DJSLwPDd cdi3gwfU+VVtHrv61UbTI64l9VOuBzRoqg6nKzR2vodCBMJXzZWp+UvjlrcdDuCA9KGaFP0aArojp H48DJfgfpbfsNM3YI+GScSXR4aOJYQBOA4x6PDJUnJF0Q3Pf2dnUD2Ac2/k04tzt7s61c2ydgJFWz JEJnQ4hLTOreousQ5MBV/ITdmyqMnMd6S6XtClvmyfRX3vwYnO+TNE54Y57CxaKG1JNROqbKSrDfp pAHdEBD6iOGOBzFDYcKS5Gqk5br/UVwn9rDV4wS2WopxRwFOt2bNy7BBpTMpdVdFJzh8YYoX8g5sP pveJHDPg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nTVbw-003UUm-Bf; Sun, 13 Mar 2022 21:18:44 +0000 Date: Sun, 13 Mar 2022 21:18:44 +0000 From: Matthew Wilcox To: Eric Dumazet Cc: Vlastimil Babka , kernel test robot , Mel Gorman , 0day robot , Michal Hocko , Shakeel Butt , Wei Xu , Greg Thelen , Hugh Dickins , David Rientjes , LKML , lkp@lists.01.org, "Huang, Ying" , "Tang, Feng" , zhengjun.xing@linux.intel.com, fengwei.yin@intel.com, Eric Dumazet , Andrew Morton , linux-mm Subject: Re: [mm/page_alloc] 8212a964ee: vm-scalability.throughput 30.5% improvement Message-ID: References: <20220312154321.GC1189@xsang-OptiPlex-9020> <15307f8a-c202-75d8-1361-dae0146df734@suse.cz> <8f499c76-68cb-a2c3-01fd-c8759e2fd317@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sun, Mar 13, 2022 at 02:10:12PM -0700, Eric Dumazet wrote: > @@ -3065,6 +3062,12 @@ static int rmqueue_bulk(struct zone *zone, > unsigned int order, > */ > __mod_zone_page_state(zone, NR_FREE_PAGES, -(i << order)); > spin_unlock(&zone->lock); > + list_for_each_entry_safe(page, tmp, list, lru) { > + if (unlikely(check_pcp_refill(page))) { > + list_del(&page->lru); > + allocated--; > + } > + } ... you'd need to adjust __mod_zone_page_state() too, right? > return allocated; > } >