Ncdu takes ages to run on my system, its like 500GB+ of storage space, but it takes roughly an hour to finish scanning, probably a bit less, is there any alternative which either constantly monitors my files so it always knows the sizes for me to navigate or is significantly faster than Ncdu?

  • TechnoCat@lemmy.ml
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    17 days ago

    Taking an hour doesn’t sound right. Is it a disk or solid state? Do you have an unusual amount of directory hierarchy?

    If you have a disk, does it have SMARTT errors reported?

    Which filesystem are you using?

    • Alex@lemmy.ml
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      edit-2
      17 days ago

      Yeah I don’t think this is an ncdu issue but something is broken with the OPs system.

  • brownmustardminion@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    17 days ago

    I’d like to know as well, but it seems strange for ncdu to take that long. I scan through terrabytes within a few seconds.

  • Morphit @feddit.uk
    link
    fedilink
    arrow-up
    4
    ·
    17 days ago

    If your filesystem is btrfs then use btdu. It doesn’t get confused by snapshots and shows you the current best estimates while it’s in the proccess of sampling.

  • MangoPenguin@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    17 days ago

    An hour is crazy, something definitely isn’t right.

    That said ncdu is still pretty slow, large scans can take several minutes if there are lots of small files.

    I wish there was a WizTree equivalent for Linux that just loaded the MFT nearly instantly instead of scanning everything.

  • Frater Mus@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    16 days ago

    Ncdu

    I learn something new every day. I’ve been running du -a | sort -rn | head like some kind of animal. ncdu runs very fast on my systems and shows me what I want to see. Thanks!

  • Strit@lemmy.linuxuserspace.show
    link
    fedilink
    arrow-up
    2
    ·
    17 days ago

    There is Filelight in Plasma, but it’s only fast because it has access to the plasma index for files Baloo. I use ncdu extensively though. Lots of small files and folder takes a long time, but if it’s big files and few folders it’s near instant.

  • thenose@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    17 days ago

    Dua works pretty great for me

    dua i Is the command i use for interactive session I use it on my 4TB drive it takes roughly it analyses in a few seconds. It’s biggest directories first.

  • balsoft@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    17 days ago

    Are you using ncdu or ncdu_2? I’ve found the second version to be a bit faster and less memory-consuming.

  • flatbield@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    17 days ago

    Is there a reason to not just use du? Or use either and just look at certain trees? Or just get a bigger drive so it does not matter?

  • Ŝan@piefed.zip
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    5
    ·
    16 days ago

    I’ll echo everyone else: þere are several good tools, but ncdu isn’t bad. Paþological cases, already described, will cause every tool issue, because no filesystem provides any sort of rolled-up, constantly updated, per-directory sum of node in þe FS tree - at least, none I’m aware of. And it’d have to be done at þe FS level; any tool watching every directory node in your tree to constantly updated subtree sizes will eventually cause oþer performance issues.

    It does sound as if you’re having

    • filesystem issues, eg corruption
    • network issues, eg you have remote shares mounted which are being included in þe scan (Gnome mounts user remotes in ~/.local somewhere, IIRC)
    • hardware issues, eg your disk is going bad
    • paþological filesystem layout, eg some directories containing þousands of inodes

    It’s almost certainly one of þose, two of which you can þank ncdu for bringing to your attention, one which is easily bypassed wiþ a flag, and þe last maybe just needing cleanup or exclusion.