LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-18-2007, 09:35 PM   #1
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Rep: Reputation: 19
Western Digital new install - Low performance


I have recently upgraded by system. I now have a SATA (Western Digital RE, 160GB) drive as well as a PATA (Western Digital Caviar, 80GB) drive that has stuff on it. The PATA was my original disk, and the SATA is my new disk.

Then I run an hdparm test upon it. The PATA drive gives me roughly 58 MB/s Buffered Disk Speed. But the SATA drive gives me 28 MB/S. The SATA drive is newer and everything.

After I have looked around google and the forums a little bit, My question is: Do you think linux/slackware could be the problem, the new motherboard that I have, or the hard drive itself? Are there any settings that I could change in linux to be able to affect the performance?

My Motherboard is a recent buy,
Gigabyte GA-MA69GM-S2H (AM2),
the northbridge AMD 690G
the southbridge ATI SB600
 
Old 12-19-2007, 02:19 AM   #2
zaktalanos
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
off the top of my head, the first thing I would try quickly is a different OS, a popular one with well supported drivers, like, ubuntu, or fedora, maybe centos and then do a testparm. I don't know if a motherboard bios upgrade would help you because your other drive is working fine, but it is a PATA drive, maybe get another SATA drive and test it out? if you are getting the same SATA speeds, then maybe you might try find a more updated BIOS version?
 
Old 12-19-2007, 02:53 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Somebody missed it in post #2. The OS is not your problem. Slackware is much more mature than the three mentioned there.

Code:
root@silas:~# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   970 MB in  2.00 seconds = 484.15 MB/sec
 Timing buffered disk reads:  204 MB in  3.00 seconds =  67.96 MB/sec

root@silas:~# hdparm -iI /dev/sda

/dev/sda:

 Model=WDC WD740GD-00FLC0                      , FwRev=33.08F33, SerialNo=WD-WMAKE2225466
 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=145226112
 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,2,3,4,5,6

 * signifies the current active mode


ATA device, with non-removable media
        Model Number:       WDC WD740GD-00FLC0
        Serial Number:      WD-WMAKE2225466
        Firmware Revision:  33.08F33
