mm3
进程VMA
3GB~4GB 内核空间
/ | \
/ | \
---------------------------------------
0GB~3GB 0GB~3GB 0GB~3GB 用户空间
A进程 B进程 C进程struct task_struct {
struct mm_struct *mm
};
struct mm_struct {
struct vm_area_struct * mmap; /* list of VMAs */
};
struct vm_area_struct {
unsigned long vm_start; /* Our start address within vm_mm. */
unsigned long vm_end; /* The first byte after our end address
/* linked list of VM areas per task, sorted by address */
struct vm_area_struct *vm_next;
};page fault的可能性
进程内存消耗的4个概念:VSS、RSS、PSS和USS
内存泄露的界定方法?
应用空间内存泄露检查步骤:
内核空间内存泄露检查步骤:
Last updated