Advertisement
Guest User

BTRFS decompression benchmark

a guest
Jul 27th, 2020
736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. As a follow-up to [Atemu12's compression benchmark](https://www.reddit.com/r/btrfs/comments/bpphbz/my_benchmarks_of_the_new_zstd_levels_in_51/), here is my measly benchmark of BTRFS decompression speeds.
  2. Same test file, volume in ramfs loop device, compression enforced, caches always dropped, all results best of 10. The ondemand CPU governor was noticeably worse than the performance governor.
  3.  
  4. Kernel: 5.7.9-1-default (openSUSE Tumbleweed)
  5. Processor: AMD FX-6200
  6. RAM: 4 x 2 GB ECC DDR3-1333
  7.  
  8. | Setting | Read speed |
  9. |:-|-:|
  10. | btrfs zstd:15 | 974MiB/s |
  11. | btrfs zstd:14 | 985MiB/s |
  12. | btrfs zstd:13 | 1.02GiB/s |
  13. | btrfs zstd:12 | 1.01GiB/s |
  14. | btrfs zstd:11 | 1.02GiB/s |
  15. | btrfs zstd:10 | 1.00GiB/s |
  16. | btrfs zstd:9 | 1.01GiB/s |
  17. | btrfs zstd:8 | 1.01GiB/s |
  18. | btrfs zstd:7 | 1023MiB/s |
  19. | btrfs zstd:6 | 1019MiB/s |
  20. | btrfs zstd:5 | 1008MiB/s |
  21. | btrfs zstd:4 | 1004MiB/s |
  22. | btrfs zstd:3 | 1.02GiB/s |
  23. | btrfs zstd:2 | 1.01GiB/s |
  24. | btrfs zstd:1 | 1.03GiB/s |
  25. | btrfs zlib:3 | 590MiB/s |
  26. | btrfs lzo | 1.31GiB/s |
  27. | btrfs none | 1.49GiB/s |
  28. | xfs | 1.93GiB/s |
  29. | ext4 | 1.93GiB/s |
  30. | ramfs | 3.81GiB/s |
  31.  
  32. Implementation details:
  33.  
  34. cpupower frequency-set -g performance
  35. unxz cuda-10.1.168-1-x86_64.pkg.tar.xz
  36. mkdir /mnt/test
  37. mkdir /mnt/ram
  38. mount -t ramfs ramfs /mnt/ram
  39. dd if=/dev/zero of=/mnt/ram/fs.img bs=1M count=6144
  40. losetup /dev/loop0 /mnt/ram/fs.img
  41.  
  42. mkfs.btrfs -f /dev/loop0
  43. mount -o compress-force=zstd:2 /dev/loop0 /mnt/test
  44. cp cuda-10.1.168-1-x86_64.pkg.tar /mnt/test/
  45. for i in {1..10}; do sync; echo 3 > /proc/sys/vm/drop_caches; nice -n -20 pv -a /mnt/test/cuda-10.1.168-1-x86_64.pkg.tar > /dev/null; done
  46. umount /mnt/test
  47.  
  48. losetup -d /dev/loop0
  49. umount /mnt/ram
  50.  
  51. rmdir /mnt/test
  52. rmdir /mnt/ram
  53. rm cuda-10.1.168-1-x86_64.pkg.tar
  54. cpupower frequency-set -g ondemand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement