* Re: [PATCH 3/12 2.4] e1000 - use vmalloc for data structures not shared with h/w [not found] <20040729192519.A6235@infradead.org> @ 2004-07-31 7:38 ` Herbert Xu 2004-08-04 16:48 ` Christoph Hellwig 0 siblings, 1 reply; 2+ messages in thread From: Herbert Xu @ 2004-07-31 7:38 UTC (permalink / raw) To: Christoph Hellwig; +Cc: ganesh.venkatesan, jgarzik, netdev, linux-kernel Christoph Hellwig <hch@infradead.org> wrote: > On Thu, Jul 29, 2004 at 11:17:08AM -0700, Venkatesan, Ganesh wrote: >> Vmalloc space is less scarce than kmalloc space. Am I right? This patch >> trades kmalloc space for vmalloc space. > > No, it's not. vmalloc needs virtual space that's rather limited (e.g. 64MB > on PAE x86) in addition to physical memory. Unless you do really big > allocations stay away from vmalloc. How big is really big? 64K? 256K? 1M? Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 3/12 2.4] e1000 - use vmalloc for data structures not shared with h/w 2004-07-31 7:38 ` [PATCH 3/12 2.4] e1000 - use vmalloc for data structures not shared with h/w Herbert Xu @ 2004-08-04 16:48 ` Christoph Hellwig 0 siblings, 0 replies; 2+ messages in thread From: Christoph Hellwig @ 2004-08-04 16:48 UTC (permalink / raw) To: Herbert Xu Cc: Christoph Hellwig, ganesh.venkatesan, jgarzik, netdev, linux-kernel On Sat, Jul 31, 2004 at 05:38:11PM +1000, Herbert Xu wrote: > > No, it's not. vmalloc needs virtual space that's rather limited (e.g. 64MB > > on PAE x86) in addition to physical memory. Unless you do really big > > allocations stay away from vmalloc. > > How big is really big? 64K? 256K? 1M? Well, the VM deals with big-order (aka bigger than page size) allocations rather bad, so for allocation during any I/O I'd stick to allocation smaller than that (and certainly no vmalloc!), for init-time allocations order 1 is fine, maybe even order 2 or three. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-04 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20040729192519.A6235@infradead.org>
2004-07-31 7:38 ` [PATCH 3/12 2.4] e1000 - use vmalloc for data structures not shared with h/w Herbert Xu
2004-08-04 16:48 ` Christoph Hellwig
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®