Guest User

Rich - ZFS Followup

a guest
May 18th, 2016
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. This is a followup to your response to my question in Episode 141@1:34:35
  2.  
  3. I have since upgraded FreeNAS 9.3 to 9.10.
  4.  
  5. The iTunes music library is not contained within the VDI file, the VM connects to SAMBA on the FreeNAS where the music repository is located on a dataset. I'm not that bad of a Noob. LOL. The VDI file is large only to allow room for future upgrades. (My original VDI size was not large enough to allow Windows XP to be upgraded to Windows 7 so I made the VDI file size large enough that I don't have to worry about future upgrades should they be needed). This iTunes VM is only occasionally used for iOS upgrades and backups, I'm not a fan of the iCloud and keep it disabled.
  6.  
  7. You suggested - Disable rsync compression - this is disabled by default and requires "-z" to enable, I do not enable this.
  8.  
  9. You suggested - Use "dd" as a test, I assume you meant from linux desktop, mount nfs volume to where vdi file is and then run:
  10.  
  11. $ dd if=iTunesLibraryDynamic.vdi of=/dev/null bs=1MB
  12. 1622+0 records in
  13. 1621+0 records out
  14. 1621000000 bytes (1.6 GB, 1.5 GiB) copied, 26.3588 s, 61.5 MB/s
  15.  
  16. I ran it a few times for different time duration, each result was very close to above such as:
  17.  
  18. 21444+0 records in
  19. 21443+0 records out
  20. 21443000000 bytes (21 GB, 20 GiB) copied, 335.384 s, 63.9 MB/s
  21.  
  22. I ran this one on the FreeNas directly (513MB/sec ?? wow)
  23.  
  24. dd if=iTunesLibraryDynamic.vdi of=/dev/null bs=1M
  25. 23747+0 records in
  26. 23747+0 records out
  27. 24900534272 bytes transferred in 48.507604 secs (513332594 bytes/sec)
  28.  
  29. You suggested - rsync "sparse" which looks very handy for the 1st time you run a backup via rsync, but subsequent backups look like they should use "--inplace" instead (only blocks which have changed). To test the "--inplace" I wanted to make sure enough blocks had been updated for a typical use case, so for each VM I updated guest additions and ran windows updater to apply patches, etc.
  30.  
  31. Results:
  32.  
  33. main/vm_storage/QuickBooksPro/QuickBooksPro.vdi
  34. 49,358,569,472 100% 34.35MB/s 0:22:50 (xfr#51, to-chk=15/62084)
  35.  
  36. main/vm_storage/iTunesLibrary/iTunesLibraryDynamic.vdi
  37. 72,868,691,968 100% 41.68MB/s 0:27:47 (xfr#58, to-chk=6/62084)
  38.  
  39. That is much improved over the 11MB/sec to 13MB/sec I was getting but still very low for gigabit Ethernet.
  40.  
  41. Q: In my research I saw recommendations to use much weaker encryption with Rsync and SSH such as ArcFour, but you did not make any comments related to encryption and throughput. Even over my own network, I think I would rather wait a little longer then to allow weaker encryption, but I'm open to suggestions. The debug on my ssh connection reports:
  42.  
  43. debug1: kex: server->client cipher: aes192-ctr MAC: hmac-sha2-256 compression: none
  44. debug1: kex: client->server cipher: aes192-ctr MAC: hmac-sha2-256 compression: none
  45.  
  46. Output of TOP while ssh/rsync is in progress:
  47.  
  48. last pid: 1924; load averages: 1.34, 1.07, 0.67 up 3+21:17:17 20:54:05
  49. 79 processes: 2 running, 77 sleeping
  50. CPU: 13.2% user, 0.1% nice, 6.6% system, 0.3% interrupt, 79.7% idle
  51. Mem: 12M Active, 1408M Inact, 29G Wired, 286M Free
  52. ARC: 27G Total, 26G MFU, 384M MRU, 6560K Anon, 126M Header, 584M Other
  53. Swap: 8192M Total, 8192M Free
  54.  
  55. PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
  56. 1299 root 1 89 0 56816K 7740K RUN 3 4:48 55.86% ssh
  57. 1298 root 1 36 0 16900K 3096K select 0 2:10 25.20% rsync
  58. 2881 root 12 21 0 235M 29660K nanslp 2 15:26 0.00% collectd
  59.  
  60. Thanks for any additional suggestions you may have.
  61.  
  62. -Rich
Advertisement
Add Comment
Please, Sign In to add comment