You are not logged in.

#1 2006-01-13 23:16:10

Joffer
Member
Registered: 2006-01-12
Posts: 69

[SOLVED] hdparm - no /etc/conf.d/hdparm config file?

Hi all. Gentoo user here trying out Arch Linux smile I'm just in the initial phase of setting up the base system (already installed) about to tweak the system a bit. SO, I'm setting my HDD options with hdparm. For me it seems the only way is to use /etc/rc.local. Is this the way to set it? No /etc/conf.d/hdparm file and /etc/rc.d/hdparm?

Wouldn't that be a better way to configure the system in terms of HDD options?

Offline

#2 2006-01-13 23:21:47

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [SOLVED] hdparm - no /etc/conf.d/hdparm config file?

pacman -Sy hdparm


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2006-01-14 01:05:21

Joffer
Member
Registered: 2006-01-12
Posts: 69

Re: [SOLVED] hdparm - no /etc/conf.d/hdparm config file?

lilsirecho wrote:

pacman -Sy hdparm

If it wasn't clear, I already have hdparm installed and working, and I set it during startup through /etc/rc.local.

I just wondered why there wasn't an "easier" way than rc.local, like a /etc/conf.d/hdparm and a /etc/rc.d/hdparm which I could add to DAEMONS in rc.conf.

Update: Just found a section in the wiki which tips users about adding it to rc.sysinit:

Harddrive Performance

to boost HDD performance, tweak using hdparm. The best place to put it (IMHO) is in /etc/rc.sysinit, as the 1st line... my hdparm parameters are: 

 -a1024 = sets read_ahead buffer to 1024 bytes 
 -c3 = sets io support to 32bit with sync 
 -d1 = turn on dma 
 -m16 = sets multile buffers count to 16 (my hd max. find it using hdparm -i) 

example: 
/sbin/hdparm -a1024 -c3 -d1 -m16 /dev/hda

Well. I'm still a fan of a /etc/conf.d/hdparm & /etc/rc.d/hdparm solution...

Offline

#4 2006-01-14 02:49:03

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [SOLVED] hdparm - no /etc/conf.d/hdparm config file?

Post a feature request on the bug tracker.

Offline

#5 2006-01-15 06:40:56

Joffer
Member
Registered: 2006-01-12
Posts: 69

Re: [SOLVED] hdparm - no /etc/conf.d/hdparm config file?

Snowman wrote:

Post a feature request on the bug tracker.

big_smile

Will do tomorrow

Offline

#6 2006-01-15 09:11:53

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] hdparm - no /etc/conf.d/hdparm config file?

Personally, I wouldn't go for that rc.sysinit suggestion, as it would be overwritten every time the initscripts are upgraded.

Offline

#7 2006-01-15 23:19:06

Joffer
Member
Registered: 2006-01-12
Posts: 69

Re: [SOLVED] hdparm - no /etc/conf.d/hdparm config file?

Added to bug tracker:

http://bugs.archlinux.org/task/3790

I've marked this thread as [SOLVED] since it's not much more to do about it, other than hoping it will be included in the hdparm package.

Offline

#8 2006-01-16 21:59:03

Joffer
Member
Registered: 2006-01-12
Posts: 69

Re: [SOLVED] hdparm - no /etc/conf.d/hdparm config file?

tomk wrote:

Personally, I wouldn't go for that rc.sysinit suggestion, as it would be overwritten every time the initscripts are upgraded.

Thats my opinion too, and I don't like to use rc.local for pure system related functions, like hdparm etc. It's not like I would start mysql from rc.local, if you know what I mean.

Anyway. I've added a feature request to the bug tracker as you can see from my post above.

Offline

Board footer

Powered by FluxBB