Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2374103ioo; Sat, 28 May 2022 11:39:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyJ1ugdSSfcBmwvXb0yYXQLw5Rr4DmnQiR2oQYSil/kSRvKvQHVZSeLzsrYciIQvDzDMHp X-Received: by 2002:a17:902:e5c7:b0:162:3cf0:6dc7 with SMTP id u7-20020a170902e5c700b001623cf06dc7mr25278684plf.80.1653763171729; Sat, 28 May 2022 11:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653763171; cv=none; d=google.com; s=arc-20160816; b=B9gMSZUvnJv/PbzF10efsy7wnKO/jb2/eJIxOO6CyyA4Svw41b//+YEpvtN89RSItt M59L+ogez9qk76tb8CPyeMmPkRg6De7TZDPbVF4ERFvMrVIGj6VGbL1yLQ/6yVgW+N6Y c2KKUwQmo4mimXxdB9M/wR63f9Y4Jjwy3dh/gafTyBymfGzdjdDWjuDkD1c5sisNB6UB oAgqZpGWd7VVl6WZthCMb3JGvxskhrDbZ4uKIf4PwNN45ypRiyqtzwBadJKP8dFBDzMF Ri442VwmFvLISHTi0dj/TrRtPVaB33xjtKnxgJYmOcN8vc1QscaP97GZb96x/8RP0DGV +X0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EVI0B3duA5eRF4mVcSZEXB4R88Cx0AKUOq/U+2Qg7dg=; b=1IsxdWsYA1rGU2F9i+L4KVndb+LtelUncMZXmDdvXaVP6H3Ci0dP+2tWUMduc2hr6e S34VheupKOcb3oMr+cvb3SOMT+SZYnh/C7vAlwQ8PXGFTpC6HV9Rm/mQIIjOSrKIN1Hf 6rGMRl18HHj6Z2/OHvKPXV9cEDAV05iB97B4VCHNYpcyctMMc4LFNSgGOUio5DiDUXgo f1ZNGnXOvizG7zRjPuYA2cGDGkK3DzUz9946vi+k+f8wU0wALLiJPPm2Wy8ycQ4Q/eIJ KvAiXu8+SiLYBbfuTx4vTQTQYuJDURL0Da/yu7qWE/cgq10rBjeiMSjQJngksctXm4xR vf8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 4-20020a630704000000b003fa34df042esi9813446pgh.178.2022.05.28.11.39.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 11:39:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5D14527CC4; Sat, 28 May 2022 11:33:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238084AbiEZKQz (ORCPT + 99 others); Thu, 26 May 2022 06:16:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347126AbiEZKO6 (ORCPT ); Thu, 26 May 2022 06:14:58 -0400 Received: from outbound-smtp52.blacknight.com (outbound-smtp52.blacknight.com [46.22.136.236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC3D7CC148 for ; Thu, 26 May 2022 03:14:53 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp52.blacknight.com (Postfix) with ESMTPS id 24C86FAC44 for ; Thu, 26 May 2022 11:14:52 +0100 (IST) Received: (qmail 9319 invoked from network); 26 May 2022 10:14:51 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 26 May 2022 10:14:51 -0000 Date: Thu, 26 May 2022 11:14:50 +0100 From: Mel Gorman To: Muchun Song Cc: Nicolas Saenz Julienne , Marcelo Tosatti , Vlastimil Babka , Michal Hocko , LKML , Linux-MM Subject: Re: [PATCH 1/6] mm/page_alloc: Add page->buddy_list and page->pcp_list Message-ID: <20220526101450.GE3441@techsingularity.net> References: <20220509130805.20335-1-mgorman@techsingularity.net> <20220509130805.20335-2-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On Fri, May 13, 2022 at 04:41:20PM +0800, Muchun Song wrote: > > @@ -94,6 +95,10 @@ struct page { > > /* Count page's or folio's mlocks */ > > unsigned int mlock_count; > > }; > > + > > + /* Or, free page */ > > + struct list_head buddy_list; > > + struct list_head pcp_list; > > }; > > Since you have clarified "lru" member, should we go further? > Like union "index" to "pcp_migratetype" and "private" to "order" > since buddy allocator reuses "index" and "private" as well. > My initial idea is as follows, it is more clear for me, what > do you think? > I think it would be more appropriate to split it out as a separate type as suggested by Matthew Wilcox. While I would not be opposed to your approach as such, it's outside the context of the series which is modifying how PCP works. -- Mel Gorman SUSE Labs