zfs 缓存的作用

将kvm虚拟机的文件放在zfs的dataset里,添加SSD作为缓存设备,对KVM虚拟机性能的影响:

zfs get compress,atime,recordsize,sync tank/kvm
 
NAME      PROPERTY     VALUE     SOURCE
tank/kvm  compression  off       local
tank/kvm  atime        off       inherited from tank
tank/kvm  recordsize   4K        local
tank/kvm  sync         standard  local

测试脚本用的这个fiosh

顺序读 顺序写 随机读IOPS 随机写IOPS 备注
intel s3710 200G 660 M/s 93 M/s 52371, 209 M/s 743, 3 M/s 换份2个区,10G用于Zil,剩下为cache
三星SM963 480G 460 M/s 105 M/s 41755, 167 M/s 11812, 47 M/s 换份2个区,10G用于Zil,剩下为cache
无缓存设备 362 M/s 54 M/s 45365, 181 M/s 655, 2.6 M/s
15k.3硬盘*2,raid-0@h710p 6965 M/s 349 M/s 45566, 182 M/s 28313, 113 M/s raid cache为强制writeback,read ahead
intel s3510 480G *4 raid-0@H710p 1630 MB/s 1744 MB/s 118349, 473M/s 34668, 138 M/s raid cache为强制writeback,read ahead
  • storage/zfs/kvm_on_zfs缓存的作用.txt
  • 最后更改: 2019/08/17 21:28
  • 由 mrco