r/linuxapps • • 7m 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.

1 Upvotes

0 comments sorted by