On 9/4/2017 5:11 PM, Adam Borowski wrote:
Hi!
Here's an utility to measure used compression type + ratio on a set of files
or directories: https://github.com/kilobyte/compsize
Great tool. Just tried it on some of my backup snapshots.
# compsize portage.20170904T2200
142432 files.
all 78% 329M/ 422M
none 100% 227M/ 227M
zlib 52% 102M/ 195M
# du -sh portage.20170904T2200
787M portage.20170904T2200
# btrfs fi du -s portage.20170904T2200
Total Exclusive Set shared Filename
271.61MiB 6.34MiB 245.51MiB portage.20170904T2200
Interesting results. How do I interpret them?
Compsize also doesn't seem to like some non-standard files and throws an
error (even though they should be ignored?):
# compsize usb-backup/volumes/root/root.20170727T2321/
open("usb-backup/volumes/root/root.20170727T2321//tmp/screen/S-root/2757.pts-1.e350"):
No such device or address
# dir
usb-backup/volumes/root/root.20170727T2321//tmp/screen/S-root/2757.pts-1.e350
srwx------ 1 root root 0 Dec 31 2015
usb-backup/volumes/root/root.20170727T2321//tmp/screen/S-root/2757.pts-1.e350=
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html