lkml.org 
[lkml]   [1999]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: kmalloc()'ing greater than 128k
Date
> Indeed the maximum kmalloc() size is 128k. The maximum size of page
> allocations in 2.2 & 2.3 is 2MB, you should use __get_free_page() &
> free_page().
I assume this allocates single pages (1024 bytes) and I would need to use
__get_free_pages() specifying the best fit. I'll need to track the
allocations though so when it comes to free_page()'ing I use the right
'order' value.

> But vmalloc() should really work just fine, as long as you do
> not try to DMA into it without being careful.
No DMA involved.

> What kernel shows this 'crawling' behavior?
I'm RedHat'ing with 2.2.5-15.

> kmalloc() allocates physically continuous memory as well.
So what are the chances of kmalloc(102400) x 3 and the three malloc'ed areas
being continuous :)?

Thanks,
L

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.090 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site