public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Galbraith <efault@gmx.de>
To: Al Boldi <a1426z@gawab.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: swapping and oom-killer: gfp_mask=0x201d2, order=0
Date: Sat, 13 May 2006 14:54:07 +0200	[thread overview]
Message-ID: <1147524848.9829.20.camel@homer> (raw)
In-Reply-To: <200605131511.05723.a1426z@gawab.com>

On Sat, 2006-05-13 at 15:11 +0300, Al Boldi wrote:
> Mike Galbraith wrote:
> > On Fri, 2006-05-12 at 15:17 +0300, Al Boldi wrote:
> > > Note that this is not specific to mem=8M, but rather a general oom
> > > observation even for mem=4G, where it is only much later to occur.
> >
> > An oom situation with 4G ram would be more interesting than this one.
> 
> Agreed, but can you tell me what readahead has to do with this oom?
> 
> oom-killer: gfp_mask=0x201d2, order=0
>  [<c013ff25>] out_of_memory+0xa5/0xc0
>  [<c0141099>] __alloc_pages+0x279/0x310
>  [<c0143669>] __do_page_cache_readahead+0xe9/0x120
>  [<c0143b3f>] max_sane_readahead+0x2f/0x50
>  [<c013d8cb>] filemap_nopage+0x2eb/0x370
>  [<c0149ea5>] do_no_page+0x65/0x220
>  [<c014a1dc>] __handle_mm_fault+0xec/0x200
>  [<c0113258>] do_page_fault+0x188/0x5c5
>  [<c01130d0>] do_page_fault+0x0/0x5c5
>  [<c0103a0f>] error_code+0x4f/0x54

Nothing except that it asked for a page at a bad time, triggering the
bad-hair-day reaction.  That being said, the readahead allocation mask
should have probably included GFP_NORETRY.  (though with 8MB, if the
readahead didn't get you, the subsequent read probably would anyway)

	-Mike


      reply	other threads:[~2006-05-13 12:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-11 12:14 swapping and oom-killer: gfp_mask=0x201d2, order=0 Al Boldi
2006-05-12  5:48 ` Mike Galbraith
2006-05-12 12:17   ` Al Boldi
2006-05-12 15:31     ` Mike Galbraith
2006-05-13 12:11       ` Al Boldi
2006-05-13 12:54         ` Mike Galbraith [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=1147524848.9829.20.camel@homer \
    --to=efault@gmx.de \
    --cc=a1426z@gawab.com \
    --cc=linux-kernel@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