lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK1f24m2fR5EynwBN64Nuhcgctbd2RLXjLx7W_H+uywKLLO+cQ@mail.gmail.com>
Date: Thu, 25 Apr 2024 12:19:45 +0800
From: Lance Yang <ioworker0@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Matthew Wilcox <willy@...radead.org>, maskray@...gle.com, ziy@...dia.com, 
	ryan.roberts@....com, david@...hat.com, 21cnbao@...il.com, mhocko@...e.com, 
	fengwei.yin@...el.com, zokeefe@...gle.com, shy828301@...il.com, 
	xiehuan09@...il.com, wangkefeng.wang@...wei.com, songmuchun@...edance.com, 
	peterx@...hat.com, minchan@...nel.org, linux-mm@...ck.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/1] mm/vmscan: avoid split PMD-mapped THP during shrink_folio_list()

On Thu, Apr 25, 2024 at 5:20 AM Andrew Morton <akpm@...ux-foundation.org> wrote:
>
> On Wed, 24 Apr 2024 23:46:59 +0800 Lance Yang <ioworker0@...il.com> wrote:
>
> > On Wed, Apr 24, 2024 at 12:15 PM Matthew Wilcox <willy@...radead.org> wrote:
> > >
> > > On Mon, Apr 22, 2024 at 01:52:13PM +0800, Lance Yang wrote:
> > > > When the user no longer requires the pages, they would use
> > > > madvise(MADV_FREE) to mark the pages as lazy free. IMO, they would not
> > > > typically rewrite to the given range.
> > > >
> > > > At present, PMD-mapped THPs that are marked as lazyfree during
> > > > shrink_folio_list() are unconditionally split, which may be unnecessary.
> > > > If the THP is clean, its PMD is also clean, and there are no unexpected
> >
> > "If the THP is clean, its PMD is also clean" can be confusing - sorry. It should
> > be modified to "If the THP and its PMD are both marked as clean".
>
> I made that changelog edit.

Thanks for updating, Andrew!
Lance

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