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

这几个应用经常占用近 1G 内存,是不是苹果想暗示:该升级你的电脑了。。。

  •  
  •   yjsslab · 2015-05-12 23:13:09 +08:00 · 6351 次点击
    这是一个创建于 3273 天前的主题,其中的信息可能已经有所发展或是发生改变。

    2013的rmbp,系统是10.10.3,图:

    这是开机后不到一个小时的状态。

    kenel_task 有时甚至达 1.5G。

    当 WindowServer 近 1G 时就是各种卡顿。。。

    有遇到类似问题的吗?

    第 1 条附言  ·  2015-05-13 13:25:10 +08:00
    上面是**开机后不到一小时**的情况,就是用爆后重启的。
    当用上一两天,上面的那些单位估计都换成 GB 了。
    系统是 8G 内存,的确很快就用满了。
    还把半透明效果给关闭了。
    也怀疑是内存泄露,每次升级都期待不要再有问题,可每次都失望!
    36 条回复    2015-05-14 10:05:33 +08:00
    Koma
        1
    Koma  
       2015-05-12 23:23:17 +08:00
    明示也没用啊,rmbp内存最大也就16G
    zhjits
        2
    zhjits  
       2015-05-12 23:32:25 +08:00
    听说是该清灰了
    likid
        3
    likid  
       2015-05-13 00:30:34 +08:00
    嗯,该重启了
    RIcter
        4
    RIcter  
       2015-05-13 00:38:35 +08:00 via Android
    8g內存完全不夠用。
    pH
        5
    pH  
       2015-05-13 06:24:32 +08:00 via iPad
    @likid 恩 是该重启了
    好像记得Yosemite之前没有这个恼人的wimdowserver进程。。。
    mactaew
        6
    mactaew  
       2015-05-13 08:26:46 +08:00 via iPhone
    @pH 嗯呐!!嗯呢!!!越用越卡,现在~
    comanboy
        7
    comanboy  
       2015-05-13 08:44:29 +08:00   ❤️ 4
    不是暗示你升級內存,而是暗示你該換新mac book 了
    tuimaochang
        8
    tuimaochang  
       2015-05-13 08:57:37 +08:00
    @pH 10.9.5有……不过只占200M内存。
    pH
        9
    pH  
       2015-05-13 09:27:38 +08:00
    @tuimaochang 感谢纠正,只能给苹果跪了。为什么越发感觉是会是内存泄露的问题。。。
    @mactaew 改习惯吧,过段时间主动重启。而不是原来各种被迫重启才会让我重启的节奏
    likid
        10
    likid  
       2015-05-13 09:48:12 +08:00
    @pH 有的,一直都有。

    [WindowServer draws everything you see on the screen.](http://forums.macrumors.com/showthread.php?t=59082)

    WindowServer (aka Window Manager) Responsible for managing the computer's display and mediating between the various Applications and other processes that want to display information on it. It also does the grunt work of launching new user applications, so most user processes are actually its children in the process hierarchy.

    ref: http://www.bivalve.net/reference/OS-X/background-processes.html

    小结:10.10 透明磨砂之类的效果较多,估计 windowServer 用的内存和 cpu 较多。
    可通过 Accessibility -> Display -> Reduce transparency 减少部分效果

    ps:期待更专业的解答。
    likid
        11
    likid  
       2015-05-13 09:49:39 +08:00
    嘛,现在没个 16G 内存都不好意思用 Macbook 了
    ZackYang
        12
    ZackYang  
       2015-05-13 09:50:42 +08:00
    ZackYang
        13
    ZackYang  
       2015-05-13 09:53:48 +08:00
    之前发现机器很卡, 然后打开 Monitor 一看. iTerm2 用了 26G 内存, 想想都醉了.
    pH
        14
    pH  
       2015-05-13 10:12:00 +08:00
    @likid 感谢科普,之前倒没想到去搜搜这个进程。我开始以为是内存的问题,现在是16G一样卡。透明也很早就关了,或许只剩最后一招了就是增强对比度,不过我比较大众的审美确实很难接受。
    pH
        15
    pH  
       2015-05-13 10:12:24 +08:00
    @ZackYang 这得是Mac Pro吧
    Jouleken
        16
    Jouleken  
       2015-05-13 10:16:52 +08:00

    虽然每天结束工作的时候都是 直接盖上盖子带回家的
    但是
    第二天一早工作开始之前都会先进行一次关机再开机的步骤 ...
    Ussss
        17
    Ussss  
       2015-05-13 10:18:12 +08:00
    怎么传送截图的
    ufo22940268
        18
    ufo22940268  
       2015-05-13 10:19:20 +08:00
    8g内存难受得死去活来
    Hant
        19
    Hant  
       2015-05-13 10:31:54 +08:00
    最近把内存加到 32G 了, 我倒要看看它到底能吃我多少内存。
    smalldirector
        20
    smalldirector  
       2015-05-13 10:47:58 +08:00
    @ufo22940268 同感,8G好鸡肋,动不动就满了。。。
    ufo22940268
        21
    ufo22940268  
       2015-05-13 10:52:21 +08:00
    @Hant 是mac pro吗,还是黑苹果

    我已经准备去搞黑苹果了。

    公司的黑苹果比家里的rmbp还要流畅,价格前者是后者的三分之一
    Autonomous
        22
    Autonomous  
       2015-05-13 10:54:20 +08:00
    看来下一台Mac必须得买16G或更大的内存了。
    archey
        23
    archey  
       2015-05-13 11:37:19 +08:00


    12年的,rmbp 当年就配置16G 明智啊
    moooookey
        24
    moooookey  
       2015-05-13 11:50:47 +08:00
    只能慰问cook的菊
    bookit
        25
    bookit  
       2015-05-13 12:31:37 +08:00
    用这条命令重启windowserver

    sudo killall -HUP WindowServer

    效果相当于注销了一次,不过注销不会重启WindowServer

    根据我的研究,windowsserver这玩意每次osx升级都会出问题,从很老的lion开始就这样,英文世界里面到处都能找到这货出问题的帖子
    yjsslab
        26
    yjsslab  
    OP
       2015-05-13 13:15:12 +08:00
    @likid
    @pH
    我这才开机不久呢
    owlsec
        27
    owlsec  
       2015-05-13 13:30:33 +08:00
    @RIcter 16GB刚好够用-。-
    likid
        28
    likid  
       2015-05-13 14:59:17 +08:00
    8G,开 Xcode 码字,WaterFox 看网页。可以坚持半个月以上不用重启。

    But Xcode 和 WaterFox 就得重启好几次了,为了释放内存,囧
    likid
        29
    likid  
       2015-05-13 15:01:16 +08:00
    @bookit 我真的 kill 了一次,嗯,这酸爽
    Autonomous
        30
    Autonomous  
       2015-05-13 15:26:03 +08:00
    重启了一下,内存占用好多了,只是……
    http://imgur.com/qX2Iq0v

    这俩混账进程究竟是闹哪样?已经10分钟了耶,搞爆CPU就那么好玩吗?
    Autonomous
        31
    Autonomous  
       2015-05-13 15:27:05 +08:00
    补图补图,还要Direct Link才行啊
    casioyan
        32
    casioyan  
       2015-05-13 18:43:38 +08:00
    @Autonomous 在建立索引吧,,,,
    Autonomous
        33
    Autonomous  
       2015-05-13 20:19:04 +08:00
    @casioyan 这下就更搞不懂了,最近根本就没干什么,很早就升上了10.10.3,要索引也不是这时候啊……
    txl263
        34
    txl263  
       2015-05-13 21:52:42 +08:00
    Mac的内存管理一直都挺那啥。。。
    NUT
        35
    NUT  
       2015-05-13 22:03:28 +08:00
    @moooookey 赶快去杭州2333
    wxiluo
        36
    wxiluo  
       2015-05-14 10:05:33 +08:00
    大家不要瞎说了,先好好了解一下Mac OS X 的内存管理: https://support.apple.com/en-hk/HT201464

    https://support.apple.com/library/content/dam/edam/applecare/images/en_US/osx/yosemite-activity_monitor-memory.png

    Memory Pressure: The Memory Pressure graph helps illustrate the availability of memory resources. The graph moves from right to left and updates at the intervals set in View > Update Frequency. The current state of memory resources is indicated by the color at the right side of the graph:
    Green: Memory resources are available.
    Yellow: Memory resources are still available but are being tasked by memory-management processes, such as compression.
    Red: Memory resources are depleted, and OS X is using your startup drive for memory. To make more RAM available, you can quit one or more apps or install more RAM. This is the most important indicator that your Mac may need more RAM.

    上面大家内存都很充足,主观上的性能下降并不是内存导致的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   894 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:08 · PVG 06:08 · LAX 15:08 · JFK 18:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.