linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Yin, Fengwei" <fengwei.yin@intel.com>
To: Matthew Wilcox <willy@infradead.org>, Yang Shi <shy828301@gmail.com>
Cc: "Yu Zhao" <yuzhao@google.com>, "Minchan Kim" <minchan@kernel.org>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	Linux-MM <linux-mm@kvack.org>, 韩天硕 <hantianshuo@iie.ac.cn>,
	mawupeng <mawupeng1@huawei.com>
Subject: Re: (resend)WARNING: trying to isolate tail page in isolate_lru_page
Date: Fri, 26 Aug 2022 11:20:58 +0800	[thread overview]
Message-ID: <ffd043b9-8cc6-4b94-7e9f-a697669f16ac@intel.com> (raw)
In-Reply-To: <YwfDfwbG+azWhzDG@casper.infradead.org>



On 8/26/2022 2:46 AM, Matthew Wilcox wrote:
>>> Looks like my analysis from yesterday was dropped:
>>>
>>> : This all seems quite plausible.  The reproducer seems to (correct me
>>> : if I'm wrong) create an AF_PACKET socket and mmap it.  af_packet.c
>>> : seems to create compound pages and mmap them.  This isn't folio-related
>>> : at all; I just moved the code that warns about it from mm/vmscan.c to
>>> : folio-compat.c.
>>> :
>>> : Looks like a long-standing bug in MADV_PAGEOUT to me.
>> Such page should never be on lru, right? We could test lru before
>> calling isolate_lru_page() for this case? I know isolate_lru_page()
>> does the check, but the tail page warning is raised before the check.
>>
>> Could the tail page warning be moved under the lru flag test? Seems
>> possible, but it should need extra handling (re-set lru flag). Seems a
>> little bit overkilling.
> There's a number of ways of solving this.  I'm interested in seeing
> which one Minchan thinks is best.
> 

My understanding is:
PageTransCompound() return false for compound page if THP is disabled
in kernel config. Replacing PageTransCompound() with PageCompound() 
could work here. But for the long term, folio should be the answer. :).


Regards
Yin, Fengwei



  reply	other threads:[~2022-08-26  3:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-25 14:40 韩天硕
2022-08-25 16:50 ` Yu Zhao
2022-08-25 18:23   ` Matthew Wilcox
2022-08-25 18:37     ` Yu Zhao
2022-08-25 18:40     ` Yang Shi
2022-08-25 18:46       ` Matthew Wilcox
2022-08-26  3:20         ` Yin, Fengwei [this message]
2022-08-26 16:56           ` Minchan Kim
2022-08-26 18:23             ` Yang Shi
2022-08-26 22:58               ` Minchan Kim
2022-08-27  0:48             ` Yin, Fengwei
2022-08-26 17:15           ` Matthew Wilcox
2022-08-26 17:27             ` Yu Zhao
2022-08-26 17:53               ` Minchan Kim
2022-08-26 17:58                 ` Yu Zhao
2022-08-26 18:02                 ` Matthew Wilcox
2022-08-26 18:19                 ` Yang Shi
2022-08-26 23:12                   ` Minchan Kim
2022-08-27  0:24             ` Yin, Fengwei

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=ffd043b9-8cc6-4b94-7e9f-a697669f16ac@intel.com \
    --to=fengwei.yin@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=hantianshuo@iie.ac.cn \
    --cc=linux-mm@kvack.org \
    --cc=mawupeng1@huawei.com \
    --cc=minchan@kernel.org \
    --cc=shy828301@gmail.com \
    --cc=willy@infradead.org \
    --cc=yuzhao@google.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