Re: Should vmalloc and kmalloc be integrated?

David S. Miller (davem@dm.cobaltmicro.com)
Thu, 6 Nov 1997 15:23:53 -0800


From: ebiederm+eric@npwt.net (Eric W. Biederman)
Date: 06 Nov 1997 17:29:02 -0600

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.

The answer is a flat out no. Think TLB coherency on SMP boxes, Linux
wins so much performance because it avoids this entire problem by
having nearly no kernel address space mapping changes done ever while
the system is running.

vmalloc() should be used rarely, if at all, and certainly not for any
critical operation (performance wise)

Linus will probably preach something along these lines as well...

Later,
David S. Miller
davem@dm.cobaltmicro.com