LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-18-2006, 06:19 PM   #1
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Rep: Reputation: 30
Slow disk?


I just tested my hd for speed using hdparm

Code:
localhost anakin # hdparm -t /dev/hda

/dev/hda:
 Timing buffered disk reads:   72 MB in  3.04 seconds =  23.68 MB/sec
localhost anakin #
I believe that is TOO low!

My hd is a 80 wd pata drive :

Code:
localhost anakin # cat /proc/ide/hda/model
WDC WD800JB-00ETA0
localhost anakin #
I have even tried this
Code:
hdparm -c 1 -d 1 -k 1 /dev/hda
, but it didn't help quite much

My ide chipset is
Code:
localhost anakin # lspci |grep -i ide
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
localhost anakin #
Why is my drive sooooooooo slow?

What should i do ??


PS
Code:
localhost anakin # hddtemp /dev/hda
/dev/hda: WDC WD800JB-00ETA0: 45 C
. Looks normal

Last edited by Braveheart1980; 09-18-2006 at 06:44 PM.
 
Old 09-18-2006, 06:55 PM   #2
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Are you running some exotic kernel patches or something else in the background?
 
Old 09-18-2006, 06:59 PM   #3
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by crashmeister
Are you running some exotic kernel patches or something else in the background?
Nope

I just noticed that in your post in the other thread that your udma is 5
Mine is 2

But strange enough i can't set it over udma2!

Code:
localhost ~ # hdparm -X udma3 /dev/hda && hdparm -i /dev/hda

/dev/hda:
 setting xfermode to 67 (UltraDMA mode3)

/dev/hda:

 Model=WDC WD800JB-00ETA0, FwRev=77.07W77, SerialNo=WD-WCAHL4796641
 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=156301488
 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: Unspecified:  ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6

 * signifies the current active mode
The same happens with udma 3,4 and 5!
I mean i set it ok,but then the hdparm -i , informs me that the udma mode is still 2!
Any ideas what is going on?
 
Old 09-18-2006, 07:19 PM   #4
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Didn't even see the udma2 thing - must be getting old.
That definitely is a problem.I get the same speed like you with udma2.
Try to check with the BIOS what is enabled there - heck I don't even know if Linux cares about the BIOS settings there.Might make sense to try what 'dmesg | grep UDMA' spits out and then check what is enabled in the BIOS.
 
Old 09-18-2006, 07:26 PM   #5
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Well..

Code:
localhost anakin # dmesg | grep UDMA
hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(33)
ide0: Speed warnings UDMA 3/4/5 is not functional
WoW!Not functional!

But my hard drive supports udma up to 6!

Code:
localhost anakin # hdparm -I /dev/hda

/dev/hda:

ATA device, with non-removable media
        Model Number:       WDC WD800JB-00ETA0
        Serial Number:      WD-WCAHL4796641
        Firmware Revision:  77.07W77
Standards:
        Supported: 6 5 4 3
        Likely used: 6
