r/linuxapps • • 6d ago

inodetree: A native, WizTree-fast disk space analyzer for Linux written in Rust (egui)

Post image

I built inodetree (MIT licensed), a native open-source disk usage analyzer for Linux written in Rust with an egui interface, designed to match WizTree's scanning speed on large filesystems.

Repository & Downloads: https://github.com/Juanmidev1/inodetree

Features & Architecture

• WizTree-speed parallel scanning (~0.9s for ~843,000 nodes on NVMe): Bypasses std::fs::read_dir and uses raw getdents64 (with 64 KiB thread-local buffers) combined with statx (AT_SYMLINK_NOFOLLOW and AT_STATX_DONT_SYNC) scheduled across threads via rayon.

• Low memory footprint (56-byte arena nodes): Stores the entire directory tree in a flat Vec with u32 indices, a contiguous UTF-8 string pool, and u16 interned file extensions instead of millions of individual heap allocations.

• Three synced views: A virtualized size-sorted directory tree, a file extension breakdown that highlights matching files on click, and a nested squarified treemap rendered into a single shared Mesh.

• Accurate du-style accounting: Parses /proc/self/mountinfo to stay on a single filesystem by default, deduplicates hard links across worker threads using a sharded (dev, ino) set, and lets you toggle between allocated disk usage and logical size at any time.

• Instant filtering, cleanup & CLI mode: Live substring or glob search (Ctrl+F), Freedesktop Trash or permanent deletion with O(depth) arena updates (no rescanning needed), plus a --headless CLI report mode.

Installation

Pre-built .rpm packages and standalone tarballs (x86_64 and aarch64) are available on GitHub Releases, or you can build it from source with Rust 1.85+.

Feedback and benchmark numbers on Btrfs, ZFS, or network mounts are very welcome.

15 Upvotes

12 comments sorted by

1

u/notsoloner 5d ago

windows?

1

u/Juanmidev 4d ago

A community contributor already built a native Windows port and opened a PR for it, I'm reviewing it now so I can include a portable Windows binary in the upcoming release.

1

u/Dearth87 6d ago

Can you add a .deb package?

2

u/zirrix 3d ago

or a appimage

2

u/Juanmidev 2d ago

I just sent version v0.2.1 with the appimage included, let me know of any errors or suggestions.

1

u/zirrix 2d ago

Thanks for this, but I don't like how it shows all the partitions. And not just one drive. Things should be organized by drives. Maybe there is something I dont understand. Do you know about https://github.com/tobi/disktree

1

u/mistekpiece 4d ago

is this faster than ncdu?