Thread (5 messages) 5 messages, 4 authors, 2012-11-26

what is the difference between kmalloc and vmalloc?

From: Mulyadi Santosa <hidden>
Date: 2012-11-22 04:09:50

On Thu, Nov 22, 2012 at 10:12 AM, horse_rivers [off-list ref] wrote:
thanks!
kmalloc allocates memory from slab cache. It tends to be physically
contigous and you can get memory size smaller than page size.

vmalloc, on the other hand, is when you need only virtually contigous
memory area. Example of such usage is for allocating memory to load
kernel module.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help