misc/142365: FreeBSD RAID1 (gmirror) is much slower than Linux
marko.krajnc at cursor.si
Tue Jan 5 21:50:03 UTC 2010
>Synopsis: FreeBSD RAID1 (gmirror) is much slower than Linux RAID1!
>Arrival-Date: Tue Jan 05 21:50:02 UTC 2010
32bit and 64 bit
I run many servers with double hard-disk for lowering the risk of data loss. I normally use software RAID1 on these systems (RAID1 is giving me very simple situation if one disk fails, software RAID1 is making my hardware cheaper).
After doing extensive performance testing in FreeBSD 7.1 I found out, that FreeBSD is much faster in arithmetic calculations than Linux. But when I tried to store data in the database (PostgreSQL) I was very dissapointed. The same hardware configuration is by factor 2 or 3 times slower than Linux, because of very slow gmirror.
Gmirror is even slower than disk access without RAID at all... (although 2 disks are available and therefore reads should be 2x faster).
I compared Scientific Linux 5.4 (based on Red Hat Enterprise 5.4) with FreeBSD 7.1.
I googled much on this topic, but there is no solution. One issue-ticked on this topic got very low priority. I had to decide to use Linux instead, because it was much faster for my servers.
Please make GMIRROR faster in the next releases.
1) Install GMIRROR on FreeBSD according to the User Manual.
2) Do performance measurements (disk access).
3) Then install CentOS 5.4 or Scientific Linux 5.4 and make software RAID1 within the installation wizard.
4) Do performance measurements (disk access).
5) Compare performance measurements.
not known (at least for software RAID1)
More information about the freebsd-bugs