Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp674941pxp; Wed, 16 Mar 2022 14:09:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRpR6GYf1HAZYwjaV2YVk9fk5s3a+WX4kPdm+9HoHbrkLq4lsdsrdDO7eF/8Ovy+VARSkb X-Received: by 2002:a05:6a00:1acd:b0:4f7:c17b:28e5 with SMTP id f13-20020a056a001acd00b004f7c17b28e5mr1562195pfv.78.1647464967092; Wed, 16 Mar 2022 14:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647464967; cv=none; d=google.com; s=arc-20160816; b=pWhNcaQHcLpbE49YqQokhyP/vCQMyTdCDYII1GByBdS7CrxDioFs+I8JFreORSr/zc fmZWDckP9qjHanRHCl3JEKOvXszMQoiF5BKptNONCn51cVzA3u+o8Cswty4QQgnEYOAW insUcVoBqIGuSoi4C7SvAP/e6FP5tjAWoF9Y9/sV5mcWSvsZf6QXaEvvA2rdgtY0T/hw p3xY1Z090oO5i9T3eR21IicDULN0DQD656B97J/hQ/0DIPD4kXhw6m2K5MNOV+8eYRba TnNrCzVJGZqmcgxG9E0HZkEzzrZ5QqzI2qgR6bdZyO4xwdiRAnLCaWpMD3GNMLDZw9Sa gGCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kMbbSXeuuVuuTs669VGVPiqKk5sYijV81mJywT7+SYQ=; b=zw5JJHwF36oNshT/eU2TkmY4MHLjx9w/I+cUJ318MhOLjRNpjSCL43aLRl66w5HeCQ 4y/B3k+6RnjLj0PXaas/N/O/I1H2tWk/sDY7sxlppZ4vbR4MLUobkti3pENMQWgJU1mH 9eZAfEIStioJut9OIgfglAUvRPc8EwQ1IMSyHlWwy6ms4OwfmUHacP59XHoVI465Nvbh GBvwsEZp50eA6KQYeXZOW4gG1r6GfQ4QIQHZSmqzo3Ik3QUXL+lZYcPuDamyFIgkdNop nlX7mhfwfcK6uWyT9tZ4soLC8Rs6a3bWoZAJwIrqBew5awCYWRkISIEdCM+yHV+uFkZn 2fCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=qCIbgh1h; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bh9-20020a056a02020900b003816043ee3asi174164pgb.47.2022.03.16.14.09.13; Wed, 16 Mar 2022 14:09:27 -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=@google.com header.s=20210112 header.b=qCIbgh1h; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235596AbiCMV3M (ORCPT + 99 others); Sun, 13 Mar 2022 17:29:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbiCMV3J (ORCPT ); Sun, 13 Mar 2022 17:29:09 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41AEE255AB for ; Sun, 13 Mar 2022 14:28:00 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-2e2ca8d7812so82370347b3.13 for ; Sun, 13 Mar 2022 14:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kMbbSXeuuVuuTs669VGVPiqKk5sYijV81mJywT7+SYQ=; b=qCIbgh1hhic7psMQ3Brv/zUqNUeuV4Vb5RbHdc6HNtSu7mDzBpSBHda9392NK1yI8R 1V6O2zn60vAUJZZ1PiOOuaHQFAyTk7Z/Fi2j1Bf1oHg4C0FNLynb9lLlU+sn4s8p+aux /NHkUnMT6WeM3vZ/VnbpisxKt+pbTNzOglmGIB/4EgjgsplEd164ilsqFKiTDmuRB2Fd bh8l25F/Wa6+ksklovFsdkSyXHP++kBDlDbXj4Cykrj6+kG6v/0rjNfcSre8soz5AtTV 2XWbXooYGZlKg2ktB7NkT7GzQuV3ycZckvAdNoFeN6AbE54OFT2bVkxRffVvsaC4ujX4 S0Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kMbbSXeuuVuuTs669VGVPiqKk5sYijV81mJywT7+SYQ=; b=Q9Z/DfmyGak8VyTHuXBhectWnELDq/cs9uq3RBRMfZZTr7aFaF4GKkjCbZGr5vkHHJ fQCN2i6myJXPs/u0Cp3rI+huKuyYEiQjNvshisLS2QaQoFFcTpMHoNS/1CLhheRTv8gf RRoduwqCjRNSQPTLy4lnlprj/NOuub8iWbMZpY3aiaGF7CR6RiPT02B0+n0di4UC0bLZ 2c+Tcm/3qCvq6I4PKjSEarwCmhzAPsskBDMozb4cUCzM/iI6yBA74gYBApZXDP7G3YFj f6pezEuV8XjS+8n2O1Lfgg5opyPA8wbWcHkQmBu90fNYPNI0RVTmHMFLjQxSm/KemH5o dGYA== X-Gm-Message-State: AOAM532g00j72Zh7YPwB2P3zgY+q1jUk9RIa3NP4MdVNkrZyfOLYsZVQ AgV6rE6XkbsgAgj+mz9G+h0yDBshmVf/zYDJzHfQjw== X-Received: by 2002:a81:846:0:b0:2db:f920:5c62 with SMTP id 67-20020a810846000000b002dbf9205c62mr16607788ywi.489.1647206879050; Sun, 13 Mar 2022 14:27:59 -0700 (PDT) MIME-Version: 1.0 References: <20220312154321.GC1189@xsang-OptiPlex-9020> <15307f8a-c202-75d8-1361-dae0146df734@suse.cz> <8f499c76-68cb-a2c3-01fd-c8759e2fd317@suse.cz> In-Reply-To: From: Eric Dumazet Date: Sun, 13 Mar 2022 14:27:48 -0700 Message-ID: Subject: Re: [mm/page_alloc] 8212a964ee: vm-scalability.throughput 30.5% improvement To: Matthew Wilcox 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 2:18 PM Matthew Wilcox wrote: > > 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? Probably ! This was only to show the basic idea, as I said, not even compiled or tested :)