linux的进程有2种memory region layout:
1.classic layout
2.flexible layout
见<understanding the linux kernel>-819页
type of memory regionclassic layout flexible layout
text segment(elf) start from 0x08048000
data and bss segments start right after text
heapstart right afte the data and bss
file memory mapping and start from 0x40000000|starts near the end of the anonymous memory regions libraries added at successive |user mode
higter address| stack;libraries added
at successive lower
address
user mode stack start at 0xc0000000 and grows towards lower address
class layout的缺点在于heap的大小不能超过1g,flexible layout的缺点在于必须要知道stack使用的最大大小。
2009/02/15 日
本文介绍了Linux进程中的两种内存区域布局:经典布局(classic layout)和灵活布局(flexible layout)。详细阐述了这两种布局的特点及局限性,如经典布局中堆的最大大小限制,以及灵活布局中需要预知栈的最大使用量等问题。
1645

被折叠的 条评论
为什么被折叠?



