LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-06-2004, 02:03 AM   #1
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 95

Rep: Reputation: 28
Unhappy CPU waits endlessly during disk transfers


Hi,

I get really bad performance during disk transfers (reading a big file, for example), 'top' says the following about my CPU:

Cpu(s): 6.3% us, 21.3% sy, 0.0% ni, 0.0% id, 71.7% wa, 0.3% hi, 0.3% si

I did a little research on what 'wa' is supposed to be and it seems that it means the system's waiting for I/O data to arrive. Does anyone know why my CPU would spend so much time waiting and doing nothing?

According to hdparm, DMA is enabled for all my drives, they run in udma5 mode. The data transfer speed is okay (20MB/sec) and it gets much worse when I disable dma, so this doesn't seem to be the issue. There is enough free RAM available too (> 200 MB, which is all used for file cache). The system isn't swapping either.

My hardware:
Athlon XP 2000+ on a Via KT333 chipset
512MB RAM
Kernel 2.6.9
IDE drives are to Seagate Barracuda IV 80GBs


Any clues?

Last edited by frostschutz; 12-06-2004 at 07:46 AM.
 
Old 12-17-2004, 02:10 PM   #2
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 28
Nobody got a clue? :-(
 
Old 12-18-2004, 12:52 AM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
One problem is Seagate hard drives uses more CPU power than IBM/Hitachi and Western Digital even though DMA is used. Another problem is it could be your kernel parameters. Use sysctl to tweak the settings of the kernel so that it can cache and buffer data better.

How big of a file are you talking about? If it is something like 4 GB, you may want to use XFS.

Also try to turn off the advance power management for your drives. Print what "hdparm -v /dev/hd[a-z]".
 
  


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
Gnome app that waits for a window and types text? emendelson Linux - Software 0 10-16-2005 08:27 PM
Flashing SL-5500 = LED lights flash endlessly Zeiph Linux - Laptop and Netbook 1 05-02-2005 06:15 AM
about cpu, disk phoenix_fei Programming 1 12-01-2004 09:39 AM
Specific Tom Waits Picture dushkinup General 1 04-03-2004 08:46 PM
disk/cpu performance Henry_1 Linux - Laptop and Netbook 3 11-20-2003 03:26 PM

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

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