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

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

  •  
  •   airwolf · 2010 年 7 月 26 日 · 6969 次点击
    这是一个创建于 5668 天前的主题,其中的信息可能已经有所发展或是发生改变。
    除了重新启动,真的不知道如何去做了 。。。

    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  
       2010 年 7 月 26 日
    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 年 7 月 26 日
    @GordianZ
    Thanks :)
    Livid
        3
    Livid  
    MOD
    PRO
       2010 年 7 月 26 日
    浏览器间差异。。。在 Firefox 上就自动换行了。
    airwolf
        4
    airwolf  
    OP
       2010 年 7 月 26 日
    目前在这里感觉 FF 才是王者 T_T
    GordianZ
        5
    GordianZ  
       2010 年 7 月 26 日
    @airwolf
    但是chrome占了40%的访问 =。=
    lianghai
        6
    lianghai  
       2010 年 7 月 26 日
    @airwolf

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

    打开终端,输入:purge
    回车后,inactive 内存将被释放。
    有效果了就留言哈。
    @airwolf
    @lianghai
    @GordianZ
    @lianghai
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2192 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 12:50 · PVG 20:50 · LAX 04:50 · JFK 07:50
    ♥ Do have faith in what you're doing.