Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kuanyui/7c2b4a114324717f9c6fb71a649d276f to your computer and use it in GitHub Desktop.
Save kuanyui/7c2b4a114324717f9c6fb71a649d276f to your computer and use it in GitHub Desktop.
A simple comparison of before & after deleting snapshots via snapper in a btrfs `/` partition.

Command:

btrfs filesystem usage /

Before deleting snapshots via snapper

btrfs filesystem usage /
Overall:
    Device size:                 171.88GiB
    Device allocated:            148.07GiB
    Device unallocated:           23.80GiB
    Device missing:                  0.00B
    Device slack:                    0.00B
    Used:                        118.56GiB
    Free (estimated):             44.95GiB      (min: 33.05GiB)
    Free (statfs, df):            44.95GiB
    Data ratio:                       1.00
    Metadata ratio:                   2.00
    Global reserve:              221.48MiB      (used: 0.00B)
    Multiple profiles:                  no

Data,single: Size:134.01GiB, Used:112.86GiB (84.22%)
   /dev/nvme1n1p4        134.01GiB

Metadata,DUP: Size:7.00GiB, Used:2.85GiB (40.72%)
   /dev/nvme1n1p4         14.00GiB

System,DUP: Size:32.00MiB, Used:48.00KiB (0.15%)
   /dev/nvme1n1p4         64.00MiB

Unallocated:
   /dev/nvme1n1p4         23.80GiB

After deleting several snapshot via snapper

btrfs filesystem usage /
Overall:
    Device size:                 171.88GiB
    Device allocated:            148.07GiB
    Device unallocated:           23.80GiB
    Device missing:                  0.00B
    Device slack:                    0.00B
    Used:                         89.34GiB
    Free (estimated):             72.34GiB      (min: 60.44GiB)
    Free (statfs, df):            72.34GiB
    Data ratio:                       1.00
    Metadata ratio:                   2.00
    Global reserve:              195.59MiB      (used: 0.00B)
    Multiple profiles:                  no

Data,single: Size:134.01GiB, Used:85.47GiB (63.78%)
   /dev/nvme0n1p4        134.01GiB

Metadata,DUP: Size:7.00GiB, Used:1.94GiB (27.69%)
   /dev/nvme0n1p4         14.00GiB

System,DUP: Size:32.00MiB, Used:48.00KiB (0.15%)
   /dev/nvme0n1p4         64.00MiB

Unallocated:
   /dev/nvme0n1p4         23.80GiB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment