如何快速“唤醒” Inactive 的内存?

2010-07-26 02:52:56 +08:00
 airwolf
除了重新启动,真的不知道如何去做了 。。。

Xcode + PS + Mail + Safari + Last.fm + iTunes + Terminal + TextMate, 中规中矩的用,4GB 内存,半天不到就满了 。。。就算全部都退出,Inactive 内存也还是占用了一大半,非重启不可。

大家有没有什么好的办法搞定这个问题?比如说什么超级犀利的小软件之类,就像 iPhone 一代时期的那个 FreeMemory 一样 。。。
6329 次点击
所在节点    macOS
9 条回复
GordianZ
2010-07-26 03:37:15 +08:00
http://developer.apple.com/mac/library/documentation/Performance/Conceptual/ManagingMemory/Articles/AboutMemory.html

To summarize, wired memory is used by the system; active memory is used by currently running applications; inactive memory was used by recently closed applications, which allows them to reopen quickly, and free memory is unused.
airwolf
2010-07-26 03:46:44 +08:00
@GordianZ
Thanks :)
Livid
2010-07-26 04:20:04 +08:00
浏览器间差异。。。在 Firefox 上就自动换行了。
airwolf
2010-07-26 04:27:45 +08:00
目前在这里感觉 FF 才是王者 T_T
GordianZ
2010-07-26 07:12:10 +08:00
@airwolf
但是chrome占了40%的访问 =。=
lianghai
2010-07-26 11:37:21 +08:00
@airwolf

同 @GordianZ 感叹,Chrome 居然占了那么多……
GordianZ
2010-07-26 11:40:59 +08:00
@lianghai
Mac的比例也高的惊人……
lianghai
2010-07-26 11:54:45 +08:00
@GordianZ ……凌晨睡觉前思维停滞,没找到操作系统统计,刚刚才看到。嗯,Mac OS X 的比例和我的预期差不多——只是没想到 Android 那么少一点儿,而且“Firefox / Macintosh”也好少啊……
baozilala
2013-03-22 03:15:39 +08:00
有一个简单的办法:

打开终端,输入:purge
回车后,inactive 内存将被释放。
有效果了就留言哈。
@airwolf
@lianghai
@GordianZ
@lianghai

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/928

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX