LinuxQuestions.org
Review your favorite Linux distribution.
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 03-22-2005, 02:31 AM   #1
rahul_kulkarni
Member
 
Registered: Dec 2004
Posts: 32

Rep: Reputation: 15
Why my linux box is very slow?


Hello All,

I have Red Hat Enterprise Linux WS 3 with kernel 2.4.21-4.El. Here is my system configuration:

Processor: 2.8GHz.
RAM: 2GB.
Harddisks: 2, 40 GB each.

Even after having the configuration above my system is very slow. What could be the reason? I did run iostat on my system and found some abnormal figures, particulary the queue size and service time. Please find the iostat output below:

Time: 12:58:23 PM
avg-cpu: %user %nice %sys %idle
4.69 0.00 0.52 94.79

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/hda 0.00 15.62 0.00 3.12 0.00 150.00 0.00 75.00 48.00 22369142.17 0.00 333.33 104.17
/dev/hda1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
/dev/hda2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
/dev/hda3 0.00 15.62 0.00 3.12 0.00 150.00 0.00 75.00 48.00 0.00 0.00 0.00 0.00
/dev/hdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 22369371.33 0.00 0.00 104.17
/dev/hdb1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Help will be greatly appreciated.
Thanks in advance,

// Rahul
 
Old 03-22-2005, 05:23 AM   #2
cate@d.o
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian GNU/Linux
Posts: 9

Rep: Reputation: 0
The command top didn't show any heavy running process?

Could you do a
Code:
vmstat 10 10
and post the results. (it take some kernal data of 10 second 10 times)

Try dmesg. Do you find some error or strange message?
(failure of hard disk, or some strange hard disk setting)
 
Old 03-22-2005, 06:30 AM   #3
rahul_kulkarni
Member
 
Registered: Dec 2004
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for the reply.

The top command doesn't show anything wrong. I did google and found that there is bug reported for the same:

Bugzilla Bug 134579 bogus data in /proc/partitions for IDE whole-disk device.

Thanks,
// Rahul
 
Old 03-22-2005, 06:34 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
is it slow in general or when doing disk related operations?
 
Old 03-22-2005, 06:42 AM   #5
rahul_kulkarni
Member
 
Registered: Dec 2004
Posts: 32

Original Poster
Rep: Reputation: 15
I think it becomes slow when we do disk related operation. Because when somebody does find on root (find / -name <somefile>) then suddenly it becomes very slow.

// Rahul
 
Old 03-22-2005, 06:45 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
in a terminal ( you will need to be root):

hdparm -d /dev/hda

change hda to whatever device the drives actually are on your system and see if it reports DMA as enabled.
 
Old 03-22-2005, 06:46 AM   #7
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Try running hdparm on your hard drive (probably /dev/hda) - if you haven't got DMA enabled, it'll slow you to a crawl.

EDIT

*Sigh* - too slow!
 
Old 03-22-2005, 06:52 AM   #8
rahul_kulkarni
Member
 
Registered: Dec 2004
Posts: 32

Original Poster
Rep: Reputation: 15
Yes I think DMA is enabled for both the hard drives. I got the following output for both the drives:

/dev/hda:
using_dma = 1 (on)

/dev/hdb:
using_dma = 1 (on)

Do I need to disable this? If yes, how do I do that and what are its side effects? Meanwhile I will google for the same.

Thanks,
// Rahul
 
Old 03-22-2005, 06:58 AM   #9
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
no you want it on, without it your problem will be even worse.

what filesystem is it?
 
Old 03-22-2005, 07:03 AM   #10
rahul_kulkarni
Member
 
Registered: Dec 2004
Posts: 32

Original Poster
Rep: Reputation: 15
Its ext3.
// Rahul
 
  


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
Access Linux box using windows very slow niloshima Linux - Networking 1 12-01-2005 02:46 AM
Troubleshooting Slow Transfer Speed Between Linux Box and Windows Box timswim78 Linux - General 1 10-23-2005 12:45 PM
the login box is slow to appear damienduff Debian 2 06-26-2005 04:09 AM
best distro for slow rip/burn box? klancek Linux - General 4 03-18-2004 07:45 PM
Logging in slow to RH 9.0 box tarballed Linux - Newbie 1 07-31-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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