VMMap 查看 Process Address Space

使用 VMMap 查看进程地址空间分配

VMMap

VMMap is a process virtual and physical memory analysis utility.
It shows a breakdown of aprocess's committed virtual memory types as well as theamount of physical memory (working set) assigned by the operating system to those types.

整体分析

分析的是 windows10 上的一个 git bash 进程。
在这里插入图片描述

进程的栈区

在这里插入图片描述

image

在 windows 上是 .exe 或者 .dll 文件。
在这里插入图片描述

bash 程序的程序逻辑划分

在这里插入图片描述

heap 区域

在这里插入图片描述

free 空闲的虚拟地址空间

在这里插入图片描述

从上图可知 free 的虚拟地址空间,被分成了 32 个 block。怎样管理这写 block 呢?可以用一个 free-list 的数据结构来管理。至于一个分配虚拟内存的需求,应该怎样满足,那方法可就多了。什么 first fit、best fit 等等。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值