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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 9 Mar 2021 09:15:11 -0800
From:   Minchan Kim <minchan@...nel.org>
To:     David Hildenbrand <david@...hat.com>
Cc:     Michal Hocko <mhocko@...e.com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        linux-mm <linux-mm@...ck.org>,
        LKML <linux-kernel@...r.kernel.org>, joaodias@...gle.com,
        surenb@...gle.com, cgoldswo@...eaurora.org, willy@...radead.org,
        vbabka@...e.cz, linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] mm: disable LRU pagevec during the migration
 temporarily

On Tue, Mar 09, 2021 at 05:31:09PM +0100, David Hildenbrand wrote:
> 
> > > > Signed-off-by: Minchan Kim <minchan@...nel.org>
> > > > ---
> > > > * from v1 - https://lore.kernel.org/lkml/20210302210949.2440120-1-minchan@kernel.org/
> > > >    * introduce __lru_add_drain_all to minimize changes - mhocko
> > > >    * use lru_cache_disable for memory-hotplug
> > > >    * schedule for every cpu at force_all_cpus
> > > > 
> > > > * from RFC - http://lore.kernel.org/linux-mm/20210216170348.1513483-1-minchan@kernel.org
> > > >    * use atomic and lru_add_drain_all for strict ordering - mhocko
> > > >    * lru_cache_disable/enable - mhocko
> > > > 
> > > >   include/linux/migrate.h |  6 ++-
> > > >   include/linux/swap.h    |  2 +
> > > >   mm/memory_hotplug.c     |  3 +-
> > > >   mm/mempolicy.c          |  6 +++
> > > >   mm/migrate.c            | 13 ++++---
> > > >   mm/page_alloc.c         |  3 ++
> > > >   mm/swap.c               | 82 +++++++++++++++++++++++++++++++++--------
> > > >   7 files changed, 91 insertions(+), 24 deletions(-)
> > > 
> > > Sorry for nit picking but I think the additional abstraction for
> > > migrate_prep is not really needed and we can remove some more code.
> > > Maybe we should even get rid of migrate_prep_local which only has a
> > > single caller and open coding lru draining with a comment would be
> > > better from code reading POV IMO.
> > 
> > Thanks for the code. I agree with you.
> > However, in this moment, let's go with this one until we conclude.
> > The removal of migrate_prep could be easily done after that.
> > I am happy to work on it.
> 
> Can you prepare + send along these cleanups so we can have a look at the end
> result?
> 
> (either cleanups before or after your changes - doing cleanups before might
> be cleaner as we are not dealing with a fix here that we want to backport)

Okay, let me try one more time.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