r/madeinrust • u/Juanmidev • 19m ago
AI Assisted I built inodetree (licensed by MIT), an open source Wiztree-like fast disk space analyzer for Linux written in Rust with a native `egui` interface.
I built inodetree (MIT licensed), a fast open-source disk space analyzer for Linux written in Rust with a native egui interface.
GitHub:https://github.com/Juanmidev1/inodetree
How it's built:
• Parallel syscall walker: Bypasses std::fs::read_dir and uses raw getdents64 (with 64 KiB thread-local buffers) plus statx (AT_SYMLINK_NOFOLLOW and AT_STATX_DONT_SYNC) scheduled with rayon. On my NVMe drive, scanning / (~843,000 nodes) takes ~0.9s on a warm cache.
• 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 heap allocations.
• Accurate du-style accounting: Discovers real mounts via /proc/self/mountinfo to stay on a single filesystem, deduplicates hard links across threads using a sharded (dev, ino) set, and lets you toggle between allocated disk usage and logical size anytime.
• 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.
• Live filtering & cleanup: Instant 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.
Pre-built .rpm packages and tarballs (x86_64 and aarch64) are up on GitHub Releases, or you can build it from source with Rust 1.85+. Feedback and benchmarks on other filesystems like ZFS or Btrfs are welcome.


