LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-27-2005, 12:16 PM   #1
kvsraju
LQ Newbie
 
Registered: Sep 2005
Location: Hyderabad-India
Distribution: Kvs Raju
Posts: 1

Rep: Reputation: 0
CPUs in high IOwait state despite of lack of load


Hi Friends,

We are using Red Hat Linux AS 3.0 on IBM blade server with Oracle 10g.
We have mutiple CPUs (8 CPUs) and 2 nodes RAC Cluster.
Some times CPU usage on two Database nodes showing high IO wait despite of lack of load. That time we are not running any db jobs.
We are check this IOwait using "top" command.

Can any please let us know what may be the reason.
 
Old 10-07-2005, 11:25 PM   #2
basemodel
Member
 
Registered: Jul 2003
Posts: 54

Rep: Reputation: 15
We need more information. Are both these nodes connected to a fibre-channel SAN or SCSI disk array, NFS, etc? Are you using ASM or OCFS? I suggest you install the 'sysstat' package if you don't have it already, this is very useful in determining I/O issues. For example, the command 'iostat -x 1' will show disk IO for each partition, updated once every second. Once you find the partition with the most read/write activity, or avgqu (Average I/O queue), you can do something like 'fuser -vm /dev/sdaX' (where /dev/sdaX is your partition). This will give a list of processes using that partition, so you can narrow it down much more easily. Please post:

1. Speed of the attached storage (1GB for SAN, 160MB/s SCSI, etc)
2. Any PCI Cards involved (SCSI, HBA)
3. Method of connectivity (Direct attached SCSI storage, Fibre attached SAN with or without Fibre switches)
 
Old 10-07-2005, 11:26 PM   #3
basemodel
Member
 
Registered: Jul 2003
Posts: 54

Rep: Reputation: 15
Furthermore, are there any I/O errors in /var/log/messages or dmesg?
 
Old 11-03-2005, 03:34 PM   #4
joerg.weis
LQ Newbie
 
Registered: Nov 2005
Location: Austria
Distribution: Ubuntu 5.10
Posts: 1

Rep: Reputation: 0
Similar problem please help

Hi

we do have a similar problem?
We are running redHat AS with a 2.4.x Kernel on HP Blade in SMP Mode with 2 Processors and 4GB Ram each. The blades are connected to a HP SAN via a QLogic adapter.

We are running a big search engine (FAST) on the machines. The nodes we have problems with are the crawler nodes. The iowait is very high there and the document crawl rate is very low, cpu usage is low and the memory consumption is very ok.

I have done the things mentioned in the post before:

iostat -x 1 showed me that

Code:
Device:    rrqm/s wrqm/s   r/s   w/s  rsec/s  wsec/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
/dev/sda    24.05 827.85 56.96 391.14  648.10 9772.15   324.05  4886.08    23.25    58.35   12.94   1.10  49.37
/dev/sda1   24.05 827.85 56.96 391.14  648.10 9772.15   324.05  4886.08    23.25    58.35   12.94   1.10  49.37
which tells mee that the most frequently used devices are the mounted san devices which are /dev/sda and /dev/sda1

then i executed the mentioned "fuser -vm /dev/sda1" command
which returned the output below, what showed me that the processes
writing to the san are all from our search engine.

Code:
                     USER        PID ACCESS COMMAND
/dev/sda1            fastusr   16212 f....  cachemanager
                     fastusr   16218 f....  frtsobj
                     fastusr   16266 f....  statusserver
                     fastusr   16283 f....  fsearch
                     fastusr   16291 f....  fsearch
                     fastusr   16299 f....  fsearch
                     fastusr   16306 f....  anchorserver
                     fastusr   16355 f.c..  mysqld
                     fastusr   16356 f.c..  mysqld
                     fastusr   16357 f.c..  mysqld
                     fastusr   16358 f.c..  mysqld
                     fastusr   16359 f.c..  mysqld
                     fastusr   16360 f.c..  mysqld
                     fastusr   16363 f.c..  mysqld
                     fastusr   16364 f.c..  mysqld
                     fastusr   16365 f.c..  mysqld
                     fastusr   16366 f.c..  mysqld
                     fastusr   16647 f....  crawler
                     fastusr   16650 f....  crawlerfs
                     fastusr   16652 f....  uberslave
                     fastusr   16654 f....  uberslave
                     fastusr   16655 f....  uberslave
                     fastusr   17083 f....  uberslave
                     fastusr   17140 f....  uberslave
                     fastusr   17142 f....  uberslave
                     fastusr   17200 f....  postprocess
                     fastusr   17202 f....  uberslave
                     fastusr   21036 f.c..  mysqld
                     fastusr   21421 f.c..  mysqld
                     fastusr   21422 f.c..  mysqld
                     fastusr   21423 f.c..  mysqld
                     fastusr   21424 f.c..  mysqld
Than I had a look into dmesg for file system errors and got the following output:

Code:
EXT3-fs error (device sd(8,1)): ext3_readdir: bad entry in directory #2670799: rec_len % 4 != 0 - offset=0, inode=926102069, rec_len=13874, name_len=10
EXT3-fs warning (device sd(8,1)): empty_dir: bad directory (dir #2670799) - no `.' or `..'
EXT3-fs error (device sd(8,1)): ext3_free_blocks: bit already cleared for block 5342380
EXT3-fs error (device sd(8,1)): ext3_free_blocks: bit already cleared for block 6750760
EXT3-fs error (device sd(8,1)): ext3_free_blocks: bit already cleared for block 4654459
EXT3-fs error (device sd(8,1)): ext3_free_blocks: bit already cleared for block 4481402
EXT3-fs error (device sd(8,1)): ext3_readdir: bad entry in directory #2588774: rec_len % 4 != 0 - offset=0, inode=1702129263, rec_len=29806, name_len=45
EXT3-fs warning (device sd(8,1)): empty_dir: bad directory (dir #2588774) - no `.' or `..'
EXT3-fs error (device sd(8,1)): ext3_free_blocks: bit already cleared for block 5178169
EXT3-fs error (device sd(8,1)): ext3_free_blocks: bit already cleared for block 4358984
EXT3-fs error (device sd(8,1)): ext3_free_blocks: bit already cleared for block 2753246
(this is just a bit of the errors I got)

No errors in /var/log/messages file

Please give me some hints what to do to reduce the iowait.
Normally the crawling machines should be able to crawl and process a few thousand documents per minute at the moment we are runnin on 9 documents per second, far away from beeing speedy.

Regards for every answer
 
  


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
Too high load, how to tweak? newlinuxnewbie Linux - General 13 10-31-2009 12:57 PM
high iowait in RHES sklam Red Hat 20 12-14-2006 12:35 PM
GRUB Does not load (Lack of space) Aziz Linux - Software 1 07-11-2005 09:47 AM
high mysql load hardigunawan Linux - General 0 03-04-2003 01:43 AM
Unusually high load subhasis_ray Linux - General 5 09-17-2002 09:28 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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