[Sussex] UDMA issues

Daniel Pope mauve at mauveweb.co.uk
Mon Oct 27 14:00:32 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi. I'm a n00b to this list and I wondered if anyone knows anything about UDMA 
configuration under Linux.

My hdparm is giving about 2.10Mb/s now, which is horrible.

DMA is on, and the drive and controller both claim to be working in UDMA5. In 
fact everything looks right. But there just isn't any speed.

The motherboard is a Shuttle FN41; the chipset is Nforce2. I'm running 2.4.22 
Debian. I've tried other drives and the performance is on the same order of 
magnitude.

Regards,
Dan

Datablast:

mauve:/home/mauve# hdparm -t /dev/hda

/dev/hda:
 Timing buffered disk reads:    8 MB in  3.82 seconds =   2.09 MB/sec
mauve:/home/mauve# cat /proc/ide/amd74xx
- ----------AMD BusMastering IDE Configuration----------------
Driver Version:                     2.10
South Bridge:                       nVidia Corporation nForce2 IDE
Revision:                           IDE 0xa2
Highest DMA rate:                   UDMA100
BM-DMA base:                        0xf000
PCI clock:                          33.3MHz
- -----------------------Primary IDE-------Secondary IDE------
Prefetch Buffer:              yes                 yes
Post Write Buffer:            yes                 yes
Enabled:                      yes                 yes
Simplex only:                  no                  no
Cable Type:                   80w                 40w
- -------------------drive0----drive1----drive2----drive3-----
Transfer Mode:       UDMA       DMA      UDMA       DMA
Address Setup:       30ns      90ns      30ns      90ns
Cmd Active:          90ns      90ns      90ns      90ns
Cmd Recovery:        30ns      30ns      30ns      30ns
Data Active:         90ns     330ns      90ns     330ns
Data Recovery:       30ns     270ns      30ns     270ns
Cycle Time:          20ns     600ns      60ns     600ns
Transfer Rate:   99.9MB/s   3.3MB/s  33.3MB/s   3.3MB/s
mauve:/home/mauve# hdparm -I /dev/hda

/dev/hda:

ATA device, with non-removable media
        Model Number:       ST330621A
        Serial Number:      7EE09PWW
        Firmware Revision:  3.54
Standards:
        Supported: 4 3 2 1
        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:   58633344
        device size with M = 1024*1024:       28629 MBytes
        device size with M = 1000*1000:       30020 MBytes (30 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Buffer size: 1024.0kB   Queue depth: 1
        Standby timer values: spec'd by Standard
        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=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
           *    Automatic Acoustic Management feature set
           *    SET MAX security extension
           *    DOWNLOAD MICROCODE cmd
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
HW reset results:
        CBLID- above Vih
        Device num = 1
Checksum: correct
mauve:/home/mauve# hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 3649/255/63, sectors = 58633344, start = 0

And the relevant bit of dmesg is

Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
NFORCE2: IDE controller at PCI slot 00:09.0
NFORCE2: chipset revision 162
NFORCE2: not 100% native mode: will probe irqs later
AMD_IDE: Bios didn't set cable bits corectly. Enabling workaround.
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
AMD_IDE: nVidia Corporation nForce2 IDE (rev a2) UDMA100 controller on 
pci00:09.0
    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
hda: ST330621A, ATA DISK drive
blk: queue c0308f00, I/O limit 4095Mb (mask 0xffffffff)
hdc: SONY CD-RW CRX300E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: Host Protected Area detected.
        current capacity is 58633344 sectors (30020 MB)
        native  capacity is 58633345 sectors (30020 MB)
hda: 58633344 sectors (30020 MB) w/1024KiB Cache, CHS=3649/255/63, UDMA(100)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/nSTryWXOiHlaeKMRAjgRAJ9IPfejYl46DBiCzMSfOZEiCKokZwCdErdW
OagAes+RZJJghoVLAUuW/+E=
=k3al
-----END PGP SIGNATURE-----




More information about the Sussex mailing list