[lkml]   [1997]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectShould vmalloc and kmalloc be integrated?

Except for DMA buffer allocations (where contiguous memory is needed)
vmalloc and kmalloc are equivally correct to use. There is allready a
DMA priority in the linux kernel for kmalloc so it can detect that

Considering that several systems have trouble allocating large chunks
of continous memory, for the slab allocator? I think using vmalloc as
a fallback for kmalloc either indirectly in kmalloc or indirectly in
the code itself is a good idea that shouldn't be too difficult.

Considering the number of places in the kernel and the possibility for
optimizing, vmalloc I think should become a special case of kmalloc.
It is easy for to detect which is wich as the allocated addresses are
in different areas of the address space.

I should probably ask this directly of whoever maintains kmalloc but
I'm lazy and I'm just bouncing this off the list.


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