Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1056751rda; Mon, 23 Oct 2023 00:27:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGst9FOG8qmZyS6+b+PGJ5pxtZkZ1pQUopS1bJUGmn+wHju9s1W7wQc6Ez4Gj4VzG6g1wyh X-Received: by 2002:a05:6a00:cd5:b0:6bc:62d0:fff6 with SMTP id b21-20020a056a000cd500b006bc62d0fff6mr9235034pfv.32.1698046077634; Mon, 23 Oct 2023 00:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698046077; cv=none; d=google.com; s=arc-20160816; b=dTBsJGuEs4RmGMh8CE++9CsbXNAq9sifCDZ2P/H/+teEGou3e5JUhlNNjy7kylpQVm 9IQ/OGhcDm+ND66VJs+1omfHNB7w1Thrw4MB4bTUw24AjTw1SeGJM4GZej5vSjf05AbM 0H2NtCG8+/CqY/Wtb1D5X2/GbmUAhdRV5AnXZ3G3hOCK5nQNzerRNGSEk6r05RynjEO4 X1n9S9WlainvEO+7P5pPxK+NYwS+Kt1CVe8i1zjzLUkIgSi3SEsQTfDRKW9AM0Ei7h1u UVA9nvIkDfbPNdJ62PtUJwBYUZBTr66ljX6dQGv01/SHC6uUsH0a5U3cbGmLl9N25ZFH AV5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:in-reply-to :mime-version:message-id:subject:cc:to:from:date:dkim-signature :dkim-filter; bh=yQ0o45G+VG1R4BSnMeP2FwuyP8TuVxRSYxt30sCvGNU=; fh=Adw/PPcl5bwsElqmuIgEXDh7MwRBmPy4RyzNxw22M+s=; b=bd8O6cXP2PVMdWGoLR+EXdEJC4wSplMYkUgko+THb78wekPj6Zdwu1Uw8kjRb/gApI FHyC+L17n3hcVnFyJFPcKEiSNNUPYUCm26kFaMbXASc6o1Bb6PcNqHrEiVFNm9F8xBZq s81B5RwgXujWi7MfnB8HNXY2/v2u83z3Ho8+r6gFNpfodSJKTTph6rKznGrh6r7f5EvX WGZdzl2bC4YD/7eIqeRJPZ/R8LbKTv1U6PADy++XPWT+BsxZz4NhMTioTZ0WS4uDdGOa xOWYChrVlvZdg546S9OUv8V7HcD0aO/waY1mZOnOTcD6W2JP6NzhmSSEU3y/SbTNKS4s b7rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=vWYv5YdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n3-20020a6546c3000000b0056b024a4dd0si5661967pgr.614.2023.10.23.00.27.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:27:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=vWYv5YdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B3392808EEE0; Mon, 23 Oct 2023 00:27:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233476AbjJWH1g (ORCPT + 99 others); Mon, 23 Oct 2023 03:27:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233463AbjJWH1e (ORCPT ); Mon, 23 Oct 2023 03:27:34 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 774C0D6B; Mon, 23 Oct 2023 00:27:31 -0700 (PDT) Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20231023072728epoutp016f16d270b9d58d77a3df83a636430be8~Qq_JRhUIp1250612506epoutp01L; Mon, 23 Oct 2023 07:27:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20231023072728epoutp016f16d270b9d58d77a3df83a636430be8~Qq_JRhUIp1250612506epoutp01L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1698046048; bh=yQ0o45G+VG1R4BSnMeP2FwuyP8TuVxRSYxt30sCvGNU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vWYv5YdIqTb8esz/7oR57rVdrqQiQW9bXDca8BNdaR4ZY3WdofGJiE8CuQjHf2HLk CksB44uQ7Cwl6cRBx5dgShygTWEKAZiKeokXTu4VPGDUWLw+tj7S9/6kDD0WvlC+iM //7xf1s/6FWok/KbWp9xlHw5Xn6dt7rRjL6/WqUI= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20231023072727epcas2p4eb120f3e7d6e0b6a0a76ae809bcf413e~Qq_I3l0GM2774427744epcas2p4m; Mon, 23 Oct 2023 07:27:27 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.101]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4SDRbg0FN6z4x9Q1; Mon, 23 Oct 2023 07:27:27 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 7D.5A.10006.E5026356; Mon, 23 Oct 2023 16:27:26 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20231023072726epcas2p22a956be89b7f25f9edf2faff418e507a~Qq_HuFV_g1856218562epcas2p2J; Mon, 23 Oct 2023 07:27:26 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20231023072726epsmtrp243c3957bce73fbbad6710deba8333a18~Qq_Hsw4u43069830698epsmtrp2B; Mon, 23 Oct 2023 07:27:26 +0000 (GMT) X-AuditID: b6c32a45-3ebfd70000002716-b6-6536205e5a1e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 3C.BF.08755.E5026356; Mon, 23 Oct 2023 16:27:26 +0900 (KST) Received: from tiffany (unknown [10.229.95.142]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20231023072725epsmtip1ca6761ce4659bf69cb32b5496d0bcbf8~Qq_HPonl_2906329063epsmtip1Q; Mon, 23 Oct 2023 07:27:25 +0000 (GMT) Date: Mon, 23 Oct 2023 16:16:56 +0900 From: Hyesoo Yu To: Catalin Marinas Cc: Alexandru Elisei , will@kernel.org, oliver.upton@linux.dev, maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, arnd@arndb.de, akpm@linux-foundation.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, mhiramat@kernel.org, rppt@kernel.org, hughd@google.com, pcc@google.com, steven.price@arm.com, anshuman.khandual@arm.com, vincenzo.frascino@arm.com, david@redhat.com, eugenis@google.com, kcc@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH RFC 06/37] mm: page_alloc: Allocate from movable pcp lists only if ALLOC_FROM_METADATA Message-ID: <20231023071656.GA344850@tiffany> MIME-Version: 1.0 In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA01Te0xbVRj39N7eFgQtjOEZSybr5hTk0SItZwbYsiG5OmcwEolOxAo3tFBK 1xajMgQW5LFsg4FM3mLmYCCPpYBAVwpSXgXC5pZN3jgeBYlQYY5m4JgXLjP77/f9Ht93Hvm4 mKOJ48KVKTSUSiGR8wlb/BejG/L81FVMCRbSECqpryHQ91V3CGToi0SPc3s46PbMXZr6MxVH lorzAD2sX8fQXE4Thn4tX8bR3OpFHE0ZKlloIjsfR83mJRZabDTiKFP3EEfamXtspG8z4eiO roRAkzVP2Ki1xMRGectmgK5UHkK3O8pZKP/RXwTKHv+dQL0XOljIkPkHC3XVN7NQapeFQIVj YwBldq1hqG3zEY6auq0clDYuQiNXr3OOHiRrymoAubGeC8g0wyiHLNcmkGldS2yy4Zo7qa3O Ikjtai6HHL+nJ8i+gg2c/DElHyMbfkomFxoKAWkx3CXIhoFE8oF2Xwjv41h/KSWJolSulCIy PkqmiA7gn/gg4niESCwQegoPIz++q0ISRwXwg94N8QyWyel35Lt+IZEn0FSIRK3mewf6q+IT NJSrNF6tCeBTyii50k/ppZbEqRMU0V4KSvOmUCDwEdHGz2Kl88UnlEsvfmkxnUoBs3bngA0X 8nyh+fwUfg7Ych15LQBOVk5jTLEK4CVL4Y6yBmBGRzbnaaR7zEIwQhuA/1Tp2EwxB2DKoJm1 5cJ5r8CVDv12guC9CvsaK8AWduJ5wlvp3223xXg6AlpNWnxL2MWTw5xp3bbJnjY1behZDHaA psLZbY8N3eiutRFshSEv3RbWZ5lpgUMXQbDlJHO6XXCxt3HnpC7wwXIbweBYOLGSs4M1sG4w ZcfzBiwyZ2yPxXhSqDfcou/PpfkDsGsUZ+gXYK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MnaIzVCduKWm2QHv1gj2Et6E846vipngw4zYsOeMZJ1DH/ALtiTX6dzRfvyeWXRMV67+8W3 RYWh7kpcc1V8wuufQ3rULapGCRRD72H6x8NkNRJREvo7xDSaKlEcbGZqF3xYPCcykxVeQbw0 hZjFhggRAwS9g5nvcQtjmaRTmEFn04a8iU5nrlcaiZiA026SqV65S8ZAIq1kDL+5NkriaKlj zY3Ft1oxxlhnFcTBk4zP/PvGBZxOY35en4mWqGjeyljXqdg4IXpsbNmJDIiufcSofcSo/d+w ILwFbeY1OlWBSpepyVTzx+U6TqUrVRfI84pVdrTxOGmpXaizZU7eizAK9SKGwmWbxHWH9/AS cT73fhmvLX5LW6rkdb1oK0XIksRJwXP5ErqAK+Hf5XkNr/2PYlTCFj32qTP34ILzna/9bTMX PFd72hWGU2ek5aMmedbTWV1m5VnV86FrhZn20NDxMBbufCJP1VypHO43u9tzZw1yJvuiRR/Y ZSdfeKwvRdLWmPFKgPtpqSHljYD4KcuhVFej+rKkbGmIHVb3Gl/7a/+4edfI6qHbOdukkm3t ftNufmAtwq0nCovDzx7UU59/dPrDBt/RvUklzVyT1KS5kZPjatk5Gmg/XahWlH2pvvNe6rSt nyia304oRg/M/nEi+9jQyIHsGwM/ll9cLrn+TCQo3aeYL3YYj4yYPuYWku89vvdI8PuOpZfr cucmHza9+VDRtcM7U5Oe3vqqOyP5VFBTHwkldckIXSGXmYZrddy/l57xSKcDAAA= X-CMS-MailID: 20231023072726epcas2p22a956be89b7f25f9edf2faff418e507a X-Msg-Generator: CA Content-Type: multipart/mixed; boundary="----kpWfbNyO0dZ94JZMx8UaZzOLaVw4Eds-FlcQ7ND7-zj3ifPP=_5344b_" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20231012013524epcas2p4b50f306e3e4d0b937b31f978022844e5 References: <20230823131350.114942-1-alexandru.elisei@arm.com> <20230823131350.114942-7-alexandru.elisei@arm.com> <20231010074823.GA2536665@tiffany> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 00:27:53 -0700 (PDT) ------kpWfbNyO0dZ94JZMx8UaZzOLaVw4Eds-FlcQ7ND7-zj3ifPP=_5344b_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Tue, Oct 17, 2023 at 11:26:36AM +0100, Catalin Marinas wrote: > On Mon, Oct 16, 2023 at 01:41:15PM +0100, Alexandru Elisei wrote: > > On Thu, Oct 12, 2023 at 10:25:11AM +0900, Hyesoo Yu wrote: > > > I don't think it would be effcient when the majority of movable pages > > > do not use GFP_TAGGED. > > > > > > Metadata pages have a low probability of being in the pcp list > > > because metadata pages is bypassed when freeing pages. > > > > > > The allocation performance of most movable pages is likely to decrease > > > if only the request with ALLOC_FROM_METADATA could be allocated. > > > > You're right, I hadn't considered that. > > > > > > > > How about not including metadata pages in the pcp list at all ? > > > > Sounds reasonable, I will keep it in mind for the next iteration of the > > series. > > BTW, I suggest for the next iteration we drop MIGRATE_METADATA, only use > CMA and assume that the tag storage itself supports tagging. Hopefully > it makes the patches a bit simpler. > I am curious about the plan for the next iteration. Does tag storage itself supports tagging? Will the following version be unusable if the hardware does not support it? The document of google said that "If this memory is itself mapped as Tagged Normal (which should not happen!) then tag updates on it either raise a fault or do nothing, but never change the contents of any other page." (https://github.com/google/sanitizers/blob/master/mte-dynamic-carveout/spec.md) The support of H/W is very welcome because it is good to make the patches simpler. But if H/W doesn't support it, Can't the new solution be used? Thanks, Regards. > -- > Catalin > ------kpWfbNyO0dZ94JZMx8UaZzOLaVw4Eds-FlcQ7ND7-zj3ifPP=_5344b_ Content-Type: text/plain; charset="utf-8" ------kpWfbNyO0dZ94JZMx8UaZzOLaVw4Eds-FlcQ7ND7-zj3ifPP=_5344b_--