harddisk / hdparm performance trouble. knoppix vs centos

Issues related to hardware problems
XhonkX
Posts: 9
Joined: 2007/03/12 15:17:51

harddisk / hdparm performance trouble. knoppix vs centos

Postby XhonkX » 2007/03/12 15:45:24

hi all,

is there a way to speed up /dev/hdg under centos???
I tried to set readahead to 8 :-(


thx xhonkx


knoppix 3.7
root@0[knoppix]# hdparm /dev/hdg

/dev/hdg:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 14593/255/63, sectors = 120034123776, start = 0
root@0[knoppix]# hdparm -i /dev/hdg

/dev/hdg:

Model=WDC WD1200JB-00FUA0, FwRev=15.05R15, SerialNo=WD-WCAES1091967
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648
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
AdvancedPM=no WriteCache=enabled
Drive conforms to: device does not report version:

* signifies the current active mode

root@0[knoppix]# hdparm -t /dev/hdg

/dev/hdg:
Timing buffered disk reads: 138 MB in 3.01 seconds = 45.85 MB/sec
root@0[knoppix]#



centos server 4.4
[root@xxx ~]# hdparm /dev/hdg

/dev/hdg:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 16383/255/63, sectors = 120034123776, start = 0
[root@xxx ~]# hdparm -i /dev/hdg

/dev/hdg:

Model=WDC WD1200JB-00FUA0, FwRev=15.05R15, SerialNo=WD-WCAES1091967
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648
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
AdvancedPM=no WriteCache=enabled
Drive conforms to: device does not report version:

* signifies the current active mode

[root@xxx ~]# hdparm -t /dev/hdg

/dev/hdg:
Timing buffered disk reads: 106 MB in 3.04 seconds = 34.84 MB/sec

pjwelsh
Posts: 2570
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: harddisk / hdparm performance trouble. knoppix vs centos

Postby pjwelsh » 2007/03/12 19:27:26

Add "idebus=66" to the "kernel" line in "/etc/grub.conf" and reboot.

User avatar
WhatsHisName
Posts: 1534
Joined: 2005/12/19 20:21:43
Location: /earth/usa/nj

harddisk / hdparm performance trouble. knoppix vs centos

Postby WhatsHisName » 2007/03/12 19:37:38

You might be comparing apples and oranges.

Is CentOS running from hdg, whereas Knoppix is not? Usually makes a difference.

Also, run the slightly more honest test: hdparm -tT ...

Code: Select all

# [b]uname -rpmi[/b]
2.6.9-42.0.10.EL i686 i686 i386

# [b]hdparm -tT /dev/hde[/b]  # Was run 3 times

 Timing buffered disk reads:  150 MB in  3.02 seconds =  49.68 MB/sec
 Timing buffered disk reads:  146 MB in  3.02 seconds =  48.40 MB/sec
 Timing buffered disk reads:  148 MB in  3.02 seconds =  49.06 MB/sec

# [b]hdparm -I /dev/hde[/b]

ATA device, with non-removable media
        Model Number:       WDC WD3200JB-00KFA0
Standards:
        Supported: 6 5 4 3
        Likely used: 6
Capabilities:
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5

# [b]lspci | grep Promise[/b]

00:0d.0 Mass storage controller: Promise Technology, Inc. PDC20268 (Ultra100 TX2) (rev 02)
00:0e.0 Mass storage controller: Promise Technology, Inc. PDC20268 (Ultra100 TX2) (rev 02)

# [b]cat /proc/cpuinfo[/b]
model name      : Pentium III (Coppermine)
cpu MHz         : 796.571

XhonkX
Posts: 9
Joined: 2007/03/12 15:17:51

Re: harddisk / hdparm performance trouble. knoppix vs centos

Postby XhonkX » 2007/03/12 20:22:53

>[root@xxx ~]# hdparm -t /dev/hdg
>
>/dev/hdg:
>Timing buffered disk reads: 106 MB in 3.04 seconds = 34.90 MB/sec
>
>root@xxx ~]# cat /etc/grub.conf
>idebus=66

idebus=66 in /etc/grub.conf don´t work




>You might be comparing apples and oranges.

I don´t think so :-)
centos is running from /dev/hde.
swap is running from /dev/hde too.




