2 ms·
this is probably the best source to actually understand how memory works in Linux: https://manybutfinite.com/post/anatomy-of-a-program-in-memory/ https://manyb
by deckard1 4y ago
this is probably the best source to actually understand how memory works in Linux:
https://manybutfinite.com/post/anatomy-of-a-program-in-memory/ https://manybutfinite.com/post/anatomy-of-a-program-in-memor... [1]
You can't really understand mmap/sbrk without understanding virtual memory and process space layout.
[1] Images are broken. Just open https://static.duartes.org/img/blogPosts/kernelUserMemorySplit.png https://static.duartes.org/img/blogPosts/kernelUserMemorySpl... and go to advanced and "Proceed to static.duartes.org" to workaround their https issues. The duartes.org host is owned by the blog author. Refresh the blog article and images should load now.