From: Michal Hocko <mhocko@kernel.org>
To: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Cc: "Huang, Ying" <ying.huang@intel.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
"Zi Yan" <ziy@nvidia.com>,
"Andrea Arcangeli" <aarcange@redhat.com>,
"Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>,
"Vlastimil Babka" <vbabka@suse.cz>,
"Alexey Dobriyan" <adobriyan@gmail.com>,
"J�r�me Glisse" <jglisse@redhat.com>,
"Yang Shi" <yang.shi@linux.alibaba.com>
Subject: Re: [PATCH -V2] /proc/PID/smaps: Add PMD migration entry parsing
Date: Thu, 2 Apr 2020 10:58:13 +0200 [thread overview]
Message-ID: <20200402085813.GN22681@dhcp22.suse.cz> (raw)
In-Reply-To: <a8b089b7-75a8-327c-0418-a5209af0571b@yandex-team.ru>
On Thu 02-04-20 11:29:09, Konstantin Khlebnikov wrote:
>
>
> On 02/04/2020 11.21, Michal Hocko wrote:
> > On Thu 02-04-20 16:10:29, Huang, Ying wrote:
> > > Michal Hocko <mhocko@kernel.org> writes:
> > >
> > > > On Thu 02-04-20 15:03:23, Huang, Ying wrote:
> > [...]
> > > > > > Could you explain why do we need this WARN_ON? I haven't really checked
> > > > > > the swap support for THP but cannot we have normal swap pmd entries?
> > > > >
> > > > > I have some patches to add the swap pmd entry support, but they haven't
> > > > > been merged yet.
> > > > >
> > > > > Similar checks are for all THP migration code paths, so I follow the
> > > > > same style.
> > > >
> > > > I haven't checked other migration code paths but what is the reason to
> > > > add the warning here? Even if this shouldn't happen, smaps is perfectly
> > > > fine to ignore that situation, no?
> > >
> > > Yes. smaps itself is perfectly fine to ignore it. I think this is used
> > > to find bugs in other code paths such as THP migration related.
> >
> > Please do not add new warnings without a good an strong reasons. As a
> > matter of fact there are people running with panic_on_warn and each
> > warning is fatal for them. Please also note that this is a user trigable
> > path and that requires even more care.
> >
>
> But this should not happen and if it does we'll never know without debug.
The migration path which already deals with this will notice, right?
Those are paths which really care about consistency.
> VM_WARN_ON checks something only if build with CONFIG_DEBUG_VM=y.
>
> Anybody who runs debug kernels with panic_on_warn shouldn't expect much stability =)
That doesn't mean we should be adding warnings here and there nilly
willy.
--
Michal Hocko
SUSE Labs
next prev parent reply other threads:[~2020-04-02 8:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-02 2:00 Huang, Ying
2020-04-02 6:44 ` Michal Hocko
2020-04-02 7:03 ` Huang, Ying
2020-04-02 7:44 ` Michal Hocko
2020-04-02 8:10 ` Huang, Ying
2020-04-02 8:21 ` Michal Hocko
2020-04-02 8:27 ` Huang, Ying
2020-04-02 8:29 ` Konstantin Khlebnikov
2020-04-02 8:58 ` Michal Hocko [this message]
2020-04-02 15:52 ` Yang Shi
2020-04-02 12:53 ` Kirill A. Shutemov
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=20200402085813.GN22681@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=aarcange@redhat.com \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=jglisse@redhat.com \
--cc=khlebnikov@yandex-team.ru \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=vbabka@suse.cz \
--cc=yang.shi@linux.alibaba.com \
--cc=ying.huang@intel.com \
--cc=ziy@nvidia.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