Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 2010 21:45:44 GMT
From:      Marko <marko.krajnc@cursor.si>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/142365: FreeBSD RAID1 (gmirror) is much slower than Linux RAID1!
Message-ID:  <201001052145.o05Lji35077777@www.freebsd.org>
Resent-Message-ID: <201001052150.o05Lo2mg039537@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         142365
>Category:       misc
>Synopsis:       FreeBSD RAID1 (gmirror) is much slower than Linux RAID1!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 05 21:50:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Marko
>Release:        7.1
>Organization:
www.cursor.si
>Environment:
32bit and 64 bit
>Description:
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.
>How-To-Repeat:
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.

>Fix:
not known (at least for software RAID1)

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001052145.o05Lji35077777>