Standards:
        Supported: 6 5 4
        Likely used: 6
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  145226112
        LBA48  user addressable sectors:  145226112
        device size with M = 1024*1024:       70911 MBytes
        device size with M = 1000*1000:       74355 MBytes (74 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        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 *udma6
             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:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Release interrupt
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
           *    READ/WRITE_DMA_QUEUED
                Power-Up In Standby feature set
           *    SET_FEATURES required to spinup after power up
                SET_MAX security extension
                Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    SATA-I signaling speed (1.5Gb/s)
           *    Host-initiated interface power management
           *    SMART Command Transport (SCT) feature set
           *    SCT Long Sector Access (AC1)
           *    SCT LBA Segment Access (AC2)
           *    SCT Error Recovery Control (AC3)
           *    SCT Features Control (AC4)
Security:
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
Checksum: correct

root@silas:~# cat /etc/slackware-version
Slackware -current
root@silas:~# uname -a
Linux silas 2.6.23.9-smp #1 SMP Tue Dec 4 16:53:46 CST 2007 i686 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
Post the similar output, and post the output of "lspci" run as root. I'd like to see what chipset your SATA Raid controller uses. Then we can check and see where Linux kernel support is for that bus.

If you want to get good help, you need to post good information. That's a bare minimum start ...

Last edited by Bruce Hill; 12-19-2007 at 03:07 AM.
 
Old 12-19-2007, 05:03 AM   #4
simonb1975uk
Member
 
Registered: Jan 2004
Location: In the county of Essex, UK
Posts: 72

Rep: Reputation: 15
If you have a custom compiled kernel have you enable 'AHCI SATA Support' in menuconfig? This will make a big difference in speed. If you do not have a custom kernel please disregard my message.

Simon
 
Old 12-19-2007, 06:10 AM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
What kernel are you using ? Make sure it has AHCI support in it (as simonb1975uk says), then go into your BIOS and find some options for the SATA drive, for example:
Quote:
SATA AHCI Mode: AHCI (Configure SATA controller to AHCI mode)
SATA Port0~3 Native Mode: Enabled (Allow SATA controller to operate in Native IDE mode)
Onboard SATA/IDE Control Mode: AHCI (Configure SATA controller to AHCI mode)
Look for other options too, I wouldn't know what options there might be, these are just three that I have from my new computer's BIOS that I enabled and seem to make a difference in speed.

Quote:
Originally Posted by zaktalanos View Post
off the top of my head, the first thing I would try quickly is a different OS, a popular one with well supported drivers, like, ubuntu, or fedora, maybe centos and then do a testparm. I don't know if a motherboard bios upgrade would help you because your other drive is working fine, but it is a PATA drive, maybe get another SATA drive and test it out? if you are getting the same SATA speeds, then maybe you might try find a more updated BIOS version?
Do you have any clue what you're talking about ? Why try a different OS ? how does Slackware not have well supported drivers ? It runs a 2.6.x kernel just like many other distros, and that's where the drivers are.

Could you also explain how 'testparm' would help in this, which testparm are you thinking of, the one that's part of samba ? If so, please explain how to use it for such a purpose as is needed here.

Last edited by H_TeXMeX_H; 12-19-2007 at 06:13 AM.
 
Old 12-19-2007, 07:56 AM   #6
Cpoc
Member
 
Registered: Sep 2005
Distribution: Switched to Debian Lenny
Posts: 69

Rep: Reputation: 15
It's not the OS.

It's the bios settings and kernel options. You have to make sure they are enabled like posted above.

The only thing the OS can do is ajust your hdparm or sdaprm settings if you wish to tweak them you can use the hdparm or sdparm in your rc.local and ajust some settings.

The default is good enough for me.

The issue your having is with the bios. I would first make sure that those settings posted above are enabled.
 
Old 12-19-2007, 04:45 PM   #7
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
Here is my HDparm output. I was looking through the bios settings for the SATA controller last night before my post, and whatever setting it was on:
Legacy, ACHI, Raid, native:
They had no effect on the speed.

Quote:

root@popeye:/home# hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads: 86 MB in 3.06 seconds = 28.08 MB/sec
root@popeye:/home# hdparm -i /dev/sda

/dev/sda:

Model=WDC WD1600YS-01SHB1 , FwRev=20.06C06, SerialNo= WD-WCAP02822374
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
BuffType=unknown, BuffSize=16384kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 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,2,3,4,5,6,7

* signifies the current active mode

root@popeye:/home# hdparm /dev/sda
/dev/sda:
IO_support = 0 (default 16-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 20023/255/63, sectors = 321670847, start = 0
Quote:
00:00.0 Host bridge: ATI Technologies Inc Unknown device 7910
00:02.0 PCI bridge: ATI Technologies Inc Unknown device 7913
00:12.0 SATA controller: ATI Technologies Inc SB600 Non-Raid-5 SATA
00:13.0 USB Controller: ATI Technologies Inc SB600 USB (OHCI0)
00:13.1 USB Controller: ATI Technologies Inc SB600 USB (OHCI1)
00:13.2 USB Controller: ATI Technologies Inc SB600 USB (OHCI2)
00:13.3 USB Controller: ATI Technologies Inc SB600 USB (OHCI3)
00:13.4 USB Controller: ATI Technologies Inc SB600 USB (OHCI4)
00:13.5 USB Controller: ATI Technologies Inc SB600 USB Controller (EHCI)
00:14.0 SMBus: ATI Technologies Inc SB600 SMBus (rev 14)
00:14.1 IDE interface: ATI Technologies Inc SB600 IDE
00:14.2 Audio device: ATI Technologies Inc SB600 Azalia
00:14.3 ISA bridge: ATI Technologies Inc SB600 PCI to LPC Bridge
00:14.4 PCI bridge: ATI Technologies Inc SB600 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7600 GT] (rev a1)
02:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
02:0f.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)
Oh, and running the HUGE-SMP 2.6.21.5

Last edited by rigelan; 12-19-2007 at 04:49 PM.
 
Old 12-19-2007, 05:01 PM   #8
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
Okay, I forgot to add the -I part of hdparm. Take at look at all this information. Still let me know what you think.

Quote:
/dev/sda:

ATA device, with non-removable media
Model Number: WDC WD1600YS-01SHB1
Serial Number: WD-WCAP02822374
Firmware Revision: 20.06C06
Standards:
Supported: 7 6 5 4
Likely used: 7
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 321670847
device size with M = 1024*1024: 157065 MBytes
device size with M = 1000*1000: 164695 MBytes (164 GB)
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
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 *udma6
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:
SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
Power-Up In Standby feature set
* SET_FEATURES required to spinup after power up
SET_MAX security extension
Automatic Acoustic Management feature set
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* 64-bit World wide name
* SATA-I signaling speed (1.5Gb/s)
* SATA-II signaling speed (3.0Gb/s)
* Native Command Queueing (NCQ)
* Host-initiated interface power management
* Phy event counters
DMA Setup Auto-Activate optimization
* Software settings preservation
* SMART Command Transport (SCT) feature set
* SCT Long Sector Access (AC1)
* SCT LBA Segment Access (AC2)
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
* SCT Data Tables (AC5)
unknown 206[12]
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
52min for SECURITY ERASE UNIT.
Checksum: correct
 
