Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp764886imi; Fri, 22 Jul 2022 09:00:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uGrIFYhJf6/z7GKksfj8OCxXdh+eDJbyzkBJtnDvJevpIA2JegLGPnWdOo2d6CLrR4eUi3 X-Received: by 2002:a17:903:2308:b0:16c:58a3:638e with SMTP id d8-20020a170903230800b0016c58a3638emr270860plh.100.1658505637177; Fri, 22 Jul 2022 09:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658505637; cv=none; d=google.com; s=arc-20160816; b=dQuxOO2uz+Kzmp7l5KzNFE/SLTLjk5Y6Td5V15zUlfLqa5IN6Fvc5QDaOItNkljcHc 0I5n973onxjRRBV+Ark+dps3oP8tY0I6W+XRkNMpVIqqChG7EPxd6H9it7qS/VMEClAB 6/XZwA1Y0GK/OSgWgoai1M3jAWSjs6WNg+xBR8ns8K/4nO7a0V46hCjkc/EnyU+6ikNQ cRoc6Fr2ZIUCEWmQ0cejmiCf8tEbfZjWmrbIIgt2tcrYnpmwSKDsxdHTd6z1w3PkuU9n GETOAekY81P5uS1wP6HRgBT1Qmzopb9d7DMPC35ZEHRwwhjn+3jTphigeuBPdfnqHosx lChA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mPAaLzKrMkLU/j896UlfyBtfiHZAkgGnP04Whg2NtOg=; b=Qvn9RksZ0U/t6Joha58B/Jl47vFwlfROQdjG3Mg23Kv7sykQ8nrT0NnmZbDpIx9MMo bW4HQNLiElWrhsLd0aq2AjFFW+qykDDxABKiiGwj3S3j8+zQ2J/iXkTzDyL2NdqBqldW t5tQBGl5wc2J/x6RKDKQ/4QjDA0/qALEOGgAdm2xcy65eq96ESfSx7fgBPWmyPSxn5dP jdegztkyoo4Zd5R+YXIoyVOhW67gxSCIPhO0zxj96bt4hGvFlsozjOYY/PPemc8E7Wzp CSAGEcK3NCxX6PCUTZQCKyxokAqcbuchaFE5RV5lum+SBAE+6TY7rGXzEOSMk+kmBpUg OHvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=l4osDtjE; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a17090a920200b001f2166f6dffsi8940026pjo.68.2022.07.22.09.00.13; Fri, 22 Jul 2022 09:00:37 -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=@infradead.org header.s=casper.20170209 header.b=l4osDtjE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234947AbiGVPiZ (ORCPT + 99 others); Fri, 22 Jul 2022 11:38:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiGVPiY (ORCPT ); Fri, 22 Jul 2022 11:38:24 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 791D213E11 for ; Fri, 22 Jul 2022 08:38:23 -0700 (PDT) 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=mPAaLzKrMkLU/j896UlfyBtfiHZAkgGnP04Whg2NtOg=; b=l4osDtjE0GmEvzuUlYNsmG/MI5 tetjI/Dgh0iTmOZvSOSuQjMxiiGldA/ZpitljGNfD2qq0d9TK0eJt6cr7a0olSjXxG+Fgus2gnWp3 p9x8xY89IuJkW7/G1igBgvf3WdNj7XM1ykqsQeXKWJfrDa7puF6m8ZEN/3lcskhJwIqYm1PCZ9YvH mZw+TCnmhCsI+QEOVBpFcCkYDlscHS6znPQcp/yLjGJeuVGI/JIhsgFUZLnaFvDjye4+BdA4u2CiA 0YOSU6D9w6YnacN/tY5sxYR0+pDAcvnX/b5rA+8J2L8y9a/g2QdqOYFePbVphGgyQ2B8IWZnp99ap gADC30uQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEuj6-00GPvC-Mg; Fri, 22 Jul 2022 15:38:04 +0000 Date: Fri, 22 Jul 2022 16:38:04 +0100 From: Matthew Wilcox To: Kassey Li Cc: akpm@linux-foundation.org, minchan@kernel.org, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm/page_owner.c: allow page_owner with given start_pfn/count Message-ID: References: <20220722150810.27740-1-quic_yingangl@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220722150810.27740-1-quic_yingangl@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Fri, Jul 22, 2022 at 11:08:10PM +0800, Kassey Li wrote: > by default, page_owner iterates all page from min_low_pfn to > max_pfn, this cost too much time if we want an alternative pfn range. > > with this patch it allows user to set pfn range to dump the page_onwer. This is a really bad UI. If two users try to do different ranges at the same time, it'll go wrong. What use cases are you actually trying to solve?