From: Andrew Morton <akpm@linux-foundation.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Mel Gorman <mel@csn.ul.ie>,
Markus Rechberger <mrechberger@gmail.com>,
LKML <linux-kernel@vger.kernel.org>, Greg KH <greg@kroah.com>
Subject: Re: USBFS Memory allocation Bug
Date: Sun, 14 Mar 2010 19:31:14 -0400 [thread overview]
Message-ID: <20100314193114.619a2616.akpm@linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1003111155030.1367-100000@iolanthe.rowland.org>
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.
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.
next prev parent reply other threads:[~2010-03-15 2:32 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 [this message]
2010-03-15 9:36 ` Mel Gorman
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=20100314193114.619a2616.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mel@csn.ul.ie \
--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