From: Mel Gorman <mel@csn.ul.ie>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Alan Stern <stern@rowland.harvard.edu>,
Markus Rechberger <mrechberger@gmail.com>,
LKML <linux-kernel@vger.kernel.org>, Greg KH <greg@kroah.com>
Subject: Re: USBFS Memory allocation Bug
Date: Mon, 15 Mar 2010 09:36:34 +0000 [thread overview]
Message-ID: <20100315093634.GF18274@csn.ul.ie> (raw)
In-Reply-To: <20100314193114.619a2616.akpm@linux-foundation.org>
On Sun, Mar 14, 2010 at 07:31:14PM -0400, Andrew Morton wrote:
> On Thu, 11 Mar 2010 11:56:22 -0500 (EST) Alan Stern <stern@rowland.harvard.edu> wrote:
>
> > On Wed, 10 Mar 2010, Mel Gorman wrote:
> >
> > > > > Is there any means for the driver to take the large request, break it up
> > > > > into multiple smaller requests and submit them one at a time?
> > > >
> > > > In theory almost anything is possible. But it would be a big effort
> > > > and not consistent with the way the rest of the driver works.
> > > >
> > >
> > > Then about the only other suggestion would be a mempool containing a small
> > > number of largest-possible buffers that is enabled if there is no swap
> > > available.
> >
> > Considering that this is the first report I have heard about this sort
> > of problem, and that adding swap space would probably fix it, I'm not
> > inclined to make any changes.
>
> Adding swap space is unlikely to help here. For an order-6 allocation
> the page allocator will go into wtf-youre-kidding-me mode and won't
> even bother trying.
>
It will try and make the allocation and probably enter direct reclaim
and do a lumpy reclaim for contiguous blocks. What it won't do is retry
as many times as an allocation order <= PAGE_ALLOC_COSTLY_ORDER.
> Asking the allocator for 2^6 physically contiguous pages is terribly
> unreliable and shouldn't be done by any kernel code which wants to be
> useful.
>
This remains true. With swap, the high-order allocation attempt might succeed
many of the times but there will still be situations where it fails.
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
next prev parent reply other threads:[~2010-03-15 9:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 21:09 USBFS Memory allocation Bug Markus Rechberger
2010-03-09 22:31 ` Alan Stern
2010-03-09 23:32 ` Markus Rechberger
2010-03-10 3:13 ` Alan Stern
2010-03-10 9:33 ` Markus Rechberger
2010-03-10 15:04 ` Alan Stern
2010-03-10 13:57 ` Mel Gorman
2010-03-10 15:16 ` Alan Stern
2010-03-10 15:21 ` Mel Gorman
2010-03-10 15:49 ` Alan Stern
2010-03-10 15:55 ` Mel Gorman
2010-03-11 16:56 ` Alan Stern
2010-03-14 23:31 ` Andrew Morton
2010-03-15 9:36 ` Mel Gorman [this message]
2010-03-15 13:57 ` Alan Stern
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=20100315093634.GF18274@csn.ul.ie \
--to=mel@csn.ul.ie \
--cc=akpm@linux-foundation.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mrechberger@gmail.com \
--cc=stern@rowland.harvard.edu \
/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