Configuration:
        Logical         max     current
        cylinders       16383   65535
        heads           16      1
        sectors/track   63      63
        --
        CHS current addressable sectors:    4128705
        LBA    user addressable sectors:  156301488
        LBA48  user addressable sectors:  156301488
        device size with M = 1024*1024:       76319 MBytes
        device size with M = 1000*1000:       80026 MBytes (80 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        bytes avail on r/w long: 74     Queue depth: 1
        Standby timer values: spec'd by Standard, with device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 128, current value: 254
        DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    READ BUFFER cmd
           *    WRITE BUFFER cmd
           *    Host Protected Area feature set
           *    Look-ahead
           *    Write cache
           *    Power Management feature set
                Security Mode feature set
                SMART feature set
           *    FLUSH CACHE EXT command
           *    Mandatory FLUSH CACHE command
           *    Device Configuration Overlay feature set
           *    48-bit Address feature set
           *    Automatic Acoustic Management feature set
                SET MAX security extension
           *    DOWNLOAD MICROCODE cmd
           *    SMART self-test
           *    SMART error logging
Security:
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
HW reset results:
        CBLID- above Vih
        Device num = 0 determined by CSEL
Checksum: correct
I checked in BIOS and i have a problem even there!
In auto mode it detects my hd as udma2
If i set it to manual mode and change the value of udma to 5 , i can't boot to linux !

Is it a hard drive error?A BIOS error?

What is going on after all?!?

Last edited by Braveheart1980; 09-18-2006 at 07:32 PM.
 
Old 09-18-2006, 07:34 PM   #6
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
I'd try to update the BIOS.
I doubt the udma6 thing though.Igot two of those drives and they both wont go over udma5 in the BIOS.

Last edited by crashmeister; 09-18-2006 at 07:36 PM.
 
Old 09-18-2006, 07:58 PM   #7
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by crashmeister
I'd try to update the BIOS.
I doubt the udma6 thing though.Igot two of those drives and they both wont go over udma5 in the BIOS.
Unfortunatelly i have the latest BIOS!(My mobo is Asus P4G8X)
D@mn!

Now i've set the udma mode in BIOS as disabled , but it still doesn't work

If i set it 3 in bios , nothing major happens
If i set it to 4,the pc won't boot at all and if i set it to 5 linux will crash during boot!
 
Old 09-18-2006, 08:35 PM   #8
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Just checking - do you got a shielded 80 pin cable on that thing right??
 
Old 09-18-2006, 10:06 PM   #9
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by crashmeister
Just checking - do you got a shielded 80 pin cable on that thing right??
anything less than ata 100 or shorter than 30 cm i have never noticed the need of special shielded IDE cables


however lets see your HDD in action

hdparm -tT /dev/hda

my result is
Timing cahche 319MBsec
Buffered Dis Reads 15.9MB/s
 
Old 09-19-2006, 01:36 AM   #10
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Well,i'll try changing the ide cable,maybe that'll fix it

carl0ski if 15,9 MB/sec is the read speed from your 200gb sata II disks,then you have a problem bigger than mine!!

Any other ideas would be greatly appreciated!
 
Old 09-19-2006, 04:27 AM   #11
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
carl0ski - pardon my insensitivity but is that some cruel kind of joke or do you really get 16MB/s with that hardware?

Last edited by crashmeister; 09-19-2006 at 04:31 AM.
 
Old 09-19-2006, 05:49 PM   #12
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
I plugged out my dvd/cd ide drives and now the auto setting in bios for my hd drive goes to udma5 automatically!

But watch this veeeeeeery careful

Code:
localhost anakin # hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   2384 MB in  2.00 seconds = 1191.69 MB/sec
 Timing buffered disk reads:  162 MB in  3.03 seconds =  53.42 MB/sec
localhost anakin # hdparm -t /dev/hda

/dev/hda:
 Timing buffered disk reads:   82 MB in  3.04 seconds =  26.99 MB/sec
localhost anakin # hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   2372 MB in  2.00 seconds = 1185.27 MB/sec
 Timing buffered disk reads:  162 MB in  3.01 seconds =  53.76 MB/sec
localhost anakin # hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  1 (on)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 156301488, start = 0
localhost anakin # hdparm -i /dev/hda

/dev/hda:

 Model=WDC WD800JB-00ETA0, FwRev=77.07W77, SerialNo=WD-WCAHL4796641
 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=156301488
 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: Unspecified:  ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-                                                                            4 ATA/ATAPI-5 ATA/ATAPI-6

 * signifies the current active mode

localhost anakin #
udma is now set to 5
BUT why do i get higher speeds(double to be acurate) if i do a hdparm -tT , then when doing a hdparm -t ?
 
Old 09-20-2006, 03:42 AM   #13
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by crashmeister
carl0ski - pardon my insensitivity but is that some cruel kind of joke or do you really get 16MB/s with that hardware?
lol no i was at work and on a P3 Notebook computer

Only one with Linux on it to demonstrate

Code:
linux-carl:/home/carl0ski # hdparm -Tt /dev/md0
/dev/md0:
 Timing cached reads:   3048 MB in  2.00 seconds = 1524.59 MB/sec
 Timing buffered disk reads:  272 MB in  3.01 seconds =  90.37 MB/sec

/dev/sda:
 Timing cached reads:   3240 MB in  2.00 seconds = 1621.66 MB/sec
 Timing buffered disk reads:  180 MB in  3.03 seconds =  59.42 MB/sec

/dev/sdb:
Timing cached reads: 3032 MB in  2.01 seconds = 1511.51 MB/sec
Timing buffered disk reads:  184 MB in  3.01 seconds =  61.15 MB/sec

/dev/sdc:
 Timing cached reads:   3028 MB in  2.00 seconds = 1514.80 MB/sec
 Timing buffered disk reads:  180 MB in  3.01 seconds =  59.84 MB/sec

/dev/sdd:
 Timing cached reads:   3136 MB in  2.00 seconds = 1568.66 MB/sec
 Timing buffered disk reads:  194 MB in  3.03 seconds =  64.07 MB/sec
Look a little better?
 
Old 09-20-2006, 05:43 AM   #14
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Quote:
Originally Posted by carl0ski

Look a little better?
Now that's a beauty

braveheart:

Don't know about the options you got there mine look by default like this:

/dev/hda:
multcount = 0 (off)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)

