iversonm
May 15th, 2010, 01:50 PM
I am building a two machine cluster, and I have a real problem with SATA throughput on a new server I am configuring.
I have two HP DL120 G5s each with 2 1TB SATA drives. The first machine is about 6 months old, and is running 9.10 server, and is performing fine. Below is the output of hdparm:
$ sudo hdparm -tT /dev/sda; sudo hdparm -tT /dev/sdb
/dev/sda:
Timing cached reads: 3982 MB in 2.00 seconds = 1990.98 MB/sec
Timing buffered disk reads: 370 MB in 3.01 seconds = 123.09 MB/sec
/dev/sdb:
Timing cached reads: 3950 MB in 2.00 seconds = 1975.56 MB/sec
Timing buffered disk reads: 368 MB in 3.01 seconds = 122.45 MB/sec
The second machine, which is brand new, I installed 10.04 server on. (I intend to upgrade the first machine after I get the second up and running.) However, the disks are running at 1/5 of the speed of the first machine, as shown below:
/dev/sda:
Timing cached reads: 4764 MB in 2.00 seconds = 2382.51 MB/sec
Timing buffered disk reads: 74 MB in 3.02 seconds = 24.53 MB/sec
/dev/sdb:
Timing cached reads: 4732 MB in 2.00 seconds = 2366.23 MB/sec
Timing buffered disk reads: 92 MB in 3.10 seconds = 29.72 MB/sec
The disks are different brands on the two machines, (Seagate in the 1st, Samsung on the 2nd) but they are both similar 7200 rpm disks, as shown below. I could imagine a 5 to 10% difference between the two, but not a 5x performance difference.
sudo hdparm -i /dev/sda
/dev/sda:
Model=SAMSUNG, FwRev=1AA01109, SerialNo=S13PJ1EQ313339
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4
BuffType=DualPortCache, BuffSize=32767kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168
IORDY=on/off, tPIO={min:120,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 *udma6
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-3,4,5,6,7
* signifies the current active mode
sudo hdparm -i /dev/sda
/dev/sda:
Model=ST31000528AS, FwRev=CC35, SerialNo=9VP1HQ7L
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168
IORDY=on/off, tPIO={min:120,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 *udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-4,5,6,7
* signifies the current active mode
I reviewed all of the boot messages in dmesg, and can find no significant difference between the two machines.
Does anyone have any ideas on the root cause of my problem?
I have two HP DL120 G5s each with 2 1TB SATA drives. The first machine is about 6 months old, and is running 9.10 server, and is performing fine. Below is the output of hdparm:
$ sudo hdparm -tT /dev/sda; sudo hdparm -tT /dev/sdb
/dev/sda:
Timing cached reads: 3982 MB in 2.00 seconds = 1990.98 MB/sec
Timing buffered disk reads: 370 MB in 3.01 seconds = 123.09 MB/sec
/dev/sdb:
Timing cached reads: 3950 MB in 2.00 seconds = 1975.56 MB/sec
Timing buffered disk reads: 368 MB in 3.01 seconds = 122.45 MB/sec
The second machine, which is brand new, I installed 10.04 server on. (I intend to upgrade the first machine after I get the second up and running.) However, the disks are running at 1/5 of the speed of the first machine, as shown below:
/dev/sda:
Timing cached reads: 4764 MB in 2.00 seconds = 2382.51 MB/sec
Timing buffered disk reads: 74 MB in 3.02 seconds = 24.53 MB/sec
/dev/sdb:
Timing cached reads: 4732 MB in 2.00 seconds = 2366.23 MB/sec
Timing buffered disk reads: 92 MB in 3.10 seconds = 29.72 MB/sec
The disks are different brands on the two machines, (Seagate in the 1st, Samsung on the 2nd) but they are both similar 7200 rpm disks, as shown below. I could imagine a 5 to 10% difference between the two, but not a 5x performance difference.
sudo hdparm -i /dev/sda
/dev/sda:
Model=SAMSUNG, FwRev=1AA01109, SerialNo=S13PJ1EQ313339
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4
BuffType=DualPortCache, BuffSize=32767kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168
IORDY=on/off, tPIO={min:120,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 *udma6
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-3,4,5,6,7
* signifies the current active mode
sudo hdparm -i /dev/sda
/dev/sda:
Model=ST31000528AS, FwRev=CC35, SerialNo=9VP1HQ7L
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168
IORDY=on/off, tPIO={min:120,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 *udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-4,5,6,7
* signifies the current active mode
I reviewed all of the boot messages in dmesg, and can find no significant difference between the two machines.
Does anyone have any ideas on the root cause of my problem?