Skip to main content

Btrfs and Compression

Since writing posts for my blog has become somewhat routine, I thought it may be interesting for others to look behind the scenes and describe my setup for creating them.

dzu@krikkit:~/fs-test/xml-files$ du -hs .
104M    .
dzu@krikkit:~/fs-test/xml-files$ time wc -c * > /dev/null

real    0m0,002s
user    0m0,002s
sys     0m0,000s
dzu@krikkit:~/fs-test/xml-files$ sudo compsize *
Processed 37 files, 37 regular extents (37 refs), 0 inline.
Type       Perc     Disk Usage   Uncompressed Referenced
TOTAL      100%      103M         103M         103M
none       100%      103M         103M         103M
dzu@krikkit:~/fs-test/xml-files$ btrfs filesystem defrag -vr -czstd .
./2019-03-30_13-03-18.TCX
./2019-04-07_14-22-04.TCX
./2019-05-23_19-19-09.TCX
./2019-05-24_17-58-54.TCX
./2019-06-08_14-37-33.TCX
./2019-06-09_07-23-34.TCX
./2019-06-18_10-21-38.TCX
./2019-06-25_20-34-12.TCX
./2019-06-29_13-17-40.TCX
./2019-06-30_10-32-27.TCX
./2019-07-02_17-14-21.TCX
./2019-07-06_12-13-45.TCX
./2019-07-13_17-51-09.TCX
./2019-07-19_16-51-43.TCX
./2019-07-22_09-24-41.TCX
./2019-07-24_17-07-56.TCX
./2019-07-29_17-20-05.TCX
./2019-07-31_17-11-10.TCX
./2019-08-04_15-04-08.TCX
./2019-08-06_17-12-20.TCX
./2019-08-09_08-58-09.TCX
./2019-08-13_17-17-15.TCX
./2019-08-14_17-17-47.TCX
./2019-08-21_18-02-50.TCX
./2019-08-25_07-45-44.TCX
./2019-08-27_12-35-23.TCX
./2019-08-28_10-08-50.TCX
./2019-08-30_11-08-45.TCX
./2019-09-03_17-12-50.TCX
./2019-09-11_17-10-09.TCX
./2019-10-03_11-57-26.TCX
./2019-10-07_17-05-34.TCX
./2019-10-13_12-55-04.TCX
./2019-10-15_10-30-19.TCX
./2019-10-17_16-02-50.TCX
./2019-10-20_10-52-02.TCX
./2019-10-25_13-26-28.TCX
dzu@krikkit:~/fs-test/xml-files$ sudo compsize *
Processed 37 files, 851 regular extents (851 refs), 0 inline.
Type       Perc     Disk Usage   Uncompressed Referenced
TOTAL        6%      6.6M         103M         103M
none       100%      8.0K         8.0K         8.0K
zstd         6%      6.5M         103M         103M
dzu@krikkit:~/fs-test/xml-files$ time wc -c * > /dev/null

real    0m0,002s
user    0m0,002s
sys     0m0,001s
dzu@krikkit:~/fs-test/xml-files$

Comments

Comments powered by Disqus