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 1A663EB64D9 for ; Wed, 14 Jun 2023 10:42:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241093AbjFNKmD (ORCPT ); Wed, 14 Jun 2023 06:42:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243184AbjFNKli (ORCPT ); Wed, 14 Jun 2023 06:41:38 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 33AE31FD6; Wed, 14 Jun 2023 03:41:35 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 503AE1FB; Wed, 14 Jun 2023 03:42:19 -0700 (PDT) Received: from [10.57.74.148] (unknown [10.57.74.148]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B4D793F71E; Wed, 14 Jun 2023 03:41:33 -0700 (PDT) Message-ID: <57fefe22-440e-4ce1-2e34-5494f2cce893@arm.com> Date: Wed, 14 Jun 2023 11:41:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v1 0/2] Report on physically contiguous memory in smaps To: Yu Zhao Cc: Jonathan Corbet , Andrew Morton , "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230613160950.3554675-1-ryan.roberts@arm.com> From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/06/2023 19:44, Yu Zhao wrote: > On Tue, Jun 13, 2023 at 05:09:48PM +0100, Ryan Roberts wrote: >> Hi All, >> >> I thought I would try my luck with this pair of patches... > > Ack on the idea. > > Actually I have a script to do just this, but it's based on pagemap (attaching the script at the end). I did consider that approach, but it was much more code to write the script than to modify smaps ;-). Longer term, I think it would be good to have it in smaps because its more accessible. For the contpte case we would need to add a bit to every pagemap entry to express that. I'm not sure how palletable that would be for a arch-specific thing? Thanks for the script anyway!