tcmalloc释放内存之后top显示还是有剩余

qq_16432347 2016-03-07 04:36:09
随机申请内存,统一释放,可执行程序链接tamlloc,执行完成后top物理内存有剩余
tcmalloc内存状态

buffer=------------------------------------------------
MALLOC: 1442288 ( 1.4 MiB) Bytes in use by application
MALLOC: + 0 ( 0.0 MiB) Bytes in page heap freelist
MALLOC: + 9301224 ( 8.9 MiB) Bytes in central cache freelist
MALLOC: + 27725824 ( 26.4 MiB) Bytes in transfer cache freelist
MALLOC: + 803112 ( 0.8 MiB) Bytes in thread cache freelists
MALLOC: + 12316832 ( 11.7 MiB) Bytes in malloc metadata
MALLOC: ------------
MALLOC: = 51589280 ( 49.2 MiB) Actual memory used (physical + swap)
MALLOC: + 2660810752 ( 2537.5 MiB) Bytes released to OS (aka unmapped)
MALLOC: ------------
MALLOC: = 2712400032 ( 2586.7 MiB) Virtual address space used
MALLOC:
MALLOC: 4067 Spans in use
MALLOC: 1 Thread heaps in use
MALLOC: 8192 Tcmalloc page size
------------------------------------------------
物理内存剩余29.4M

top物理内存剩余87m
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7743 root 18 0 2642m 87m 1300 S 0.0 0.4 0:21.28 test

不确定剩余的内存到哪里去了,求大神解释。
...全文
488 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