LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-29-2004, 04:30 AM   #1
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Rep: Reputation: 30
kernel 2.6.8.1 dma turn off


while booting my new kernel 2.6.8.1, i get an error like this :

"DMA on your HDD turned off. Ýt may slow down fsck process"

How can i fix it, did i misconfigure my kernel????!!!!
Which module should i remove or install to fix it???
PS: Ý use reiserfs file system
 
Old 08-29-2004, 07:58 AM   #2
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Original Poster
Rep: Reputation: 30
My machine slowed down.it waits 10 second to open mozilla browser every time....same for gnome-terminal

does it have somethind to do with that DMA thinG??
 
Old 08-29-2004, 08:17 AM   #3
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
man hdparm or search the forums. There is a rather large thread regarding setting these parameters.

As root:

# hdparm /dev/hda
# hdparm -Tt /dev/hda
# hdparm --help

HTH
 
Old 08-29-2004, 09:14 AM   #4
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Franklin
man hdparm or search the forums. There is a rather large thread regarding setting these parameters.

As root:

# hdparm /dev/hda
# hdparm -Tt /dev/hda
# hdparm --help

HTH
thnx..i'll give it a try
 
Old 08-29-2004, 10:30 AM   #5
sh1ft
Member
 
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 32
To turn on dma do hdparm -d1 /dev/hdx

To check if it is turned on after this do hdparm -i /dev/hdx and it will tell you, or just do another benchmark, it should be much faster. Note that if you have to turn on dma manually it will reset every reboot so you need to add that command to /etc/rc.d/rc.local.

But it sounds like you don't have dma turned on in your kernel. May have to recompile and make sure you look for the dma option in the config process.
 
Old 08-29-2004, 08:40 PM   #6
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
I had googled to make sure there wasn't a difference between 2.4 and 2.6 kernels and hdparm and I found some interesting references to 2.6.8-1 kernel and poor hard drive performance - as in bad hdparm numbers that were not there with 2.6.7. You may want to google this and keep up to date with this issue.

Just an FYI
 
Old 08-30-2004, 08:10 PM   #7
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
I ahd the same thing happen the other day. Has to do wit hyour kernel configuration options. You need to make sure you have selected to automatically enable DMA. Don't remember the xact options, but I eventually got it working. I think it is a better solution thatn hdparm, but it's gonna take more time to figure out which options you need to choose.

Good luck,
 
Old 08-30-2004, 09:51 PM   #8
sh1ft
Member
 
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 32
I'm using 2.6.8.1 and have very good performance:

Code:
/dev/hda:
 Timing buffer-cache reads:   1236 MB in  2.00 seconds = 618.71 MB/sec
 Timing buffered disk reads:  142 MB in  3.06 seconds =  46.47 MB/sec
Thats just an average hard drive that came with my pos dell dimension 2400

Last edited by sh1ft; 08-30-2004 at 09:53 PM.
 
Old 08-30-2004, 11:13 PM   #9
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
Quote:
Originally posted by shilo
I ahd the same thing happen the other day. Has to do wit hyour kernel configuration options. You need to make sure you have selected to automatically enable DMA. Don't remember the xact options, but I eventually got it working. I think it is a better solution thatn hdparm, but it's gonna take more time to figure out which options you need to choose.

Good luck,
Do I have anything missing in the kernel config?
cat .config | grep "DMA"

CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y

P.S. I was told that hdparm can lose the data on your harddrive and use with care, is it true?
 
Old 09-05-2004, 12:21 PM   #10
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
hello to all!
acording to the posts,many of you has solved the DMA issue in the kernel-2.6.xx,if so could aomeone explain it please?

howto set DMA

hi!does someone know how to set DMA on in kernel-2.6.xx?I know the kernel-2.4.26 sets on by default,but 2.6.xx doesn't.when I command like this -------->/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

with 2.4.26 no need to command.I tried to look for and to enable from the kernel-2.6.xx menu,but I couldn't find place where from to enable.does someone know exact place in the kernel-2.6.xx menu or where to enable DMA from?thanks!
 
Old 09-05-2004, 12:34 PM   #11
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
DMA is set automatically at boot time for me. I'm using the 2.6.8.1 kernel. Here's the relevant parts of my config.

Code:
shilo@shilo2:~$ cat /usr/src/linux/.config|grep -i dma
CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
 
Old 09-05-2004, 12:46 PM   #12
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
this my config,but DMA is not set on auto eventough I have command in rc.local

moonloader@moonloader:/usr/src/linux-2.6.8.1# cat .config | grep "DMA"
CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
CONFIG_IEEE1394_SBP2_PHYS_DMA=y
 
Old 09-05-2004, 03:20 PM   #13
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
hello to all!
I found out how to set the DMA on and it same for the kernel-2.4.xx and kernel-2.6.xx.this is how I did it and I hope this post will help to the people who has same issue or who wants to set DMA on.

ATA/ATAPI/API/MFM/RLL support yes
PCI IDE chipset support yes
Generic PCI bus-master DMA support yes
then I chose All options in same menu (what effect to set DMA on!!!)

results success!

/dev/hda:
using_dma = 1 (on)

Last edited by moonloader; 09-05-2004 at 03:24 PM.
 
  


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
Can't Turn DMA On Optimistic Debian 8 10-17-2005 06:59 PM
can't turn DMA on my hard drive slzckboy Linux - General 6 09-24-2005 01:26 PM
Yes, but, how do I turn on DMA for DVD ROM? hitheringwaters MEPIS 13 06-03-2005 05:58 AM
how to turn on hd dma acceleration jasonmantey Linux - Newbie 11 08-23-2004 12:25 PM
how to turn off dma for harddisk? bejamex Linux - Newbie 1 06-13-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:26 PM.

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