转自:http://www.19lou.com/forum-1658-thread-25902363-1-1.html
简单的说,Mac OS X的[内存]使用情况分为:wired, active, inactive和free四种。
调用,速度反而慢了。
////////
转自:http://www.cnblogs.com/tony508/archive/2011/01/28/1946837.html
相信大家做iphone开发都遇到过内存吃紧的问题,最要命的是不知道究竟自己刚写的这段代码用了多少内存(被instrument骗过好多次了),下面贴出我常用的查看现有内存方法
以下是相关内存用语的名词解释
Free memory
This is RAM that's not being used.
Wired memory
Information in this memory can't be moved to the hard disk, so it must stay in RAM. The amount of Wired memory depends on the applications you are using.
Active memory
This information is currently in memory, and has been recently used.
Inactive memory
This information in memory is not actively being used, but was recently used.
For example, if you've been using Mail and then quit it, the RAM that Mail was using is marked as Inactive memory. This Inactive memory is available for use by another application, just like Free memory. However, if you open Mail before its Inactive memory is used by a different application, Mail will open quicker because its Inactive memory is converted to Active memory, instead of loading Mail from the slower hard disk.
Used
This is the total amount of memory used.
VM size
This is the total amount of Virtual Memory for all processes on your Mac.
Page ins / Page outs
This refers to the amount of information moved between RAM and the hard disk. This number is a cumulative amount of data that Mac OS X has moved between RAM and disk space.
Tip: Page outs occur when your Mac has to write information from RAM to the hard drive (because RAM is full). Adding more RAM may reduce page outs.
Swap used
This is the amount of information copied to the swap file on your hard drive.
(更多内存使用信息可查阅苹果开发文档:Memory Usage Performance Guidelines )