Other disappointing performance of gstripe vs mdadm

At the risk of triggering a few zealots, I have been profiling throughput on a dual boot machine (debian 12 and BSD 15) where I created a 4KB chunk size RAID0 volume of 200GB that is accessible from both BSD and Linux (two disk volume). The volume is non-persistent so I create it at boot time on each OS. Anyways, the filesystem is ext2 and I've loaded it up with 181 files totaling 26.8GB in size.

I'm hoping someone can adequately explain the difference in performance between Linux and BSD. Raw sequential volume reads are about 180MB/sec in Linux and 60MB/sec in BSD (measured by timing dd raw device reads). Sequential filesystem reads are 150MB/sec in Linux and 50MB/sec in BSD (measured by cumulatively catt-ing files to /dev/null before they have been cached by the FS cache). I have not profiled write times. But...the 3times better performance in Linux is something that cannot be ignored. Any unbiased technical explanations of why the difference?

And no, I don't want to have a discussion about ZFS. I need a least common denominator shared drive between Linux and BSD in dual boot so RAID0/ext2 fits the bill.
 
dd of the raw dev seems to low assuming a bs of 4k or higher. but i never tried gstripe so it might be buggy.
is a graid level = RAID1 as slow too ?
 
I found that gmirror was really slow. Ok it is a mirror and the disks are SATA1 but it was slow.
I found that just by -a aligning the sectors for gpart add on the first partition it sped up by double.
Granted this is super small medium of paired 16GB Innodisk SSD.
Code:
gpart add -t efi -a4k -s 200M /dev/mirror/gm0
gpart add -t freebsd-ufs /dev/mirror/gm0


I use diskinfo. I don't know how accurate it is with cache but it is a standard for me.
Inner sectors and Outer sectors are so quaint. But its my built-in speedometer.
 
Back
Top