View previous topic :: View next topic |
Author |
Message |
idiotprogrammer Apprentice
Joined: 29 Jul 2002 Posts: 179 Location: Texas
|
Posted: Wed Jan 22, 2003 6:01 am Post subject: hdparm-helpful/necessary? |
|
|
People talk about setting hd parameters in these forums. I am trying to install using software RAID, so that could be an issue for performance.
Can anyone refer me to a link or document about how to decide what parameters (if any) you should set on a relatively modern machine
Robert Nagle |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Jan 22, 2003 6:09 am Post subject: |
|
|
To cover the basics, I'd do 'man hdparm' to get familiar with the command. Searching for hdparm will probably turn up some useful threads too. To start with, you can go through my harddrive performance is sucking. Also, don't forget about Google. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
bammbamm808 Guru
Joined: 08 Dec 2002 Posts: 548 Location: Hawaii
|
Posted: Wed Jan 22, 2003 6:13 am Post subject: From what I hear... |
|
|
Some folks can only get good HDD performance using hdparm. My disks run pretty much at full capacity ATA just at detected and installed, though. I have nothing to gain by playing with hdparm, but many seem to need it to get their disks working properly. _________________ MSI MAG B550 Tomahawk
Ryzen 3900x
32Gb Samsung B-die (16GB dual rank x2) DDR4 @ 3200MHz, cl14
Geforce RTX 2070S 8GB
Samsung m.2 NVME pcie-3.0
Etc.... |
|
Back to top |
|
|
scocou Apprentice
Joined: 16 Aug 2002 Posts: 184 Location: Pacific NW, Canada
|
Posted: Wed Jan 22, 2003 7:02 am Post subject: |
|
|
I always assumed if you enabled 'Use PCI DMA by default when available' in the IDE/ATA section of kernel's .config that would do the trick. I thought hdparm was for if DMA doesn't get set properly on kernel level, it always has for me so I've never had to try hdparm... maybe it's also useful to selectively disable DMA on a drive. I suggest you watch the output during boot or #dmesg and check if the kernel is enabling the proper PIO/DMA/UDMA modes, and if it is I wouldn't bother with hdparm. Then again I'm a noob, so I could be wrong |
|
Back to top |
|
|
Regor Guru
Joined: 06 Aug 2002 Posts: 545 Location: 39° 2' 48" N, 120° 59' 2" W
|
Posted: Wed Jan 22, 2003 8:31 am Post subject: |
|
|
I always use the c, d, k, m, and W options to hdparm when starting up. This gets the best possible performance out of
the drives and has _never_ caused any problems for me.
Here's the script I call from /etc/conf.d/local.start:
Code: |
#!/bin/bash
for DRIVE in `ls -d /proc/ide/hd*`
do
MEDIA=`cat $DRIVE/media`
if [ $MEDIA = "disk" ]
then
DISK=/dev/`basename $DRIVE`
MSECT=`/sbin/hdparm -i $DISK | grep MaxMultSect | cut -f4 -d= | cut -f1 -d,`
/sbin/hdparm -c1 -d1 -k1 -m${MSECT} -W1 $DISK
fi
done
|
Make sure you've enabled DMA in your kernel and compiled in the driver for you chipset as well. |
|
Back to top |
|
|
Rise n00b
Joined: 22 Jan 2003 Posts: 9
|
Posted: Wed Jan 22, 2003 9:49 am Post subject: |
|
|
http://www.tldp.org/FAQ/Linux-RAID-FAQ/
...my experience is that hdparm actaully slowed down the sync between the two drives in RAID1 when I tried to optimize the past what the BIOS detected on my older system.
Your milage may very since I'm a n00b as well.
Rise _________________ Vancouver, BC --- Miss my Amiga --- |
|
Back to top |
|
|
|