mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vlastimil Babka (SUSE)" <vbabka@kernel.org>
To: Aveline Noir <jm5905938@gmail.com>, Muchun Song <muchun.song@linux.dev>
Cc: Ackerley Tng <ackerleytng@google.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	David Hildenbrand <david@kernel.org>,
	Zhao Li <enderaoelyther@gmail.com>,
	Joshua Hahn <joshua.hahnjy@gmail.com>,
	Karl Mehltretter <kmehltretter@gmail.com>,
	"Liam R. Howlett" <liam@infradead.org>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Michal Hocko <mhocko@suse.com>,
	Oscar Salvador <osalvador@suse.de>,
	Omar Sandoval <osandov@osandov.com>,
	Mike Rapoport <rppt@kernel.org>,
	Usama Arif <usama.arif@linux.dev>,
	Jinmeng Zhou <zhoujinmeng@bytedance.com>
Subject: Re: [PATCH] tools/mm: add a drgn script to show HugeTLB reservations
Date: Fri, 27 Nov 2026 19:55:45 +0100	[thread overview]
Message-ID: <43b57ca6-cffe-4fc8-9622-c3e3645d2976@kernel.org> (raw)
In-Reply-To: <179578806997.38.3754686117717776990.b4-reply@b4>

On 11/27/26 15:01, Aveline Noir wrote:
> Hi Muchun,
> 
> On Fri, 27 Nov 2026 19:30:04 +0800 Muchun Song wrote:
> 
>> The Dragon project itself probably belongs to this type of script? See
>> here:
>>
>>     https://github.com/osandov/drgn/tree/main/scripts
> 
> Thanks for the suggestion! There was a similar discussion when
> show_page_info.py was proposed for tools/mm/:
> 
> https://lore.kernel.org/r/aACaf4_molKromnT@telecaster
> 
> That's mainly why I sent it to the kernel tree instead. Having it close
> to the code it inspects should make it easier to keep the checks in sync
> as HugeTLB reservation accounting changes, so it felt like a better fit
> here. What do you think?

IMHO it's better if the support is part of drgn itself and can be adjusted
with kernel changes while still supporting older kernels at the same time,
and automatically detecting which scheme applies (not from version, but from
what fields exist or not in the relevant structs, etc). Like e.g. the crash
tool does. Yeah the scripts are then more complex, but it's much easier for
the user, who doesn't need to fish for the right kernel version's scripts.
Which may anyway become out of sync because nobody notices, and are only
fixed in a later version.

> Thanks,
> Aveline Noir


      reply	other threads:[~2026-11-27 18:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 11:21 Aveline Noir
2026-11-27 11:30 ` Muchun Song
2026-11-27 14:01   ` Aveline Noir
2026-11-27 18:55     ` Vlastimil Babka (SUSE) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43b57ca6-cffe-4fc8-9622-c3e3645d2976@kernel.org \
    --to=vbabka@kernel.org \
    --cc=ackerleytng@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=enderaoelyther@gmail.com \
    --cc=jm5905938@gmail.com \
    --cc=joshua.hahnjy@gmail.com \
    --cc=kmehltretter@gmail.com \
    --cc=liam@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=muchun.song@linux.dev \
    --cc=osalvador@suse.de \
    --cc=osandov@osandov.com \
    --cc=rppt@kernel.org \
    --cc=usama.arif@linux.dev \
    --cc=zhoujinmeng@bytedance.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®