[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1371659333.3252.329.camel@edumazet-glaptop>
Date: Wed, 19 Jun 2013 09:28:53 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Laight <David.Laight@...LAB.COM>
Cc: "Michael S. Tsirkin" <mst@...hat.com>,
Jason Wang <jasowang@...hat.com>, davem@...emloft.net,
edumazet@...gle.com, hkchu@...gle.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: RE: [net-next rfc 1/3] net: avoid high order memory allocation for
queues by using flex array
On Wed, 2013-06-19 at 17:06 +0100, David Laight wrote:
> Given the number of places I've seen this code added, why
> not put it in a general helper?
Good luck with that. We had many attempts in the past.
> I also thought that malloc() with GFP_KERNEL would sleep.
> Under what conditions does it fail instead?
For example on 32 bit kernel, LOW memory exhaustion/fragmentation.
vmalloc() has an extra 128MB virtual space (on i386 at least with
standard 3G/1G split)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists