melodic-thailand-99227
12/09/2021, 7:59 PMenough-analyst-54434
12/09/2021, 8:04 PMwitty-crayon-22786
12/09/2021, 8:06 PM~/.cache/pants/lmdb_store
should already be garbage collected by pantsd
periodically: it’s only ~/.cache/pants/named_caches
that aren’t collected currentlyenough-analyst-54434
12/09/2021, 8:11 PMwitty-crayon-22786
12/09/2021, 8:12 PMmelodic-thailand-99227
12/09/2021, 8:14 PMenough-analyst-54434
12/09/2021, 8:37 PM$ du -sh ~/.cache/pants/named_caches/pex_root/venvs/
2.5G /home/jsirois/.cache/pants/named_caches/pex_root/venvs/
But apparent 28GB if you count each hard link as new data (-l):
$ du -lsh ~/.cache/pants/named_caches/pex_root/venvs/
28G /home/jsirois/.cache/pants/named_caches/pex_root/venvs/
I'm unfamiliar with ncdu. Do you know what it's counting? Is it hard link aware?polite-garden-50641
12/09/2021, 8:43 PMenough-analyst-54434
12/13/2021, 1:30 AM.pyc
amongst venvs. Switching to symlinks solves this, and, for example, for toolchain:
$ du -sh ~/.cache/pants/lmdb_store.tc.venv_symlinks ~/.cache/pants/named_caches/pex_root.tc.venv_symlinks
179M /home/jsirois/.cache/pants/lmdb_store.tc.venv_symlinks
1.1G /home/jsirois/.cache/pants/named_caches/pex_root.tc.venv_symlinks
$ du -sh ~/.cache/pants/lmdb_store.tc.venv_hardlinks ~/.cache/pants/named_caches/pex_root.tc.venv_hardlinks
179M /home/jsirois/.cache/pants/lmdb_store.tc.venv_hardlinks
3.4G /home/jsirois/.cache/pants/named_caches/pex_root.tc.venv_hardlinks
I'll be getting out a PR for this shortly.witty-crayon-22786
12/13/2021, 2:49 AMenough-analyst-54434
12/13/2021, 3:46 AM