#1008321 RFP: btdu -- stochastic disk use analyzer for btrfs

#1008321#5
Date:
2022-03-26 20:35:07 UTC
From:
To:
* Package name    : btdu
  Upstream Author : Vladimir Panteleev
* URL             : https://gitfreak.com/CyberShadow/btdu
* License         : GPL
  Programming Lang: D
  Description     : stochastic disk use analyzer for btrfs
 btdu is a btrfs-specific disk use analyzer in the vein of ncdu.
 Unlike other tools of this kind that might require several hours to
 stat a spinning disk full of small files, btdu provides useful data
 immediately.
 .
 Its algorithm is: throw a dart at the disk, see what got hit, repeat.
 This identifies worst offenders in no time.

Alas, this tool is written in some weird language "D", and thus I'm
requesting a maintainer who knows it.

#1008321#10
Date:
2022-12-31 05:07:34 UTC
From:
To:
Hey.

Seems that https://gitfreak.com/CyberShadow/btdu is dead.

I guess https://github.com/CyberShadow/btdu might be the new upstream.

Cheers,
Chris.

#1008321#15
Date:
2023-03-03 16:54:54 UTC
From:
To:
Hi, I'm the author of btdu. Happy to help with any packaging efforts with what I can from my side.

I'm also a contributor to the D programming language, so I'm happy to help on that front as well.

FWIW, Debian already packages software written in D, see e.g. tilix or the dh-dlang package.

This was never the upstream, but I think this used to be a FOSS front-end to github.com (in the same way that Nitter is a FOSS front-end to Twitter).

Thanks!

#1008321#20
Date:
2024-12-01 13:42:44 UTC
From:
To:
Hi, I discovered this program only recently, even though I have been
using btrfs on many volumes for about ten years, I find it a very simple
and quick way to identify the cause of possible space problems. Big
thanks to his developer.

Many complain about btrfs space problems, partly some things should be
improved in btrfs (and they are doing it, like recently with automatic
reclaim) but mostly it's due to user choices/usage and poor or bad
maintenance.

 From what I've seen the problems you can have with space issues are
caused by snapshots (underestimating the space), increase space used
(underestimated) given by defragmentation with snapshots, free but
allocated space (you can easily see it with btrfs fi usage and solve it
with balance) and finally an excess of what in btdu is defined as
"unreachable" for which I have not found a good enough method outside of
btdu.

As I have recently noticed the enormous fragmentation of some files in
some cases can lead the files to occupy much more than the actual space,
not freeable even with balance if not after a defragmentation, I have
seen cases in which they have come to occupy even double or triple the
space.

So I think btdu would be a must have for an optimal btrfs support.


I took a very quick look, even though I wouldn't have enough time to
maintain this package too and I have zero knowledge of Dlang.

About dipendencies of btdu seems are showed here (or I'm wrong?):
https://github.com/CyberShadow/btdu/blob/master/dub.sdl

I don't understand if are missed in Debian, emsi_containers seems
present (https://tracker.debian.org/pkg/dcontainers), about ae, btrfs
and ncurses (for dlang) seems missed but I'm not sure.

dh-dlang, dub and various essential Dlang packages was removed from
testing (caused by ldc, another dlang package).

What is the level of support for dlang build packages in Debian?

Probably this information would be useful to someone who wants to see
ifpackage btdu.

#1008321#27
Date:
2025-12-18 17:45:35 UTC
From:
To:
FWIW - It's been a year since anything has been posted here, so I'd like to
add my name to those who would be interested in seeing 'btdu' as a Debian
package.

~JM