On Sat, Sep 15, 2007 at 12:28:07AM -0500, Jordan Russell wrote: > (Kernel: 2.6.18, x86_64) > > Is it normal for an MD RAID1 partition with 1 active disk to perform > differently from a non-RAID partition? > > md0 : active raid1 sda2[0] > 8193024 blocks [2/1] [U_] > > I'm building a search engine database onto this partition. All of the > source data is cached into memory already (i.e., only writes should be > hitting the disk). > If I mount the partition as /dev/md0, building the database consistently > takes 18 minutes. > If I stop /dev/md0 and mount the partition as /dev/sda2, building the > database consistently takes 31 minutes. > > Why the difference? Maybe it's because md doesn't support barriers whereas the disks supports them? In this case some filesystems, for example XFS, will work faster on raid1 because they can't force the flush to disk using barriers. Just a guess... regards, iustin - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html