Professional Web Applications Themes

Appropriate hdparm use for modern IDE drives and CD-R/RW/DVD drives? - Linux Setup, Configuration & Administration

In [url]http://tinyurl.com/hran[/url] (alt.os.linux and comp.os.linux.setup only -- sorry, forgot to add alt.comp.periphs.mainboard.soyo to Newsgroups: in first post) I wrote: >I am trying to improve IDE performance for the Maxtor 6Y080L0 hard drive >(/dev/hda, 80 Gbyte, ATA-133) and Samsung SM-348B CD-R/RW/DVD drive (/dev/hdc) >on my Linux From Scratch 4.1/Beyond Linux From Scratch 1.0 system (pretty >much by-the-book except upgraded to kernel 2.4.21 and hdparm 5.4). Additional bit of information: motherboard is a Soyo SY-KT333 ("lspci" says that the IDE controller is "Via Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (Rev 06). >[. . .] >Since the Linux Doentation Project does not ...

  1. #1

    Default Re: Appropriate hdparm use for modern IDE drives and CD-R/RW/DVD drives?

    In [url]http://tinyurl.com/hran[/url] (alt.os.linux and comp.os.linux.setup only --
    sorry, forgot to add alt.comp.periphs.mainboard.soyo to Newsgroups: in first
    post) I wrote:
    >I am trying to improve IDE performance for the Maxtor 6Y080L0 hard drive
    >(/dev/hda, 80 Gbyte, ATA-133) and Samsung SM-348B CD-R/RW/DVD drive (/dev/hdc)
    >on my Linux From Scratch 4.1/Beyond Linux From Scratch 1.0 system (pretty
    >much by-the-book except upgraded to kernel 2.4.21 and hdparm 5.4).
    Additional bit of information: motherboard is a Soyo SY-KT333
    ("lspci" says that the IDE controller is "Via Technologies, Inc.
    VT82C586/B/686A/B PIPC Bus Master IDE (Rev 06).
    >[. . .]
    >Since the Linux Doentation Project does not have this information under an
    >obvious name, where DO you find this information (Linux Doentation Project
    >non-obvious names gladly accepted)? 4.40 MBytes per second for buffered disk
    >reads (from "hdparm -Tt /dev/hda") is not a good result!
    More specifically, does anyone know of a "hdparm How-To" or something
    like that covers more modern hardware, kernels, and hdparm versions than
    [url]http://linux.oreillynet.com/pub/a/linux/2000/06/29/hdparm.html[/url] (which is what
    a groups.google.com search about hdparm in comp.os.linux.setup turned up)?

    Alternatively, for someone who has a hard drive working at ATA-133 (or
    ATA-100 -- shouldn't be much difference in practice) and/or a modern IDE CD
    writer running at ATA-33 on this motherboard under Linux, if you have managed
    to improve your performance to something in the upper range, what is your
    "hdparm -v {device}" output?

    Do several hdparm options have to be set together to get any of them
    to work? So far, hdparm has failed to change any options for either my hard
    drive or my CD-R/RW/DVD drive (see original message at [url]http://tinyurl.com/hran[/url]
    for list of options tried and resulting error messages).

    --
    Lucius Chiaraviglio
    Approximate E-mail address: [email]luciusonechapter.net[/email]
    To get the exact address: ^^^ ^replace this with 'r'
    |||
    replace this with single digit meaning the same thing
    (Spambots of Doom, take that!).
    Lucius Chiaraviglio Guest

  2. #2

    Default Re: Appropriate hdparm use for modern IDE drives and CD-R/RW/DVD drives?

    Lucius Chiaraviglio wrote:

    <snip>
    > Unfortunately just
    > reading the man page doesn't seem to be enough (it doesn't tell
    > which -X mode corresponds to which DMA type),
    I don't know if that has changed in newer versions, but the man
    page says about the -X option

    Prior to changing the
    transfer mode, the IDE interface should be jumpered
    or programmed (see -p flag) for the new mode set
    ting to prevent loss and/or corruption of data.
    Use this with extreme caution! For the PIO (Pro
    grammed Input/Output) transfer modes used by Linux,
    this value is simply the desired PIO mode number
    plus 8. Thus, a value of 09 sets PIO mode1, 10
    enables PIO mode2, and 11 selects PIO mode3. Set
    ting 00 restores the drive's "default" PIO mode,
    and 01 disables IORDY. For multiword DMA, the
    value used is the desired DMA mode number plus 32.
    for UltraDMA, the value is the desired UltraDMA
    mode number plus 64.

    thus hdparm -d1 -X66 /dev/hda should set the drive to udma2

    The -d1 option does not necessarily provide any improvement. and
    in my experience most modern drives are optimal configured at
    boot time, but 4.40 MB/sec is really very bad performance. In
    your follow-up you said you have a VIA chipset, so the first
    thing to check would be if your kernel was compiled with support
    for VIA. Another thing to check would be what the the system
    thinks your drive is. Search /var/log/messages for the messages
    concerning hda at boot time. Fiddling with hdparm can be both,
    unnecsssary and dangerous. I managed once to corrupt my
    filesystem beyond repair while I was trying to squeeze more
    performance out of an older drive.

    HTH
    Ransom
    Ransom Guest

  3. #3

    Default Re: Appropriate hdparm use for modern IDE drives and CD-R/RW/DVD drives?

    Florian Diesch <epsilongmx.de> wrote:
    >Lucius Chiaraviglio <luciusonechapter.net> wrote:
    >> I am trying to improve IDE performance for the Maxtor 6Y080L0 hard drive
    >> (/dev/hda, 80 Gbyte, ATA-133) and Samsung SM-348B CD-R/RW/DVD drive (/dev/hdc)
    >> on my Linux From Scratch 4.1/Beyond Linux From Scratch 1.0 system (pretty
    >> much by-the-book except upgraded to kernel 2.4.21 and hdparm 5.4).
    >> Unfortunately just reading the man page doesn't seem to be enough (it doesn't
    >> tell which -X mode corresponds to which DMA type), so I searched on the
    >
    >So you can't use DMA. Check if yout kernel supports your IDE controler.
    DOH!! I feel like Homer Simpson! In my kernel configuration, at one
    point I had enabled CONFIG_BLK_DEV_VIA_82C(*), so I didn't think to check
    this, but after you mentioned it, I rechecked, and sure enough, it had gotten
    turned off! (Must have happened when I was either trying to fix some other
    problem or prepare my kernel to work with Mindi.)

    (*) Other Soyo SY-KT333 Linux kernel 2.4.21 users reading this: this kernel
    configuration parameter is key. (With "make menuconfig", you can find it in
    the IDE/etc. devices section.)

    I now get approximately 51 Mbytes per second from "hdparm -Tt
    /dev/hda" (3 trials) -- no other hdparm adjustments necessary. Yes, my
    efforts are so far on track to look and work better than the doghouse that
    Homer Simpson built . . . :-)

    --
    Lucius Chiaraviglio
    Approximate E-mail address: [email]luciusonechapter.net[/email]
    To get the exact address: ^^^ ^replace this with 'r'
    |||
    replace this with single digit meaning the same thing
    (Spambots of Doom, take that!).
    Lucius Chiaraviglio Guest

Similar Threads

  1. DMVC SSA Drives
    By drencep in forum AIX
    Replies: 1
    Last Post: September 26th, 09:22 PM
  2. Sco 5.0.7 with IDE drives
    By Kristopher Lalletti in forum SCO
    Replies: 1
    Last Post: August 9th, 12:16 AM
  3. Sharing CD drives
    By Stan in forum Windows Networking
    Replies: 0
    Last Post: July 14th, 05:02 PM
  4. Shared drives
    By Stanley Bernstein in forum Windows Networking
    Replies: 0
    Last Post: July 11th, 10:19 PM
  5. Drives problem
    By Elisa Wright in forum Windows XP/2000/ME
    Replies: 1
    Last Post: July 2nd, 03:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139