LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2005, 12:36 PM   #1
puishor
Member
 
Registered: Jun 2005
Location: Bucharest
Distribution: Debian,Knoppix,Slackware
Posts: 91

Rep: Reputation: 15
almost stuck


HI all!

I got a gentoo linux. I installed it ok.
The biggest ( and the stranger one ) problem is that I met is that when I perform some job
( like file copying, compiling , cd burning ) the whole my system is almost stuck , and I couldn't do anything on it.
I tried to use > top -> press r -> renice a process that slow down my system ( tip that I get from this site ) ; but 1. I seems to work inefficiently
2. What could I do if process PID changes (like in "emerge something" ) ?

This was't a problem when I used other distro ( actually other kernel )
Its is really frustrating because even I delete a lot of files from mc ( > 1GB ) , in other xterm I barely can type something.

I suppose I compiled kernel not very appropriately.
Is there I kernel compilation option so that to schedule system to perform background process with less priority ?

Any suggestion are welcome.
 
Old 07-19-2005, 01:27 PM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Do you have dma enabled on your hard disk. Check with "hdparm /dev/hda" (hda is your first hard disk, hdb your second). If not you can try setting it with "hdparm -d1 /dev/hda" but chances are you missed it in your kernel configuration so you have to enable it there. I think it was under IDE, ATA and ATAPI drivers.
 
Old 07-19-2005, 01:52 PM   #3
puishor
Member
 
Registered: Jun 2005
Location: Bucharest
Distribution: Debian,Knoppix,Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
here is my :

Code:
> hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 65535/16/63, sectors = 41110142976, start = 0
when I
Code:
>hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)
And , yes , in my /usr/src/linux/.config for current kernel I got

make menuconfig -> Device Drivers -> ATA/ATAPI/ MFM/ RLL support -> Enable DMA for disks only DISABLED

Is this right check for "enabling DMA " ?
 
Old 07-19-2005, 02:24 PM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Nope you need it on enabled (you need to compile it in, not as module) in the kernel. So you have to recompile it. Then you do the command "hdparm -d1 /dev/hda" it should work then and it should be a lot better
 
Old 07-19-2005, 03:21 PM   #5
puishor
Member
 
Registered: Jun 2005
Location: Bucharest
Distribution: Debian,Knoppix,Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
I enabled option

Device Drivers -> ATA/ATAPI/ MFM/ RLL support -> Enable DMA for disks only

from make menuconfig menu ( built in , not as a module ),and recompiled the kernel.

I works !!!
Finally !!!
Even without
> hdparm -d1
(
because when I type hdparm initally it shows :
/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 = 65535/16/63, sectors = 41110142976, start = 0

i.e. using_dma = 1 (on)

)


thank you,darkleaf, you've really helped me.
 
Old 07-19-2005, 03:24 PM   #6
puishor
Member
 
Registered: Jun 2005
Location: Bucharest
Distribution: Debian,Knoppix,Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
It works !!! -- means that my systems runs OK even when I do lenghty jobs , like cd burning ...
 
Old 07-19-2005, 04:04 PM   #7
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
No problem Glad it got fixed. I have had dma off for a year or so before I asked on here so I know hoe bad it is
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stuck with C++! jeebas_13 Linux - Newbie 2 05-30-2004 08:36 AM
Stuck in X !! ewto Linux - Newbie 3 11-17-2003 01:00 PM
I'm Stuck, so Stuck. basttrax Linux - General 3 11-14-2003 09:59 PM
stuck clowns119 Linux - Software 5 09-24-2003 10:04 PM
Help I'm Stuck chronico Linux - Networking 0 03-26-2003 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:31 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