and that gives me:

/dev/hda:
Timing buffered disk reads: 166 MB in 3.01 seconds = 55.09 MB/sec

Although I wouldn't get too worked up about hdparm readings.For example I always get a lower value on the first run:

/dev/hda:
Timing cached reads: 2296 MB in 2.00 seconds = 1147.34 MB/sec
Timing buffered disk reads: 134 MB in 3.03 seconds = 44.19 MB/sec
kaiser:/home/klaus# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 2296 MB in 2.00 seconds = 1146.89 MB/sec
Timing buffered disk reads: 174 MB in 3.06 seconds = 56.91 MB/sec

After all hdparm ain't a fullblown benchmarking suite.

Really don't see what the DVD got to do with it except it is the cable or somethings wrong with the DVD or the jumpers - got 3 ATA HDD's and a DVD on my box and that doesn't affect the hdparm thingy a bit although it is different hardware (AMD64).

Last edited by crashmeister; 09-20-2006 at 05:47 AM.
 
Old 09-20-2006, 06:46 AM   #15
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633

Original Poster
Blog Entries: 1

Rep: Reputation: 30
With the same settings :

Code:
localhost anakin # hdparm  /dev/hda

/dev/hda:
 multcount    =  0 (off)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  1 (on)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 156301488, start = 0
localhost anakin # hdparm  -t /dev/hda

/dev/hda:
 Timing buffered disk reads:   96 MB in  3.04 seconds =  31.58 MB/sec
localhost anakin # hdparm  -tT /dev/hda

/dev/hda:
 Timing cached reads:   2224 MB in  2.00 seconds = 1112.63 MB/sec
 Timing buffered disk reads:  154 MB in  3.03 seconds =  50.83 MB/sec
I start to wonder if i should rebuild my kernel with something special for my mobo
Does anyone know where specifically should i try to find something like that in menucofig?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Slow Hard disk lm317t Linux - Hardware 5 11-02-2005 01:06 PM
slow disk performance oldi *BSD 1 08-02-2004 10:11 PM
2.6.0 SLOW disk access wayback Linux - Hardware 5 01-15-2004 01:43 AM
Slow IDE disk... smudge Linux - Hardware 1 11-10-2003 08:49 PM
Slow IDE Disk after new kernel smudge Linux - Hardware 1 10-18-2003 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration