0

I know that kmalloc allocates contiguous memory in physical memory as well as virtual memory, vmalloc allocates contiguous memory in virtual memory but it doesn't guarantee that memory allocated in physical memory will be contiguous.

Therefore, it seems that kmalloc is much more better than vmalloc. I don't know when we use vmalloc, kmalloc? Can someone give me some examples using vmalloc in reality?

Zoe
  • 27,060
  • 21
  • 118
  • 148
nguyennd
  • 55
  • 1
  • 11
  • Please see [this answer](https://stackoverflow.com/questions/116343/what-is-the-difference-between-vmalloc-and-kmalloc?rq=1). I believe it also answers your questin. If not, can you edit your question to note that "I've read the other question and the answers did not go into ... ". – steenbergh Jun 20 '18 at 09:29
  • 1
    Possible duplicate of [What is the difference between vmalloc and kmalloc?](https://stackoverflow.com/questions/116343/what-is-the-difference-between-vmalloc-and-kmalloc) – steenbergh Jun 20 '18 at 09:29

0 Answers0