LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-28-2003, 10:08 PM   #1
bxb32001
Member
 
Registered: May 2001
Location: Beijing
Distribution: Fedora, Knoppix
Posts: 204

Rep: Reputation: 30
Enabling DMA through boot loader (grub)


Hi everyone,

I perused the forum (and google) on how to improve the performance of my Red Hat 9 system and I the tip I noticed the most was improving hard drive performance.

I did some more digging...

From what I gather the easiest way to enable DMA is to append the boot loader config file (please tell me if I am mistaken).

The sample I found was meant for lilo.conf and the conf file was meant to be appended with
Quote:
append = “ide0=dma”
Is that supposed to be with or without the 'append'?

Anyway, I guess the actual question would be, how do I do it in GRUB?

Do I just add the same line?

grub.conf typically looks like this:

Quote:
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

# section to load linux
title Red Hat Linux (2.4.18-5.47)
root (hd0,0)
kernel /vmlinuz-2.4.18-5.47 ro root=/dev/sda2
initrd /initrd-2.4.18-5.47.img

# section to load Windows 2000
title windows
rootnoverify (hd0,0)
chainloader +1
Where should I put the line that tells GRUB to enable DMA for my HDD?

Thanks in advance

- Bryan


edit... I am not sure if this post is appropriate for this forum... if the moderators deem it is not please transfer it to where it is most appropriate, I apologize and thank you.

Last edited by bxb32001; 10-28-2003 at 10:10 PM.
 
Old 10-28-2003, 10:34 PM   #2
undeadpenguin
LQ Newbie
 
Registered: Sep 2003
Location: Connecticut
Distribution: Arch Linux 0.5
Posts: 19

Rep: Reputation: 0
Put it at the top, the 'append' is needed.
 
Old 10-28-2003, 10:52 PM   #3
bxb32001
Member
 
Registered: May 2001
Location: Beijing
Distribution: Fedora, Knoppix
Posts: 204

Original Poster
Rep: Reputation: 30
Thanks for the quick reply... and, of course, for your help...

It's just me of course, but when solutions are as simple as this I tend to think it can't be that simple... I must have missed something or done something wrong...

So my apologies if I follow up with this question...

does this truly help (improve performance)?

Last edited by bxb32001; 10-28-2003 at 10:53 PM.
 
Old 10-28-2003, 11:06 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
test before and after using hdparm:

# hdparm -Tt /dev/hdx

and compare the results.
 
Old 10-28-2003, 11:35 PM   #5
bxb32001
Member
 
Registered: May 2001
Location: Beijing
Distribution: Fedora, Knoppix
Posts: 204

Original Poster
Rep: Reputation: 30
I shall... thanks...
 
Old 10-29-2003, 05:43 AM   #6
bxb32001
Member
 
Registered: May 2001
Location: Beijing
Distribution: Fedora, Knoppix
Posts: 204

Original Poster
Rep: Reputation: 30
Okay... I'm finally home and I just booted my linux box...

Typed in 'hdparm /dev/hda' and got this:

Quote:
[root@mybox me]# /sbin/hdparm /dev/hda

/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9729/255/63, sectors = 156301488, start = 0
Huh? DMA is already on... does this mean I don't have to do anything? That it's already enabled?
 
Old 10-29-2003, 12:01 PM   #7
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
it sure looks like it's already on. why don't you run the benchmark and post your results. you should probably get disk read numbers somewhere at least above the 30 range if it's enabled (depending on your hardware, of course). if it comes back something like 2.xx or 3.xx, it's not enabled.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 06:45 PM
GRUB boot loader blocking windows boot julienroger Linux - Newbie 3 10-12-2004 02:11 PM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM
Need help with boot loader. Multi boot questions. Grub? 1993gt40 Linux - Software 1 10-16-2003 09:28 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration