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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38EF2C433EF for ; Sun, 13 Mar 2022 21:28:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235599AbiCMV3N (ORCPT ); Sun, 13 Mar 2022 17:29:13 -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-Google-Smtp-Source: ABdhPJyoVATrmtdXU5YGPBbpEoF/1Z+Jdn9w9QfpXBMvz/HzxT+n1v2FIcXvgWnKr5Akom1tswDuq1uSVuuVFO99ZFs= 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" 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 :)