linux-mm.kvack.org archive mirror
 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: Sat, 22 Apr 2017 10:10:34 +0200	[thread overview]
Message-ID: <20170422081030.GA5476@redhat.com> (raw)
In-Reply-To: <20170419133339.GI29789@dhcp22.suse.cz>

On Wed, Apr 19, 2017 at 03:33:39PM +0200, Michal Hocko wrote:
> On Wed 19-04-17 15:22:16, Stanislaw Gruszka wrote:
> > On Wed, Apr 19, 2017 at 01:13:43PM +0200, Michal Hocko wrote:
> > > On Tue 18-04-17 14:47:32, David Rientjes wrote:
> > > [...]
> > > > I think the debug_guardpage_minorder() check makes sense for failed 
> > > > allocations because we are essentially removing memory from the system for 
> > > > debug, failed allocations as a result of low on memory or fragmentation 
> > > > aren't concerning if we are removing memory from the system.
> > > 
> > > I really fail to see how this is any different from booting with
> > > mem=$SIZE to reduce the amount of available memory.
> > 
> > mem= shrink upper memory limit, debug_guardpage_minorder= fragments
> > available physical memory (deliberately to catch unintended access).
> 
> Yeah but both make allocation failures (especially higher order ones)
> more likely. So I really fail to see the point inhibit allocation
> failure warning for one and not for the other.

There is difference for buddy allocator. If you limit to 1/2 of memory
such only upper half is not available, buddy allocator can easily find
pages for higher order allocations in lower half of memory.
When you limit to 1/2 of memory such every second page is not available,
buddy allocator can not make successful any order 1 or higher
allocations.

> 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.

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-22  8:17 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 [this message]
2017-04-24  8:42                 ` Michal Hocko
2017-04-24 13:06                   ` Stanislaw Gruszka
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=20170422081030.GA5476@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 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).