LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-15-2007, 06:33 AM   #1
danraider
Member
 
Registered: Feb 2004
Distribution: Slackware 12 - dropline Gnome
Posts: 43

Rep: Reputation: 15
Determine cause of high IO Wait on CPU?


Hi all,

I have determined that I have massive IO Waits on my CPU. I'm having trouble figuring out what process is causing it though and what to do about it.

Using iostat I see that the %IOWAIT is really high, sometimes above 80% and for long periods of almost a minute at the time my machine is as good as frozen.

I'm running ubuntu 7.10 beta and I'm kindof suspecting xorg.

So, would anyone be able to help me determine the process that is causing this.

Thanks heaps!

/ dan
 
Old 10-15-2007, 07:54 AM   #2
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 366

Rep: Reputation: 44
Is this a multiple disk system?
Server? What server daemons?
Workstation?


I would use ps -auxww and look under the "Start" column to see what actual command has been running the longest.

Get the PID of that command and look for it in /proc

cd /proc/"PID"

then

watch 'ls -l fd' (Will actually show files being process in realtime)
I like to use watch instead of strace ( My eyes can't keep up with all the fast moving text

Maybe have a seperate xterm pulled up with iostat -d 2 (disk)and iostat -c 2 (cpu)


It will be cat and mouse for awhile but eventually you will find the culprit
 
Old 10-15-2007, 10:10 AM   #3
danraider
Member
 
Registered: Feb 2004
Distribution: Slackware 12 - dropline Gnome
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for that, I'm not really sure what to look for through.

The view is just static.

The top file I'm writing to is /dev/null (where I keep all my most important backups )

The system is my good old laptop, core duo 2.16. 2GB ram. 7000rpm 2.5 lappy hdd.


Somehow I don't think ubuntu's kernel is the right choice for me. If I can't figure this out pretty soon I will just compile a vanilla kernel myself.
 
  


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
High CPU ariana Linux - Server 3 07-28-2007 03:09 AM
I/O wait CPU percentage definition DotHQ Linux - Enterprise 9 07-27-2007 02:36 AM
how can I write a simple script to determine cpu? mtucker1337 Programming 5 05-24-2007 01:33 PM
how to determine cpu bit 32 or 64 dgag1 Linux - Software 4 01-30-2006 08:16 PM
High I/O Wait times and TCP buffers? oswald21 Linux - General 0 08-26-2003 11:22 AM


All times are GMT -5. The time now is 07:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration