linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Janos Toth F." <toth.f.janos@gmail.com>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: [Bug 186671] New: OOM on system with just rsync running 32GB of ram 30GB of pagecache
Date: Fri, 18 Nov 2016 13:13:03 +0100	[thread overview]
Message-ID: <CANznX5G_UmUpH4U6S8qWcrKt5q9zNOLdkHwPuj7pxgoUocrFeg@mail.gmail.com> (raw)
In-Reply-To: <4c85dfa5-9dbe-ea3c-7816-1ab321931e1c@suse.cz>

It could be totally unrelated but I have a similar problem: processes
get randomly OOM'd when I am doing anything "sort of heavy" on my
Btrfs filesystems.
I did some "evil tuning", so I assumed that must be the problem (even
if the values looked sane for my system). Thus, I kept cutting back on
the manually set values (mostly dirty/background ratio, io scheduler
request queue size and such tunables) but it seems to be a dead end. I
guess anything I change in order to try and cut back on the related
memory footprint just makes the OOMs less frequent but it's only a
matter of time and coincidence (lots of things randomly happen to do
some notable amount of IO) until OOMs happen anyway.
It seems to be plenty enough to start a defrag or balance on more than
a single filesystem (in parallel) and pretty much any notable "useful"
user load will have a high change of triggering OOMs (and get killed)
sooner or later. It's just my limited observation but database-like
loads [like that of bitcoind] (sync writes and/or frequent flushes?)
or high priority buffered writes (ffmpeg running with higher than
default priority and saving live video streams into files without
recoding) seem to have higher chance of triggering this (more so than
simply reading or writing files sequentially and asynchronously,
either locally or through Samba).
I am on gentoo-sources 4.8.8 right now but it was there with 4.7.x as well.

On Thu, Nov 17, 2016 at 10:49 PM, Vlastimil Babka <vbabka@suse.cz> wrote:
> On 11/16/2016 02:39 PM, E V wrote:
>> System panic'd overnight running 4.9rc5 & rsync. Attached a photo of
>> the stack trace, and the 38 call traces in a 2 minute window shortly
>> before, to the bugzilla case for those not on it's e-mail list:
>>
>> https://bugzilla.kernel.org/show_bug.cgi?id=186671
>
> The panic screenshot has only the last part, but the end marker says
> it's OOM with no killable processes. The DEBUG_VM config thus didn't
> trigger anything, and still there's tons of pagecache, mostly clean,
> that's not being reclaimed.
>
> Could you now try this?
> - enable CONFIG_PAGE_OWNER
> - boot with kernel option: page_owner=on
> - after the first oom, "cat /sys/kernel/debug/page_owner > file"
> - provide the file (compressed, it will be quite large)
>
> Vlastimil
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2016-11-18 12:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-186671-27@https.bugzilla.kernel.org/>
     [not found] ` <20161103115353.de87ff35756a4ca8b21d2c57@linux-foundation.org>
2016-11-03 23:58   ` [Bug 186671] New: OOM on system with just rsync running 32GB of ram 30GB of pagecache Vlastimil Babka
2016-11-04 14:13     ` E V
2016-11-04 21:00       ` Vlastimil Babka
2016-11-14 13:27         ` E V
2016-11-14 17:04           ` Vlastimil Babka
2016-11-14 20:56             ` E V
2016-11-16 13:39               ` E V
2016-11-17 21:49                 ` Vlastimil Babka
2016-11-18 11:54                   ` Tetsuo Handa
2016-11-18 15:02                     ` E V
2016-11-22 13:58                       ` E V
2016-11-22 14:48                         ` Vlastimil Babka
2016-11-25 14:06                           ` E V
2016-11-18 12:13                   ` Janos Toth F. [this message]

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=CANznX5G_UmUpH4U6S8qWcrKt5q9zNOLdkHwPuj7pxgoUocrFeg@mail.gmail.com \
    --to=toth.f.janos@gmail.com \
    --cc=linux-btrfs@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).