brando56894
Wizard
- Joined
- Feb 15, 2014
- Messages
- 1,537
In an attempt to learn more and get a better IT job, I've been trying to get the most out of my NAS. I've added a SLOG (128 GB Intel S3700) to my storage pool and spun up a few Ubuntu VMs with VirtualBox. Originally it was only going to be one for all of my Usenet Apps and webserver duties, but I used Ubuntu 15.10 and PuppetLabs only supports up to 14.04, so I created another VM just for Puppet Enterprise, then I realized I needed a "throw-away" VM for testing. The first VM has an EXT4 drive attached via iSCSI that comes from my main storage pool, the other two are VMDKs in my main storage pool.
Everything was fine for a day or two but then I noticed that my NFS speeds were slowing to a crawl, like 1-15 MB/sec, everything else on average is about 80 MB/sec externally or about up to 110 MB/sec if using NFS between VMs or Jails. If I try to copy large chunks of data (1-50 GB)it will start out quick but quickly slow down to a crawl. During this time nothing is really taxed in the VM, CPU utilization is in the 25-50% range per core, RAM usage is about 75%. The stats of the NAS itself looks about the same, even though it's running 3 VMs and Plex, while managing my pool. Just for the hell of it, I transferred a few gigs from the NAS over NFS (from FreeNAS itself, not via a VM) to Arch Linux I have on my PC and it was going from 45-90 MB/sec.
Rebooting the VMs didn't help at all, restarting the PhpVirtualBox jail, didn't help either. Neither did restarting NFS. I removed the RSIZE and WSIZE mount options that I had and that brought it to a stable 12 MB/sec. Enabling the sync mount option didn't seem to help any.
FreeNAS/Network Layout
System Specs
NAS
AsRock C2750D4I @2.4GHz ** 32GB (4x8GB Dual Channel) Crucial ECC 1600MHz ** SilverStone DS380 case ** SilverStone 600W SFX Gold PSU
Pools
Multimedia: 2x1 TB WD RED, 4x4TB HGST, 2x3TB WD Green attached to LSI M1015 IT HBA
FreeNAS Boot: 4GB InnoDisk SATA DOM
Test Results
Creating a file on Ubuntu Server (iSCSI)
Transferring that file from the VM to an NFS share
Transferring from Arch to the Storage dataset over NFS was like a sine wave, with peaks as high as 250 MB/sec and valleys as low as 500 KB/sec.
Using dd
Zpool Status
Zpool List
Everything was fine for a day or two but then I noticed that my NFS speeds were slowing to a crawl, like 1-15 MB/sec, everything else on average is about 80 MB/sec externally or about up to 110 MB/sec if using NFS between VMs or Jails. If I try to copy large chunks of data (1-50 GB)it will start out quick but quickly slow down to a crawl. During this time nothing is really taxed in the VM, CPU utilization is in the 25-50% range per core, RAM usage is about 75%. The stats of the NAS itself looks about the same, even though it's running 3 VMs and Plex, while managing my pool. Just for the hell of it, I transferred a few gigs from the NAS over NFS (from FreeNAS itself, not via a VM) to Arch Linux I have on my PC and it was going from 45-90 MB/sec.
Rebooting the VMs didn't help at all, restarting the PhpVirtualBox jail, didn't help either. Neither did restarting NFS. I removed the RSIZE and WSIZE mount options that I had and that brought it to a stable 12 MB/sec. Enabling the sync mount option didn't seem to help any.
FreeNAS/Network Layout
System Specs
NAS
AsRock C2750D4I @2.4GHz ** 32GB (4x8GB Dual Channel) Crucial ECC 1600MHz ** SilverStone DS380 case ** SilverStone 600W SFX Gold PSU
Pools
Multimedia: 2x1 TB WD RED, 4x4TB HGST, 2x3TB WD Green attached to LSI M1015 IT HBA
FreeNAS Boot: 4GB InnoDisk SATA DOM
Test Results
Creating a file on Ubuntu Server (iSCSI)
Code:
[root@ubuntu /home/bran]$ dd if=/dev/zero of=/test.img bs=2M count=10k 10240+0 records in 10240+0 records out 21474836480 bytes (21 GB) copied, 310.126 s, 69.2 MB/s
Transferring that file from the VM to an NFS share
Code:
[root@ubuntu /home/bran]$ rsync -a --progress /test.img /mnt/storage/ sending incremental file list test.img 3,455,942,656 16% 15.95MB/s 0:18:23 ^C
Transferring from Arch to the Storage dataset over NFS was like a sine wave, with peaks as high as 250 MB/sec and valleys as low as 500 KB/sec.
Code:
[bran@ra ~]$ sudo rsync -a --progress /test.img storage/ sending incremental file list test.img 21,474,836,480 100% 102.00MB/s 0:03:20 (xfr#1, to-chk=0/1)
Using dd
Code:
bran@ubuntu ~]$ sudo dd if=/dev/zero of=/mnt/storage/test2.img bs=2M count=10k [sudo] password for bran: 10240+0 records in 10240+0 records out 21474836480 bytes (21 GB) copied, 743.862 s, 28.9 MB/s
Code:
[bran@ra ~]$ sudo dd if=/dev/zero of=storage/test3.img bs=2M count=10k 10240+0 records in 10240+0 records out 21474836480 bytes (21 GB) copied, 269.684 s, 79.6 MB/s
Zpool Status
Code:
[root@freenas] ~# zpool status pool: Jails state: ONLINE scan: scrub repaired 0 in 0h2m with 0 errors on Sun Jan 10 00:02:40 2016 config: NAME STATE READ WRITE CKSUM Jails ONLINE 0 0 0 gptid/cc405949-97df-11e5-9d1c-d050995af954 ONLINE 0 0 0 errors: No known data errors pool: Multimedia state: ONLINE scan: scrub repaired 0 in 10h37m with 0 errors on Wed Jan 13 13:40:28 2016 config: NAME STATE READ WRITE CKSUM Multimedia ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gptid/4fd4b885-4c4f-11e5-8d85-d050995af954 ONLINE 0 0 0 gptid/509d70f1-4c4f-11e5-8d85-d050995af954 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 gptid/90e165c0-4dd5-11e5-8d85-d050995af954 ONLINE 0 0 0 gptid/920769a5-4dd5-11e5-8d85-d050995af954 ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 gptid/201649ba-b4f3-11e5-b564-d050995af954 ONLINE 0 0 0 gptid/2f316e6d-b55b-11e5-b564-d050995af954 ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 gptid/0a4a27a4-4e7d-11e5-8d85-d050995af954 ONLINE 0 0 0 gptid/0b3cc4f1-4e7d-11e5-8d85-d050995af954 ONLINE 0 0 0 logs gptid/3a497d13-b4f6-11e5-b564-d050995af954 ONLINE 0 0 0 errors: No known data errors pool: freenas-boot state: ONLINE scan: resilvered 619M in 0h33m with 0 errors on Thu Jan 28 17:33:39 2016 config: NAME STATE READ WRITE CKSUM freenas-boot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gptid/6ed1154b-37f4-11e5-a114-d050995af954 ONLINE 0 0 0 da8p2 ONLINE 0 0 0 errors: No known data errors
Zpool List
Code:
[root@freenas] ~# zpool list NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT Jails 101G 27.1G 73.9G - 27% 26% 1.00x ONLINE /mnt Multimedia 9.97T 7.80T 2.17T 16.0E 17% 78% 1.00x ONLINE /mnt freenas-boot 3.66G 627M 3.04G - - 16% 1.00x ONLINE -
Last edited: