All of lore.kernel.org
 help / color / mirror / Atom feed
* RAID1 & 2.6.9 performance problem
@ 2005-01-17 15:22 Janusz Zamecki
  2005-01-17 15:39 ` Gordon Henderson
  2005-01-18 17:32 ` RAID1 & 2.6.9 performance problem J. Ryan Earl
  0 siblings, 2 replies; 22+ messages in thread
From: Janusz Zamecki @ 2005-01-17 15:22 UTC (permalink / raw)
  To: linux-raid

Hello!

After days of googling I've gave up and decided to ask for help.

The story is very simple: I have /dev/md6 raid1 array made of hdg and 
hde disks. The resulting array is as fast as 1 disk only.

Please check this out:

hdparm -t /dev/hdg /dev/hde /dev/md6

/dev/hdg:
  Timing buffered disk reads:  184 MB in  3.03 seconds =  60.76 MB/sec

/dev/hde:
  Timing buffered disk reads:  184 MB in  3.01 seconds =  61.08 MB/sec

/dev/md6:
  Timing buffered disk reads:  184 MB in  3.03 seconds =  60.74 MB/sec

I've expected much better /dev/md6 performance (at least 100MB/s).

It seems that md6 uses one drive only. This is the dstat output:

dstat -d -Dhdg,hde

--disk/hdg----disk/hde-
_read write _read write
    0     0 :   0     0
    0     0 :   0     0
    0     0 :52.5M    0
    0     0 :61.4M    0
    0     0 :62.5M    0
    0     0 :8064k    0
    0     0 :   0     0
    0     0 :   0     0
    0     0 :   0     0
23.9M    0 :   0     0
   62M    0 :   0     0
62.5M    0 :   0     0
33.9M    0 :   0     0
    0     0 :   0     0

In second terminal I've ran hdparm -t /dev/md6 twice (one by one).
As you can see the first hdparm reads from hde, while the second hdparm 
test reads from hdg. The next test reads from hde and so on.

I've tried to run small script, to run two hdparm tests simultanously:

hdparm -t /dev/md6 &
hdparm -t /dev/md6

This is the result:

--disk/hdg----disk/hde-
_read write _read write
    0     0 :   0     0
    0     0 :   0     0
  124k    0 :26.0M    0
  368k    0 :45.5M    0
    0     0 :   0     0
    0     0 : 896k    0
  124k    0 :1568k    0
    0     0 :   0     0

Strange, seems that hde is preferred.
If I run the same test again:

    0     0 :   0     0
30.6M    0 : 112k    0
41.1M    0 : 116k    0
    0     0 :   0     0
  360k    0 :   0     0
  124k    0 : 416k    0
    0     0 :   0     0

This time hdg is the preferred disk.

What is wrong? Is it possible to balance reads from both disks?

If you need more details I will more than happy to
send them to the list.

Best regards, Janusz

P.S.
More info:

cat /proc/mdstat
Personalities : [raid1]
md6 : active raid1 hdg[1] hde[0]
       195360896 blocks [2/2] [UU]



hdparm -i /dev/hdg /dev/hde

/dev/hdg:

  Model=ST3200822A, FwRev=3.01, SerialNo=***
  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
  BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
  CurCHS=65535/1/63, CurSects=4128705, LBA=yes, LBAsects=268435455
  IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
  PIO modes:  pio0 pio1 pio2 pio3 pio4
  DMA modes:  mdma0 mdma1 mdma2
  UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
  AdvancedPM=no WriteCache=enabled
  Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2:

/dev/hde:

  Model=ST3200822A, FwRev=3.01, SerialNo=***
  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
  BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
  CurCHS=65535/1/63, CurSects=4128705, LBA=yes, LBAsects=268435455
  IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
  PIO modes:  pio0 pio1 pio2 pio3 pio4
  DMA modes:  mdma0 mdma1 mdma2
  UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
  AdvancedPM=no WriteCache=enabled
  Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2:



hdparm  /dev/hdg /dev/hde

/dev/hdg:
  multcount    = 16 (on)
  IO_support   =  1 (32-bit)
  unmaskirq    =  1 (on)
  using_dma    =  1 (on)
  keepsettings =  0 (off)
  readonly     =  0 (off)
  readahead    = 512 (on)
  geometry     = 24321/255/63, sectors = 390721968, start = 0

/dev/hde:
  multcount    = 16 (on)
  IO_support   =  1 (32-bit)
  unmaskirq    =  1 (on)
  using_dma    =  1 (on)
  keepsettings =  0 (off)
  readonly     =  0 (off)
  readahead    = 512 (on)
  geometry     = 24321/255/63, sectors = 390721968, start = 0

from dmesg:
SiI680: IDE controller at PCI slot 0000:00:0b.0
SiI680: chipset revision 2
SiI680: BASE CLOCK == 133
SiI680: 100% native mode on irq 5
     ide2: MMIO-DMA , BIOS settings: hde:pio, hdf:pio
     ide3: MMIO-DMA , BIOS settings: hdg:pio, hdh:pio


^ permalink raw reply	[flat|nested] 22+ messages in thread
* RAID1 Corruption
@ 2004-07-30 15:44 Tony Mantler
  0 siblings, 0 replies; 22+ messages in thread
From: Tony Mantler @ 2004-07-30 15:44 UTC (permalink / raw)
  To: linux-kernel

Ok, here's the deal. My friend has a Dual-CPU PowerMac 9600, and it's 
randomly corrupting it's filesystem. Kernel is 2.6.5, unpatched.

Currently it's set up as thus:

IDE Harddrives -> MD RAID1 -> LVM -> XFS

Everything works fine with only one drive in the RAID1 (not that it's 
much of a RAID1 that way). Add in a second drive (100% clean), sync it 
up, and it eats the filesystem.

I'm really quite baffled as to why this is happening, and my friend is 
getting understandably frustrated.

# uname -a
Linux egunn 2.6.5 #4 SMP Thu Jun 24 22:15:21 CDT 2004 ppc GNU/Linux

# cat /proc/ide/pdc202xx

                                 Ultra66 Chipset.
------------------------------- General Status 
---------------------------------
Burst Mode                           : enabled
Host Mode                            : Tri-Stated
Bus Clocking                         : 100 External
IO pad select                        : 10 mA
Status Polling Period                : 15
Interrupt Check Status Polling Delay : 15
--------------- Primary Channel ---------------- Secondary Channel 
-------------
                 disabled                         disabled
66 Clocking     enabled                          enabled
            Mode MASTER                      Mode MASTER
                 Error                            Error
--------------- drive0 --------- drive1 -------- drive0 ---------- 
drive1 ------
DMA enabled:    yes              yes             yes               yes
DMA Mode:       UDMA 4           NOTSET          UDMA 4            
NOTSET
PIO Mode:       PIO 4            NOTSET           PIO 4            
NOTSET

# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5]
md0 : active raid1 hde[0] hdg[1]
       40146560 blocks [2/2] [UU]

unused devices: <none>

# pvdisplay
   --- Physical volume ---
   PV Name               /dev/md0
   VG Name               raid40gs
   PV Size               38.29 GB / not usable 0
   Allocatable           yes (but full)
   PE Size (KByte)       4096
   Total PE              9801
   Free PE               0
   Allocated PE          9801
   PV UUID               lKMk7i-S9Ex-OWsl-tp1Y-ujvy-GrgS-sINUpT
# vgdisplay
   --- Volume group ---
   VG Name               raid40gs
   System ID
   Format                lvm2
   Metadata Areas        1
   Metadata Sequence No  4
   VG Access             read/write
   VG Status             resizable
   MAX LV                0
   Cur LV                3
   Open LV               3
   Max PV                0
   Cur PV                1
   Act PV                1
   VG Size               38.29 GB
   PE Size               4.00 MB
   Total PE              9801
   Alloc PE / Size       9801 / 38.29 GB
   Free  PE / Size       0 / 0
   VG UUID               96IWfR-zm53-3qD8-ZilV-9zW6-VG87-36QqDI

# lvdisplay
   --- Logical volume ---
   LV Name                /dev/raid40gs/var
   VG Name                raid40gs
   LV UUID                jgdM0R-fp4I-LgAl-s1vI-63i0-WHX6-OfnU69
   LV Write Access        read/write
   LV Status              available
   # open                 1
   LV Size                4.88 GB
   Current LE             1250
   Segments               1
   Allocation             inherit
   Read ahead sectors     0
   Block device           253:0

   --- Logical volume ---
   LV Name                /dev/raid40gs/usr
   VG Name                raid40gs
   LV UUID                hWtNL5-gfaq-jwj4-R6XD-Sew2-TKCy-fxLKrW
   LV Write Access        read/write
   LV Status              available
   # open                 1
   LV Size                4.88 GB
   Current LE             1250
   Segments               1
   Allocation             inherit
   Read ahead sectors     0
   Block device           253:1

   --- Logical volume ---
   LV Name                /dev/raid40gs/home
   VG Name                raid40gs
   LV UUID                myekKQ-eXR7-0dGV-ZMg6-ISPG-Hijh-ZmDA5V
   LV Write Access        read/write
   LV Status              available
   # open                 1
   LV Size                28.52 GB
   Current LE             7301
   Segments               1
   Allocation             inherit
   Read ahead sectors     0
   Block device           253:2


--
Tony 'Nicoya' Mantler -- Master of Code-fu -- nicoya@ubb.ca
--  http://nicoya.feline.pp.se/  --  http://www.ubb.ca/  --


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2005-01-18 19:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-17 15:22 RAID1 & 2.6.9 performance problem Janusz Zamecki
2005-01-17 15:39 ` Gordon Henderson
2005-01-17 15:51   ` Hans Kristian Rosbach
2005-01-17 16:46     ` Peter T. Breuer
2005-01-18 13:18       ` Hans Kristian Rosbach
2005-01-18 13:43         ` Peter T. Breuer
2005-01-17 20:49     ` Janusz Zamecki
2005-01-17 16:24   ` Andrew Walrond
2005-01-17 16:51     ` Is this hdparm -t output correct? (was Re: RAID1 & 2.6.9 performance problem) Andy Smith
2005-01-17 17:04       ` Andrew Walrond
2005-01-17 18:26         ` RAID1 Corruption Markus Gehring
2005-01-17 19:14           ` Paul Clements
2005-01-17 19:35             ` Tony Mantler
2005-01-17 19:42             ` Markus Gehring
2005-01-17 19:21           ` Sven Anders
2005-01-18 17:32 ` RAID1 & 2.6.9 performance problem J. Ryan Earl
2005-01-18 17:34   ` J. Ryan Earl
2005-01-18 18:41     ` Janusz Zamecki
2005-01-18 19:18       ` J. Ryan Earl
2005-01-18 19:34         ` Janusz Zamecki
2005-01-18 19:12   ` Janusz Zamecki
  -- strict thread matches above, loose matches on Subject: below --
2004-07-30 15:44 RAID1 Corruption Tony Mantler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.