[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpX2P_NWeR_FTZOcL96Gd0TwDLZY1=X_AeUpYuX=pPE-ew@mail.gmail.com>
Date: Thu, 30 Jan 2020 14:52:13 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: Michal Hocko <mhocko@...nel.org>
Cc: Matthew Wilcox <willy@...radead.org>,
LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-mm <linux-mm@...ck.org>, Mel Gorman <mgorman@...e.de>,
Vlastimil Babka <vbabka@...e.cz>
Subject: Re: [PATCH] mm: avoid blocking lock_page() in kcompactd
On Tue, Jan 28, 2020 at 11:44 AM Cong Wang <xiyou.wangcong@...il.com> wrote:
>
> On Tue, Jan 28, 2020 at 3:39 AM Michal Hocko <mhocko@...nel.org> wrote:
> >
> > On Tue 28-01-20 02:48:57, Matthew Wilcox wrote:
> > > Doesn't the stack trace above indicate that we're doing migration as
> > > the result of an allocation in add_to_page_cache_lru()?
> >
> > Which stack trace do you refer to? Because the one above doesn't show
> > much more beyond mem_cgroup_iter and likewise others in this email
> > thread. I do not really remember any stack with lock_page on the trace.
>
> I think the page is locked in add_to_page_cache_lru() by
> __SetPageLocked(), as the stack trace shows __add_to_page_cache_locked().
> It is not yet unlocked, as it is still looping inside try_charge().
>
> I will write a script to see if I can find the longest time spent in reclaim
> as you suggested.
After digging the changelog, I believe the following commit could fix
the problem:
commit f9c645621a28e37813a1de96d9cbd89cde94a1e4
Author: Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>
Date: Mon Sep 23 15:37:08 2019 -0700
memcg, oom: don't require __GFP_FS when invoking memcg OOM killer
which is not yet in our 4.19 branch yet. We will sync with 4.19 stable soon.
Thanks.
Powered by blists - more mailing lists