From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F85AC433FE for ; Sun, 13 Mar 2022 21:19:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E0DD86B0072; Sun, 13 Mar 2022 17:19:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DBCF36B0073; Sun, 13 Mar 2022 17:19:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C85116B0074; Sun, 13 Mar 2022 17:19:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id B5F8A6B0072 for ; Sun, 13 Mar 2022 17:19:05 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 8003A60786 for ; Sun, 13 Mar 2022 21:19:05 +0000 (UTC) X-FDA: 79240628250.13.8043F82 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf03.hostedemail.com (Postfix) with ESMTP id C734320030 for ; Sun, 13 Mar 2022 21:19:04 +0000 (UTC) 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-Rspam-User: Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=qaGYal9E; dmarc=none; spf=none (imf03.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: C734320030 X-Stat-Signature: qj5qzddxbf6byz1kdmw1xj384fmf39gt X-HE-Tag: 1647206344-202631 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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; > } >