Fikhtengol
V2EX  ›  macOS

macOS 的 System Storage 空间占用元凶

  •  
  •   Fikhtengol · Jun 25, 2017 · 6744 views
    This topic created in 3425 days ago, the information mentioned may be changed or developed.

    macOS 的 System Storage 空间占用

    我的 13 年 rmbp storage 为 256G, 用到现在怎么删基本是处于 free storage 长期 < 20G 的状况。

    通过 macOS 自带的 storage manager system storage 查看发现 system storge 尽然占用了大约 160G。 然而自带的工具是找不到到底哪些文件占用大的。command line 里用 du 去跑又很费电难用。

    安装了个第三方软件 OmniDiskSweeper 看了下,竟然发现系统的 core dump 文件占了 70G ! ( md,小视频白删了)

    查了下 core dump 的个数限制尽然是 unlimit, 果断把它改成 1 个:

    sudo launchctl limit core 1

    这是要坑小白用户换新电脑/重装系统么?

    33 replies  •  2017-06-29 02:12:47 +08:00
    kslr
    kslr
    Jun 25, 2017
    1
    请问这个 core dump 在哪里可以找到?
    run2
    run2
    Jun 25, 2017
    2
    ulimit
    unlimited
    但没有发现 dump-。-
    Fikhtengol
    Fikhtengol
    OP
    Jun 25, 2017
    3
    @kslr /cores
    Fikhtengol
    Fikhtengol
    OP
    Jun 25, 2017
    4
    @sobigfish launchctl limit
    kslr
    kslr
    Jun 25, 2017
    5
    @Fikhtengol #3 我的这个目录下是空白的,看来不用担心了。
    Fikhtengol
    Fikhtengol
    OP
    Jun 25, 2017
    6
    @kslr 难道你的 software 没有 crash 过么, 还是你已经 disable 了 core dump ?
    kslr
    kslr
    Jun 25, 2017
    7
    @Fikhtengol #6 我看了下

    cpu unlimited unlimited
    filesize unlimited unlimited
    data unlimited unlimited
    stack 8388608 67104768
    core 0 unlimited

    也许什么什么时候已经禁用了?谁知道呢 ( 摊手
    zddewe
    zddewe
    Jun 26, 2017
    8
    @Fikhtengol
    @kslr
    @kslr #5,6 同是空目录哩
    UnisandK
    UnisandK
    Jun 26, 2017
    9
    同空目录。。
    n6DD1A640
    n6DD1A640
    Jun 26, 2017
    10
    $> du -h /cores
    0B /cores

    我用的是假 macOS。。。?
    nicevar
    nicevar
    Jun 26, 2017
    11
    @n6DD1A640 dump 默认是不开启的,你的应该没启用,否则就是你不怎么折腾,基本上没有遇到崩溃的情况,所以没有 dump 文件
    vela
    vela
    Jun 26, 2017
    12
    吓得我赶紧去看了一下,空的……
    我一般用 DaisyDisk 来扫空间的,还是比较不错的。常年都是 iOS 的各种版本缓存占地儿最大。
    Tunar
    Tunar
    Jun 26, 2017
    13
    我这里 768.2MB,应该还正常吧。。
    oqhxybgs
    oqhxybgs
    Jun 26, 2017
    14
    0B /cores+1
    mns
    mns
    Jun 26, 2017
    15
    du: /cores: No such file or directory
    byuan04
    byuan04
    Jun 26, 2017
    16
    du -h /cores
    0B /cores
    QAPTEAWH
    QAPTEAWH
    Jun 26, 2017
    17
    brew install ncdu
    sudo ncdu -x /
    maemolee
    maemolee
    Jun 26, 2017
    18
    du -h /cores
    0B /cores
    gongpeione
    gongpeione
    Jun 26, 2017
    19
    du -h /cores
    14G /cores
    bullettrain1433
    bullettrain1433
    Jun 26, 2017
    20
    0B /cores
    onion83
    onion83
    Jun 26, 2017
    21
    ➜ /cores du -sh
    0B .
    cheny95
    cheny95
    Jun 26, 2017
    22
    du -h /cores
    0B /cores
    .
    xi_lin
    xi_lin
    Jun 26, 2017
    23
    0B +1
    AngelCriss
    AngelCriss
    Jun 26, 2017 via Android
    24
    du -h /cores
    du: cannot access '/cores' : No such files or directory

    我可能用了假的 MacOS。。。
    oqhxybgs
    oqhxybgs
    Jun 26, 2017
    25
    @AngelCriss 哈哈哈,喷了。
    mns
    mns
    Jun 26, 2017
    26
    @AngelCriss 我也是这个。。。
    kimchan
    kimchan
    Jun 26, 2017
    27
    ➜ ~ du -h /cores
    0B /cores
    LeoNG
    LeoNG
    Jun 26, 2017
    28
    ➜ ~ du -h /cores
    0B /cores
    presjch
    presjch
    Jun 27, 2017
    29
    du -h /cores
    0B /cores
    SpringHack
    SpringHack
    Jun 27, 2017
    30
    ┌─[SpringHack@SpringHack]─[~]
    └──╼ $ du -h /cores/
    0B /cores/
    allenwang
    allenwang
    Jun 27, 2017 via iPhone
    31
    中招了 20 多 g
    crisfun
    crisfun
    Jun 29, 2017
    32
    iOS 有类似的东西吗?

    最近我发现我的 iPhone 什么都没新装直接消失 2G 空间,关键从存储里面还看不出什么东西占用了空间
    Fikhtengol
    Fikhtengol
    OP
    Jun 29, 2017
    33
    @crisfun 可能某些软件的缓存之类,可以用自带软件看看, 不过才 2G 而已,还好。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4745 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 119ms · UTC 01:50 · PVG 09:50 · LAX 17:50 · JFK 20:50
    ♥ Do have faith in what you're doing.