V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
airwolf
V2EX  ›  macOS

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

  •  
  •   airwolf · 2010-07-26 02:52:56 +08:00 · 6314 次点击
    这是一个创建于 5037 天前的主题,其中的信息可能已经有所发展或是发生改变。
    除了重新启动,真的不知道如何去做了 。。。

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

    大家有没有什么好的办法搞定这个问题?比如说什么超级犀利的小软件之类,就像 iPhone 一代时期的那个 FreeMemory 一样 。。。
    9 条回复    1970-01-01 08:00:00 +08:00
    GordianZ
        1
    GordianZ  
    MOD
       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
        2
    airwolf  
    OP
       2010-07-26 03:46:44 +08:00
    @GordianZ
    Thanks :)
    Livid
        3
    Livid  
    MOD
       2010-07-26 04:20:04 +08:00
    浏览器间差异。。。在 Firefox 上就自动换行了。
    airwolf
        4
    airwolf  
    OP
       2010-07-26 04:27:45 +08:00
    目前在这里感觉 FF 才是王者 T_T
    GordianZ
        5
    GordianZ  
    MOD
       2010-07-26 07:12:10 +08:00
    @airwolf
    但是chrome占了40%的访问 =。=
    lianghai
        6
    lianghai  
       2010-07-26 11:37:21 +08:00
    @airwolf

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

    打开终端,输入:purge
    回车后,inactive 内存将被释放。
    有效果了就留言哈。
    @airwolf
    @lianghai
    @GordianZ
    @lianghai
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4477 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 01:02 · PVG 09:02 · LAX 18:02 · JFK 21:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.