All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislaw Gruszka <sgruszka@redhat.com>
To: Michal Hocko <mhocko@kernel.org>
Cc: David Rientjes <rientjes@google.com>,
	Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
	akpm@linux-foundation.org, linux-mm@kvack.org,
	hannes@cmpxchg.org
Subject: Re: [PATCH] mm,page_alloc: Split stall warning and failure warning.
Date: Mon, 24 Apr 2017 15:06:38 +0200	[thread overview]
Message-ID: <20170424130634.GA6267@redhat.com> (raw)
In-Reply-To: <20170424084216.GB1739@dhcp22.suse.cz>

On Mon, Apr 24, 2017 at 10:42:17AM +0200, Michal Hocko wrote:
> On Sat 22-04-17 10:10:34, Stanislaw Gruszka wrote:
> [...]
> > > This whole special casing
> > > of debug_guardpage_minorder is just too strange to me. We do have a rate
> > > limit to not flood the log.
> > 
> > I added this check to skip warning if buddy allocator fail, what I
> > considered likely scenario taking the conditions. The check remove
> > warning completely, rate limit only limit the speed warnings shows in
> > logs.
> 
> Yes and this is what I argue against. The feature limits the amount of
> _usable_ memory and as such it changes the behavior of the allocator
> which can lead to all sorts of problems (including high memory pressure,
> stalls, OOM etc.). The warning is there to help debug all those
> problems and removing it just changes that behavior in an unexpected
> way. This is just wrong thing to do IMHO. Even worse so when it
> motivates to make other code in the allocator more complicated.

Allocation problems when using debug_guardpage_minorder should not be
motivation to any mm change. This option is debug only (as name should
suggest already). It purpose is to debug drivers/code that corrupt
memory at random places, it is expected it will cause allocations
problems.

> If there
> is really a problem logs flooded by the allocation failures while using
> the guard page we should address it by a more strict ratelimiting.

Ok, make sense.

Stanislaw

--
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-04-24 13:06 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-10 11:58 [PATCH] mm,page_alloc: Split stall warning and failure warning Tetsuo Handa
2017-04-10 12:39 ` Michal Hocko
2017-04-10 14:23   ` Tetsuo Handa
2017-04-10 22:03 ` Andrew Morton
2017-04-11  7:15   ` Michal Hocko
2017-04-11 11:43     ` Tetsuo Handa
2017-04-11 11:54       ` Michal Hocko
2017-04-11 13:26         ` Tetsuo Handa
2017-04-17 22:48   ` David Rientjes
2017-04-18 11:49     ` Tetsuo Handa
2017-04-18 12:14       ` Michal Hocko
2017-04-18 21:47       ` David Rientjes
2017-04-19 11:13         ` Michal Hocko
2017-04-19 13:22           ` Stanislaw Gruszka
2017-04-19 13:33             ` Michal Hocko
2017-04-22  8:10               ` Stanislaw Gruszka
2017-04-24  8:42                 ` Michal Hocko
2017-04-24 13:06                   ` Stanislaw Gruszka [this message]
2017-04-24 15:06                     ` Tetsuo Handa
2017-04-25  6:36                       ` Stanislaw Gruszka
2017-04-19 22:34             ` David Rientjes
2017-04-20 11:46         ` 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=20170424130634.GA6267@redhat.com \
    --to=sgruszka@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    --cc=rientjes@google.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.