26 """On-disk size. `du` block counts, not apparent size — every component's data and
27 index file is a sparse 8 GiB, so `st_size` would report the run as ~8 TB."""
28 db = config.ELODIN_DIR / run_id
31 [
"du",
"-sk", str(db)], capture_output=
True, text=
True, timeout=60
33 if out.returncode == 0:
34 return int(out.stdout.split()[0]) * 1024
35 except (ValueError, OSError, subprocess.SubprocessError):