>root@xxx ~]# uname -rpmi
>2.6.9-42.EL i686 i686 i386
>
>
>root@xxx ~]# hdparm -tT /dev/hdg
>
>Timing buffered disk reads: 104 MB in 3.05 seconds = 34.07 MB/sec
>
>[root@xxx ~]# hdparm -tT /dev/hde
>
> Timing buffered disk reads: 136 MB in 3.00 seconds = 45.26 MB/sec
>
>
>
>[root@xxx ~]# hdparm -I /dev/hde
>
>ATA device, with non-removable media
> Model Number: Maxtor 6Y080P0
>
>Standards:
> Supported: 7 6 5 4
> Likely used: 7
>
>Capabilities:
> DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6
>
>
>
>[root@xxx ~]# hdparm -I /dev/hdg
>
>ATA device, with non-removable media
> Model Number: WDC WD1200JB-00FUA0
>
>Standards:
> Supported: 6 5 4 3
> Likely used: 6
>
>Capabilities:
> DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
>
>
>
>
>
>[root@xxx ~]# lspci | grep Promise
>00:0e.0 Mass storage controller: Promise Technology, Inc. PDC20268 (Ultra100 TX2) (rev 02)
>
>
>root@xxx ~]# cat /proc/cpuinfo
>
>
>model name : Pentium III (Katmai)
>cpu MHz : 451.818

pjwelsh
Posts: 2570
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: harddisk / hdparm performance trouble. knoppix vs centos

Postby pjwelsh » 2007/03/12 20:51:58

You should have added the idebus=66 to the end of the default boot kernel line that was there, NOT on a line by itselft. So something like:

title CentOS (2.6.9-42.0.10.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.0.10.ELsmp ro root=/dev/md0 idebus=66
initrd /initrd-2.6.9-42.0.10.ELsmp.img

But you must reboot for that change to take affect.

XhonkX
Posts: 9
Joined: 2007/03/12 15:17:51

Re: harddisk / hdparm performance trouble. knoppix vs centos

Postby XhonkX » 2007/03/12 21:16:11

my mistake, sorry
I changed it to:

[root@xxx ~]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hde6
# initrd /initrd-version.img
#boot=/dev/hde
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS_ServerCD (2.6.9-42.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/1 idebus=66
initrd /initrd-2.6.9-42.EL.img


after the system reboot,....


[root@xxx ~]# hdparm -t /dev/hdg

/dev/hdg:
Timing buffered disk reads: 106 MB in 3.02 seconds = 35.09 MB/sec


[root@xxx ~]# hdparm /dev/hdg

/dev/hdg:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 16383/255/63, sectors = 120034123776, start = 0


[root@xxx ~]# hdparm -i /dev/hdg

/dev/hdg:

Model=WDC WD1200JB-00FUA0, FwRev=15.05R15, SerialNo=WD-WCAES1091967
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648
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
AdvancedPM=no WriteCache=enabled
Drive conforms to: device does not report version:

* signifies the current active mode

User avatar
WhatsHisName
Posts: 1534
Joined: 2005/12/19 20:21:43
Location: /earth/usa/nj

Re: harddisk / hdparm performance trouble. knoppix vs centos

Postby WhatsHisName » 2007/03/13 16:10:44

# uname -rpmi
2.6.9-42.EL i686 i686 i386

Try updating your system to the current CentOS kernel (2.6.9-42.0.10.EL).

I don’t remember having drive problems with the 2.6.9-42.EL kernel, but then again, I wasn’t looking for them, either.

XhonkX
Posts: 9
Joined: 2007/03/12 15:17:51

Re: harddisk / hdparm performance trouble. knoppix vs centos

Postby XhonkX » 2007/03/13 16:35:01

I updated the system.

[root@xxx ~]# uname -rpmi
2.6.9-42.0.10.EL i686 i686 i386

I tried with and without idebus=66.
kernel /vmlinuz-2.6.9-42.0.10.EL ro root=LABEL=/1 idebus=66

no way to speeding up!?!

pjwelsh
Posts: 2570
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: harddisk / hdparm performance trouble. knoppix vs centos

Postby pjwelsh » 2007/03/13 20:42:48

The Knoppix may just be running a new kernel with some speed enhancements for your chipset. Wait a few days for CentOS 5 may help.

Verify that your system is realy "idle" when doing the test. Check current disk status via "sar -d" (from sysstats package) or something similar. Make sure updatedb or anacron has not kicked in etc. You may resort to testing using the CentOS 4.4 rescue mode and test that way.

XhonkX
Posts: 9
Joined: 2007/03/12 15:17:51

Re: harddisk / hdparm performance trouble. knoppix vs centos

Postby XhonkX » 2007/03/13 22:25:50

>The Knoppix may just be running a new kernel with some speed enhancements for your chipset. Wait a few days for CentOS 5 may help.

knoppix 3.7 is running linux kernel 2.4.27

>Verify that your system is realy "idle" when doing the test. Check current disk status via "sar -d" (from sysstats package) or something similar. Make sure >updatedb or anacron has not kicked in etc. You may resort to testing using the CentOS 4.4 rescue mode and test that way

from sysstat package thx

it is a Pentium III cpu MHz 451.818 with 512 MB ram and a standard installation without X
system idle 95% one user :-)


Return to “CentOS 4 - Hardware Support”

Who is online

Users browsing this forum: No registered users and 1 guest