LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-16-2007, 04:24 AM   #1
Schalken
LQ Newbie
 
Registered: Mar 2006
Distribution: Debian/Ubuntu
Posts: 26

Rep: Reputation: 15
Disk I/O hogs CPU


I like to play Tremulous and listen to music in Amarok at the same time, however I noticed the game chokes when Amarok reads the next song from my 80GB SATA hard drive.

I thought this may be due to a lack of DMA, since without DMA data has to go through the CPU to get into RAM for playback, causing the game to choke.

However, when I run hdparm I get:

Code:
tuxmachine:~ # hdparm /dev/sda

/dev/sda:
 IO_support   =  0 (default 16-bit)
 HDIO_GET_UNMASKINTR failed: Inappropriate ioctl for device
 HDIO_GET_DMA failed: Inappropriate ioctl for device
 HDIO_GET_KEEPSETTINGS failed: Inappropriate ioctl for device
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 9729/255/63, sectors = 156301488, start = 0
How can I check and make sure that DMA is enabled for my SATA hard drive?

Using OpenSUSE 10.2 with KDE.
 
Old 07-16-2007, 06:58 AM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
For sata disks there exists the same application as hdparm, only they named it sdparm. But did you do the hdparm in root mode ? If you haven't .. try, because AFAIK hdparm should be able to tell you.
 
Old 07-17-2007, 01:32 AM   #3
Schalken
LQ Newbie
 
Registered: Mar 2006
Distribution: Debian/Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by puntjuh
For sata disks there exists the same application as hdparm, only they named it sdparm. But did you do the hdparm in root mode ? If you haven't .. try, because AFAIK hdparm should be able to tell you.
Executed as root (as was hdparm previously, tuxmachine my hostname ):

Code:
tuxmachine:~ # sdparm /dev/sda
    /dev/sda: ATA       WDC WD800JD-60LS  07.0
Read write error recovery mode page:
  AWRE        1
  ARRE        1
  PER         0
Caching (SBC) mode page:
  WCE         1
  RCD         0
Control mode page:
  SWP         0
... nothing about DMA, and neither does
Code:
sdparm -a /dev/sda
, unless SATA DMA has its own acronym that is one of those.
 
Old 07-17-2007, 01:39 AM   #4
adilbhilai
LQ Newbie
 
Registered: May 2007
Distribution: RHEL 5.1 & Fedora 16
Posts: 29

Rep: Reputation: 15
tuxmachine:~ # sdparm /dev/sda

# prompt means he is in root mode....)

Last edited by adilbhilai; 07-17-2007 at 01:41 AM.
 
Old 07-17-2007, 01:42 AM   #5
adilbhilai
LQ Newbie
 
Registered: May 2007
Distribution: RHEL 5.1 & Fedora 16
Posts: 29

Rep: Reputation: 15
# sdparm -a /dev/hdc will not give any info about dma

Last edited by adilbhilai; 07-17-2007 at 02:07 AM.
 
Old 07-17-2007, 02:04 AM   #6
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
ok hdparm, doesn't tell you indeed. Anyway, about Amarok, do you perhaps have the OSD enabled? Where the picture in the above left corner pops up everytime a next song starts? This made my computer choke in games as well each time, i disabled it and gone we're my problems.

Also see output of:

dmesg | grep ata

should see a line like this:

Code:
ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xE000 irq 20
ata2: SATA max UDMA/133 cmd 0x970 ctl 0xB72 bmdma 0xE008 irq 20
ata3: SATA max UDMA/133 cmd 0x9E0 ctl 0xBE2 bmdma 0xCC00 irq 16
ata4: SATA max UDMA/133 cmd 0x960 ctl 0xB62 bmdma 0xCC08 irq 16
ata5: SATA max UDMA/133 cmd 0xC800 ctl 0xC402 bmdma 0xB800 irq 17
ata6: SATA max UDMA/133 cmd 0xC000 ctl 0xBC02 bmdma 0xB808 irq 17
ata7: SATA max UDMA/133 cmd 0xF8908100 ctl 0x0 bmdma 0x0 irq 21
ata8: SATA max UDMA/133 cmd 0xF8908180 ctl 0x0 bmdma 0x0 irq 21

Last edited by puntjuh; 07-17-2007 at 02:14 AM.
 
Old 07-17-2007, 03:34 AM   #7
Schalken
LQ Newbie
 
Registered: Mar 2006
Distribution: Debian/Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Disabled OSD in Amarok, no difference.

And I do indeed see lines like that:

Code:
tuxmachine:~ # dmesg | grep dma
ata1: SATA max UDMA/133 cmd 0xBC00 ctl 0xB882 bmdma 0xB400 irq 169
ata2: SATA max UDMA/133 cmd 0xB800 ctl 0xB482 bmdma 0xB408 irq 169
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
Does this mean that DMA is correctly enabled?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kdar hogs cpu after writting all backup. Cancel only displayed option! suguru SUSE / openSUSE 4 12-19-2005 06:37 AM
Bandwidth logging hogs 50% CPU and fills root fs PsychosisNode Linux - Software 1 12-16-2005 08:47 AM
ideinit hogs 60% of cpu time zzzz Linux - General 4 06-08-2005 07:39 AM
kswapd0 hogs all cpu maenho Linux - Software 2 03-02-2005 08:36 AM
identify cpu hogs edgjerp Mandriva 5 12-14-2004 06:17 AM

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

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