Skip to content

Instantly share code, notes, and snippets.

@robskillington
Last active August 16, 2020 22:17
Show Gist options
  • Save robskillington/8cc358e9a650e157db1aad3cf25a2eeb to your computer and use it in GitHub Desktop.
Save robskillington/8cc358e9a650e157db1aad3cf25a2eeb to your computer and use it in GitHub Desktop.
M3DB disk size
N=$(du -d 0 /var/lib/m3db | cut -f 1 -d $'\t'); echo "$N kb, all data"
N=0; for f in $(find /var/lib/m3db | fgrep "docdata.db"); do i=$(du $f | cut -f 1 -d $'\t'); N=$(expr $N + $i); done; echo "$N kb, index docdata"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment