Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What is hdparm "readahead"?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
net_keeper
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2003
Posts: 108
Location: Earth

PostPosted: Tue Aug 19, 2003 11:41 am    Post subject: What is hdparm "readahead"? Reply with quote

Hy,

Before some time I have complaint that my gentoo is slower than my old mandrake.

Well,
It have been fix with hdparm.

Now I have reset to my old mandrake and I found a different in the hdparm output.

Mandrake hdparm output:

/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 = 4865/255/63, sectors = 78165360, start = 0



And in my gentoo:

/dev/hda:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 12009/16/63, sectors = 78165360, start = 0



Is the different is affective? Which is faster?
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Tue Aug 19, 2003 11:55 am    Post subject: Reply with quote

Have you read "man hdparm" ? The meaning of the read-ahead flag is described there.

You need to know what you want to maximize in your system (throughput x response) and run some benchmarking before you decide which one is better for you.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Tue Aug 19, 2003 7:06 pm    Post subject: DMA off/on Reply with quote

Hi there,

while we're at it I thought I could just drop a question related to DMA and harddisks. While booting, I get a message in a nice ascii box, that devfs might be slowed down due to turned off dma. I can enable it using hdparm but the next time I boot, the message stays. Where can I set the dma permamently?

thanks in advance for a probably stupid question,
Tobias
Back to top
View user's profile Send private message
hensan
l33t
l33t


Joined: 26 Jun 2003
Posts: 868
Location: Sweden

PostPosted: Tue Aug 19, 2003 7:15 pm    Post subject: Reply with quote

Put your settings in /etc/conf.d/hdparm

Then do: rc-update add hdparm default
Back to top
View user's profile Send private message
TobiWan
Apprentice
Apprentice


Joined: 07 Jul 2003
Posts: 275
Location: Brussels, Old Europe

PostPosted: Tue Aug 19, 2003 7:25 pm    Post subject: many thanks Reply with quote

many thanks, that does the trick!

this should go into http://www.gentoo.org/doc/en/gentoo-x86-install.xml ;-)

cheers,
Tobias
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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