Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I used mdadm (RAID 5) and ext4 before, I switched to ZFS On Linux (raidz) because of many reason. But when I working with small files, the performance is terrible. Only 7 MiB/s!?

How do I improved performance with the small files?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

What RPM and how many disks are you using? These are primary concerns in how random I/O can be distributed across the disks. In RAID 5, if you have 4 disks you can actively utilize 3 of the disks performance. In ZFS with RAIDZ it can be highly dependent on the disks, their RPM and the systems specifications. Also, if depends if you are trying to use deduplication and/or compressionas these can highly impact the RAM and CPU requirements.

ZFS is an extremely tunable file system. That is why we use it for our main online storage systems. You are most likely better off mirroring disks instead of using RAIDZ due to the calculations. Yes, you will lose more space but the performance benefits should outweigh the loss.

Also, this should most likely have been posted in ServerFault instead of SuperUser due to the nature of the users on each site.

share|improve this answer
    
I am using three WD Caviar Black with 7200 RPM. Any suggestion? –  比尔盖子 Feb 24 '13 at 5:17
    
Then that is most likely you actual issues. 7200 RPM SATA disks generally can only support 75-100 IOPS per disk. RAIDZ causes more disk IO than simple RAID because of how the comparison and block information is stored. For ZFS, use a mirror instead of raidz. Yes, you lose more space but you still get all of the ZFS features without the IO bottleneck. –  masteinhauser Apr 2 '13 at 16:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.