Old 12-20-2007, 04:12 PM   #9
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Quote:
Originally Posted by Bruce Hill View Post
Somebody missed it in post #2. The OS is not your problem. Slackware is much more mature than the three mentioned there.

root@silas:~# hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 970 MB in 2.00 seconds = 484.15 MB/sec
Timing buffered disk reads: 204 MB in 3.00 seconds = 67.96 MB/sec
Is it me or your cached read rate is low?

Code:
hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   3744 MB in  2.00 seconds = 1873.53 MB/sec
 Timing buffered disk reads:  168 MB in  3.03 seconds =  55.40 MB/sec
root@UFO:~#
Code:
hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
        Model Number:       ST3120026AS
        Serial Number:      3JT4KEM8
        Firmware Revision:  3.18
Standards:
        Used: ATA/ATAPI-6 T13 1410D revision 2
        Supported: 6 5 4 3
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  234435439
        LBA48  user addressable sectors:  234435439
        device size with M = 1024*1024:      114470 MBytes
        device size with M = 1000*1000:      120030 MBytes (120 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        bytes avail on r/w long: 4      Queue depth: 1
        Standby timer values: spec'd by Standard
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 254, current value: 0
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=240ns  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
                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
Checksum: correct
Didn't notice significant difference in -I output.
 
Old 12-21-2007, 05:45 PM   #10
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
Its not my cache read rate that's slow. I think the cache read rate has more to do with the busses installed on one's system. Mine is at ~1150 MB/s
 
Old 12-21-2007, 09:00 PM   #11
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Make sure you don't overlook the obvious like pulling the 150 jumper pin on the back of your drive... It could be running at SATA 1 instead of 2.
 
Old 12-21-2007, 11:58 PM   #12
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
Well, it isn't THAT obvious of a mistake. But I did check. It comes standard without a jumper, which is the normal 300
 
Old 12-22-2007, 07:54 AM   #13
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Just checkin.. I've done it with my 7200.11's and I was wondering my they were so slow. ;-)

Have you had a chance to benchmark them under Windows with hdtune or something similar? Atleast that will rule out an actuall HDD problem... Should anyway.
 
Old 12-26-2007, 04:31 PM   #14
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
I've tried all the bios settings I can think of.

Haven't had a chance to check out a different operating system, although I'm not sure that would make a difference. Wait. I can't check out a different operating system because all I own is windows 98 and the drivers don't exist for SATA.

Would the bios possibly need an upgrade? I don't think the disk I have is a very new design. And i've never upgraded bioses, although the motherboard claims it has a pretty good easy method.
 
Old 12-27-2007, 07:40 AM   #15
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,215
Blog Entries: 3

Rep: Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437
Hi,

Quote:
Originally Posted by rigelan View Post
I've tried all the bios settings I can think of.

Haven't had a chance to check out a different operating system, although I'm not sure that would make a difference. Wait. I can't check out a different operating system because all I own is windows 98 and the drivers don't exist for SATA.

Would the bios possibly need an upgrade? I don't think the disk I have is a very new design. And i've never upgraded bioses, although the motherboard claims it has a pretty good easy method.
When your system boots (POST) you are presented with the BIOS information. Copy that information. Google or go to the motherboard manufacture site to see if an update is available for download of the BIOS along with the BIOS utilities. Most MB manufactures have well documented procedures. You should backup the BIOS with the utilities if possible, thus allowing you to revert.
If you follow the instructions the update process is straight forward and painless if you don't interrupt the flash. Make sure the system is stable and don't upgrade while the possibilities of interruption. Power outages, storms etc.

As for checking with a different OS. Did you try a LiveCD?
This link and others are available from 'Slackware-Links' .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I install Linux on Western Digital USB external hard drive? priyankadeven Linux - Newbie 6 11-24-2009 09:12 PM
Need help with Western Digital Hard Drive robogymnast General 2 12-30-2005 04:18 PM
maxtor or western digital? hedpe General 24 12-09-2005 12:44 AM
Western digital drivers Darthbudge Linux - Newbie 6 11-26-2005 07:21 PM
Western Digital USB harddrive. RoaCh Of DisCor Linux - Hardware 3 01-28-2005 05:26 PM


All times are GMT -5. The time now is 05:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration