V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
airwolf
V2EX  ›  macOS

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

  •  
  •   airwolf · Jul 26, 2010 · 7160 views
    This topic created in 5766 days ago, the information mentioned may be changed or developed.
    除了重新启动,真的不知道如何去做了 。。。

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

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

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

    打开终端,输入:purge
    回车后,inactive 内存将被释放。
    有效果了就留言哈。
    @airwolf
    @lianghai
    @GordianZ
    @lianghai
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5332 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 07:59 · PVG 15:59 · LAX 00:59 · JFK 03:59
    ♥ Do have faith in what you're doing.