* Differences between VM structs
@ 2003-09-08 16:26 Kirk True
2003-09-08 18:21 ` William Lee Irwin III
0 siblings, 1 reply; 5+ messages in thread
From: Kirk True @ 2003-09-08 16:26 UTC (permalink / raw)
To: Kernel Newbies, Linux Memory Manager List
Hi all,
I apologize to ask these questions here, but I got no response from the
newbies list...
1. Regarding non-contiguous memory allocation, what is the need to
have *virtually* contiguous but not *physically* contiguous
pages?
2. UtLVMM says that vmalloc is only used in the kernel for storing
swap information - yet it's used by a bunch of drivers which
are considered part of the kernel; is it just semantics?
3. Is vmalloc called from user-mode ever?
4. Can you state a succint/brief comparison of the difference
between kmalloc, malloc, and vmalloc with usage examples of each?
5. Anonymous memory is memory that is *not* backed by a file, such
as the stack or heap space, right? And mmap is called when
mapping files into memory, right? The why does mmap deal with
anonymous memory (sorry, I'm totally confused here)?
TIA!
Kirk
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Differences between VM structs 2003-09-08 16:26 Differences between VM structs Kirk True @ 2003-09-08 18:21 ` William Lee Irwin III 2003-09-08 17:56 ` Marco Cova 2003-09-08 18:26 ` Raghu R. Arur 0 siblings, 2 replies; 5+ messages in thread From: William Lee Irwin III @ 2003-09-08 18:21 UTC (permalink / raw) To: Kirk True; +Cc: Kernel Newbies, Linux Memory Manager List On Mon, Sep 08, 2003 at 09:26:59AM -0700, Kirk True wrote: > 1. Regarding non-contiguous memory allocation, what is the need to > have *virtually* contiguous but not *physically* contiguous > pages? Fragmentation happens. On Mon, Sep 08, 2003 at 09:26:59AM -0700, Kirk True wrote: > 2. UtLVMM says that vmalloc is only used in the kernel for storing > swap information - yet it's used by a bunch of drivers which > are considered part of the kernel; is it just semantics? No, its usage has probably expanded. Drivers are generally not supposed to try to use it directly. It's used for things like vmap() too nowadays. On Mon, Sep 08, 2003 at 09:26:59AM -0700, Kirk True wrote: > 3. Is vmalloc called from user-mode ever? No function in the kernel can be called directly from usermode. On Mon, Sep 08, 2003 at 09:26:59AM -0700, Kirk True wrote: > 4. Can you state a succint/brief comparison of the difference > between kmalloc, malloc, and vmalloc with usage examples of each? No. On Mon, Sep 08, 2003 at 09:26:59AM -0700, Kirk True wrote: > 5. Anonymous memory is memory that is *not* backed by a file, such > as the stack or heap space, right? And mmap is called when > mapping files into memory, right? The why does mmap deal with > anonymous memory (sorry, I'm totally confused here)? mmap() needed very few extensions to handle the anonymous case. -- wli -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a> ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Differences between VM structs 2003-09-08 18:21 ` William Lee Irwin III @ 2003-09-08 17:56 ` Marco Cova 2003-09-08 18:26 ` Raghu R. Arur 1 sibling, 0 replies; 5+ messages in thread From: Marco Cova @ 2003-09-08 17:56 UTC (permalink / raw) To: kernelnewbies; +Cc: linux-mm On Mon, Sep 08, 2003 at 11:21:38AM -0700, William Lee Irwin III wrote: > On Mon, Sep 08, 2003 at 09:26:59AM -0700, Kirk True wrote: > > 4. Can you state a succint/brief comparison of the difference > > between kmalloc, malloc, and vmalloc with usage examples of each? > > No. Maybe this can be helpful: http://www.xml.com/ldd/chapter/book/ch07.html Also, check out this link for a description of mmap: http://www.xml.com/ldd/chapter/book/ch13.html HTH, Marco -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a> ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Differences between VM structs 2003-09-08 18:21 ` William Lee Irwin III 2003-09-08 17:56 ` Marco Cova @ 2003-09-08 18:26 ` Raghu R. Arur 2003-09-08 18:39 ` William Lee Irwin III 1 sibling, 1 reply; 5+ messages in thread From: Raghu R. Arur @ 2003-09-08 18:26 UTC (permalink / raw) To: William Lee Irwin III; +Cc: Kirk True, Linux Memory Manager List > On Mon, Sep 08, 2003 at 09:26:59AM -0700, Kirk True wrote: > > 5. Anonymous memory is memory that is *not* backed by a file, such > > as the stack or heap space, right? And mmap is called when > > mapping files into memory, right? The why does mmap deal with > > anonymous memory (sorry, I'm totally confused here)? > > mmap() needed very few extensions to handle the anonymous case. What are these extensions in mmap() that need to handle anonymous pages?? Thanks a lot, Raghu -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a> ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Differences between VM structs 2003-09-08 18:26 ` Raghu R. Arur @ 2003-09-08 18:39 ` William Lee Irwin III 0 siblings, 0 replies; 5+ messages in thread From: William Lee Irwin III @ 2003-09-08 18:39 UTC (permalink / raw) To: Raghu R. Arur; +Cc: Kirk True, Linux Memory Manager List At some point in the past, I wrote: >> mmap() needed very few extensions to handle the anonymous case. On Mon, Sep 08, 2003 at 02:26:50PM -0400, Raghu R. Arur wrote: > What are these extensions in mmap() that need to handle anonymous pages?? > Thanks a lot, > Raghu MAP_ANONYMOUS. -- wli -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a> ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-09-08 18:39 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-09-08 16:26 Differences between VM structs Kirk True 2003-09-08 18:21 ` William Lee Irwin III 2003-09-08 17:56 ` Marco Cova 2003-09-08 18:26 ` Raghu R. Arur 2003-09-08 18:39 ` William Lee Irwin III
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox