Tried an SSD as a data disk.....


bubbaQ

Recommended Posts

I had a spare 16GB SSD (SLC, and not the fastest thing in the world, but good enough) so I thought I'd try it out as a data disk in unRAID 4.5

 

I benchmarked it before adding it to the array, and got 75MB/sec writes and 110 MB/sec reads.

 

Parity is a 320GB WD Blue (7200RPM, 16MB cache)

 

I benchmarked the parity drive before adding it to the array, and got 100 MB/sec writes and 115 MB/sec reads.

 

Both drives are on different SATA channels on the mobo, and both were empty.  They are the only 2 drives in the array.

 

Parity calc started at 105MB/sec... tapering off to end at 52MB/sec.

 

Writes to the SSD after parity was finished were 40MB/sec.

 

Unfortunately, the SSD is not large enough to make it a parity disk and I don't have 2 of them.

Link to comment
Writes to the SSD after parity was finished were 40MB/sec.

 

What do you use as a benchmark to get this number? I see allot of numbers people report and mine never come near this.

My only way to test some of this is through real world tests with an rsync between machines to a specific disk share. Then I can benchmark throughput, pauses and get an average sense of non interrupted transfer rate.

 

I'm also on the edge of purchasing two of the Intel 40G ssd's. Zipzoomfly has a good price on them.

I'm considering the swap out my system drives for these or the vertex 60G units ittle by little.

Link to comment
You can always set the HPA on the larger 320G parity disk too make it look the same size as the SSD by using the

hdparm -N

 

Great idea.....

 

With SSD as parity, and the WD Blue as data, first parity calc ran at about 75MB/sec.

 

The second parity check ran at 102MB/sec.

 

Internal write test using dd with were 37MB/sec.

 

Testing over the LAN:

Read speed was 57.5MB/sec.

Write speed was 34.5MB/sec.

 

And the "spikiness" when writing was apparent... see this image:

bench1.jpg.84ac67724651e591f4f251a1dbc2ee31.jpg

Link to comment
  • 2 weeks later...

I just made a special kernel build of kernel 2.6.32.7 with unRAID 4.5.1, in order to try the new flushing system introduced in the 2.6.32 kernel, doing away with pdflush.

 

Wow.

 

All the "spikiness" when writing to the array over the LAN is gone.

 

Compare this graph:

 

pic.jpg

 

to the old one using the exact same system, but with the older kernel:

 

index.php?action=dlattach;topic=5146.0;attach=2418;image

 

Write speeds were 20% faster too.

Link to comment

By using the SSD as a cache parity disk, eliminating rotational delays and seeking, I was able to get darn close to the theoretical maximum.  Consider this:

 

If you are writing 1GB to unRAID, you have to read 1GB and write 1GB.  There has been a lot of discussion of the optimization from reading a bunch at once, then queuing the writes and writing them back in a batch.

 

Consider a drive (such as mine) that reads at 100MB/sec and writes at 75MB/sec.  So theoretically it takes 10 seconds of reading and 13.3 seconds of writing for a total of 23.3 seconds to write 1GB to unRAID.  That means 43MB/sec of maximum theoretical throughput.  Using this formula, and I/O specs for your drives, you can easily calculate the maximum theoretical throughput for your system.  

 

I was able to do consistently over 40MB/sec (i.e. 93% of theoretical max) with the SSD as cache parity, and the WD Blue as data.  I'll try to scrounge up some other drives to do some more testing.

 

Link to comment

I swapped the drives so the WD Blue is parity, and the SSD is data. All results were essentially the same.... sustained ~40MB/sec transfers and no spikiness.

 

Unfortunately, I don't have another SATA drive laying around at the moment to test it with two rotating media.

Link to comment
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.