From: Michal Hocko <mhocko@suse.com>
To: Minchan Kim <minchan@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Suren Baghdasaryan <surenb@google.com>,
Matthew Wilcox <willy@infradead.org>,
linux-mm <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] mm/madvise: add vmstat statistics for madvise_[cold|pageout]
Date: Mon, 30 Jan 2023 12:12:54 +0100 [thread overview]
Message-ID: <Y9emNtEK7z8G7G08@dhcp22.suse.cz> (raw)
In-Reply-To: <Y9SPv/QWqJ3t7w8J@google.com>
On Fri 27-01-23 19:00:15, Minchan Kim wrote:
[...]
> Then, let me ask back to you.
>
> What statistcis in the current vmstat fields or pending fields
> (to be merged) among accumulated counter stats sound reasonable
> to be part of vmstat fields not tracepoint from your perspective?
Most of those could be replaced but for historical reasons a counter was
an only solution back then. Some metrics make a lot of sense these days
as well. Regular snapshots of vmstat can give a nice overview of the
_system_ reclaim activity.
> Almost every stat would have corner cases by various reasons and
> people would want to know the reason from process, context, function
> or block scope depending on how they want to use the stat.
> Even, tracepoint you're loving couldn't tell all the detail what they want
> without adding more and more as on growing code chages.
Quite possible but tracepoints are much easier to modify and shape to a
particular need.
> However, unlike your worry, people has used such an high level vague
> vmstat fields very well to understand/monitor system health even though
> it has various miscounting cases since they know the corner cases
> are really minor.
>
> I am really curious what metric we could add in the vmstat instead of
> tracepoint in future if we follow your logic.
I would say that we should be more and more conservative when extending
vmstat counters and use tracing instead as much as possible. I can
imagine there could be cases where tracing is not a preferable option.
Then we can judge case by case. So far you have presented no real
argument, except you already collect vmstat on a larger scale and that
would be easier (essentially free from the tool modification POV). That
is a weak argument. Especially with a major design flaw already
mentioned.
I do not have much more to add here.
--
Michal Hocko
SUSE Labs
prev parent reply other threads:[~2023-01-30 11:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-25 0:54 Minchan Kim
2023-01-25 8:04 ` Michal Hocko
2023-01-25 16:36 ` Minchan Kim
2023-01-25 17:07 ` Michal Hocko
2023-01-25 18:07 ` Minchan Kim
2023-01-25 21:37 ` Michal Hocko
2023-01-25 22:21 ` Minchan Kim
2023-01-26 8:50 ` Michal Hocko
2023-01-26 8:51 ` Michal Hocko
2023-01-26 17:10 ` Minchan Kim
2023-01-26 19:58 ` Michal Hocko
2023-01-27 0:08 ` Minchan Kim
2023-01-27 9:48 ` Michal Hocko
2023-01-28 3:00 ` Minchan Kim
2023-01-30 11:12 ` Michal Hocko [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=Y9emNtEK7z8G7G08@dhcp22.suse.cz \
--to=mhocko@suse.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan@kernel.org \
--cc=surenb@google.com \
--cc=willy@infradead.org \
/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