Skip to content

Instantly share code, notes, and snippets.

@bgulla
Last active August 21, 2021 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgulla/1574c961412e7a058e584bc663f293a6 to your computer and use it in GitHub Desktop.
Save bgulla/1574c961412e7a058e584bc663f293a6 to your computer and use it in GitHub Desktop.
Tests related to storing proxmox vms on a synology NFS over 10G

Speed-testing proxmox vms hosted on a Synology DS1821+ NFS over 10G

fio

rm fio-tempfile.dat; fio --name TEST --eta-newline=5s --filename=fio-tempfile.dat --rw=write --size=500m --io_size=10g --blocksize=1024k --ioengine=libaio --fsync=10000 --iodepth=32 --direct=1 --numjobs=1 --runtime=60 --group_reporting
# Note: if you dont delete an existing fio-template.dat, it will reuse the file and report corrupted speed tests (1150 vs 635)

Results

No Cache

Run status group 0 (all jobs):
  WRITE: bw=1095MiB/s (1148MB/s), 1095MiB/s-1095MiB/s (1148MB/s-1148MB/s), io=10.0GiB (10.7GB), run=9355-9355msec

Disk stats (read/write):
    dm-0: ios=0/10023, merge=0/0, ticks=0/284136, in_queue=284136, util=98.85%, aggrios=0/10246, aggrmerge=0/21, aggrticks=0/290369, aggrin_queue=275376, aggrutil=98.40%
  sda: ios=0/10246, merge=0/21, ticks=0/290369, in_queue=275376, util=98.40%

Writeback Cache (edit in ProxMox hard-disk)

Run status group 0 (all jobs):
  WRITE: bw=3940MiB/s (4131MB/s), 3940MiB/s-3940MiB/s (4131MB/s-4131MB/s), io=10.0GiB (10.7GB), run=2599-2599msec

Disk stats (read/write):
    dm-0: ios=0/10013, merge=0/0, ticks=0/56736, in_queue=56736, util=83.18%, aggrios=0/10243, aggrmerge=0/11, aggrticks=0/59642, aggrin_queue=38788, aggrutil=94.03%
  sda: ios=0/10243, merge=0/11, ticks=0/59642, in_queue=38788, util=94.03%

Conclusion

I will be enabling write-back cache on all of my network-hosted VMs. There are risks associated with power-loss and write-back, so UPS them servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment