Skip to content

Flash disk cost and performance (USB, SSD, SDHC)

I’ve been reading up on using a USB flash drive as an L2ARC for ZFS. Some reason that since the bandwidth of USB is much lower than SATA. However, others reason that since the USB flash drive has no seek time, it will speed up non-sequential reads, which is what the L2ARC is there for. (ZFS is supposed to bypass the L2ARC for sequential workloads.)

I set out to test run-of-the-mill USB drives to see what sort of performance they give. Both magnetic and solid-state drives perform much better with sequential workloads than with random-access workloads. However, I concluded that SSD’s performance doesn’t suffer nearly as badly.

Price

This will all change, but at the time of writing (January 2011):

True SATA-based SSD’s cost a little over $2/GB–if you’re willing to get a large one. 16 GB are around $3/GB, and 8GB around $4/GB.

USB 2.0 flash drives can be had for around $1/GB (on sale, but $2/GB nominally) in the 8GB – 16GB range. SDHC and CompactFlash cards are around $2/GB–especially if you want high performance (class 10 SDHC or 133x CF).

The thing is that a small drive will do the job, and I don’t want to spend more than I need to.

Performance

In all cases, I used the exceptional Crystal Disk Mark.

The two USB flash drives were by Imation: a 4GB and a 16GB, both the “swivel” kind (capless). I don’t know the model # of the 4GB, but I think the 16GB is Imation USB 2.0 Swivel Flash Drive – USB flash drive – 16 GB – Hi-Speed USB. It should be also noted that the 4GB model is pretty beat up by being in my backpack for a couple years. The 16GB is like new (been in my dad’s drawer probably for a year and a half).

Work Laptop

This is my baseline fast computer, which has an SSD, so I can test a true SSD’s performance.

SSD via SATA:

4GB Imation Swivel USB flash:

16 GB Imation Swivel USB Flash:

Summary

The SSD has a 3x-5x performance over the USB drives for sequential reads. However, this margin reduces to 2x for random reads. The 16 GB works better for sequential reads than the 4 GB flash. However, there is no difference for random reads.

Atom D525 PC

I was curious whether the above would hold on a different PC. Namely, I wanted to test the target (for FreeBSD/ZFS) computer to make sure it could handle the I/O.

C: drive (60 GB partition on 500 GB SATA)

16 GB Imation

Summary

The magnetic HDD performance drops off like a cliff for random workloads–presumably due to drive-head seek times. This confirms the notion that even a USB flash drive can improve the performance.

I was surprised to see the sequential read (and write) on the eSATA magnet HDD beat the flash SSD in my work laptop.

Dell Dimension 8400 Pentium 4

Mostly for completeness.

250 GB SATA Magnetic HDD

4 people like this post.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*