linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
To: cl@linux.com
Cc: linux-mm@kvack.org
Subject: Re: mm/slab: What is cache_reap work for?
Date: Tue, 4 Jul 2017 22:15:21 +0900	[thread overview]
Message-ID: <201707042215.ICG90672.FStFMFQOHLOOJV@I-love.SAKURA.ne.jp> (raw)
In-Reply-To: <alpine.DEB.2.20.1706300856530.3291@east.gentwo.org>

Christoph Lameter wrote:
> On Tue, 27 Jun 2017, Tetsuo Handa wrote:
> 
> > I hit an unable to invoke the OOM killer lockup shown below. According to
> > "cpus=2 node=0 flags=0x0 nice=0" part, it seems that cache_reap (in mm/slab.c)
> > work stuck waiting for disk_events_workfn (in block/genhd.c) work to complete.
> 
> Cache reaping in SLAB is the expiration of objects since they are deemed
> to be cache cold after while. Reaping is a tick driven worker thread that
> calls other functions that are used during regular slab allocation and
> freeing. Maybe someone added code that can cause deadlocks if invoked from
> the tick?

Thank you for explanation. What I observed is that it seems that
cache_reap work was not able to run because it used system_wq when
the system was unable to allocate memory for new worker thread due to
infinite too_many_isolated() loop in shrink_inactive_list().

I wondered whether cache_reap work qualifies as an mm_percpu_wq user
if cache_reap work does something like what vmstat_work work does (e.g.
update statistic counters which affect progress of memory allocation).
But "calls other functions that are used during regular slab allocation"
means cache_reap work cannot qualify as an mm_percpu_wq user...

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2017-07-04 13:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-27 10:35 Tetsuo Handa
2017-06-30 13:58 ` Christoph Lameter
2017-07-04 13:15   ` Tetsuo Handa [this message]
2017-07-05 14:08     ` Christoph Lameter
2017-07-06 12:48       ` Tetsuo Handa

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=201707042215.ICG90672.FStFMFQOHLOOJV@I-love.SAKURA.ne.jp \
    --to=penguin-kernel@i-love.sakura.ne.jp \
    --cc=cl@linux.com \
    --cc=linux-mm@kvack.org \
    /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