Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hdparm-helpful/necessary?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
idiotprogrammer
Apprentice
Apprentice


Joined: 29 Jul 2002
Posts: 179
Location: Texas

PostPosted: Wed Jan 22, 2003 6:01 am    Post subject: hdparm-helpful/necessary? Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Wed Jan 22, 2003 6:09 am    Post subject: Reply with quote

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
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 548
Location: Hawaii

PostPosted: Wed Jan 22, 2003 6:13 am    Post subject: From what I hear... Reply with quote

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
View user's profile Send private message
scocou
Apprentice
Apprentice


Joined: 16 Aug 2002
Posts: 184
Location: Pacific NW, Canada

PostPosted: Wed Jan 22, 2003 7:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Regor
Guru
Guru


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Wed Jan 22, 2003 8:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Rise
n00b
n00b


Joined: 22 Jan 2003
Posts: 9

PostPosted: Wed Jan 22, 2003 9:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum