LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-29-2003, 10:44 AM   #1
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Rep: Reputation: 15
cpu usage lags the puter w/rh9


Hello!

I recently installed redhat 9 and am experiencing lag once in a while !!!

When i start applications or surf web pages in gnome the computer uses up to 100% cpu for a short moment and lags at the same time. The music chops, the video in mplayer lags and the response in the menus turn slow for a short moment, before cpu usage goes down and everything is normal again.

Is all this normal in redhat 9? Is it this demanding? Do i need a faster cpu or is this some kind of i/o trouble perhaps?

I've installed all the lastest nforce-drivers but no change. My computer is a Athlon 1000mhz with 512mb and 40 gb wd hd. The mobo is a Asus a7n266-vm. All of this worked fine with winxp.

Please, does anyone have any tips?

rgds, Goofee
 
Old 07-29-2003, 10:46 AM   #2
jvds
Member
 
Registered: Jul 2003
Posts: 88

Rep: Reputation: 15
It sounds like the disk is slow. Assuming you are using ide what does

hdparm /dev/hda say?

Rus
 
Old 07-29-2003, 10:53 AM   #3
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Original Poster
Rep: Reputation: 15
It says this:

/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 4865/255/63, sectors = 78165360, start = 0

It's using dma so it should be running ata-100 i think.
 
Old 07-29-2003, 10:57 AM   #4
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Original Poster
Rep: Reputation: 15
And also this with hdparm -Tt /dev/hda:

/dev/hda:
Timing buffer-cache reads: 128 MB in 0.77 seconds =166.23 MB/sec
Timing buffered disk reads: 64 MB in 2.52 seconds = 25.40 MB/sec
 
Old 07-29-2003, 11:52 AM   #5
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Original Poster
Rep: Reputation: 15
I tried to turn IO_support to 32 as well with hdparm -d1 /dev/hda, but the problem is still there. Could this be a kernel problem? I've read this several places. If not, my next step seems to be buying a new cpu.

Goofee
 
Old 07-29-2003, 12:39 PM   #6
jvds
Member
 
Registered: Jul 2003
Posts: 88

Rep: Reputation: 15
It looks all ok..Do you know what FS you are using as it shouldn't be spiking..Does it do it just as the CLI rather than having X running?

Rus
 
Old 07-29-2003, 01:00 PM   #7
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Original Poster
Rep: Reputation: 15
I cleaned up alot of services that weren't in use and my memory usage went from 512 mb to 160-250 mb. I noticed it got a little better, but it still lags in X.

Well in top X, mozilla and the Xs drain max 60%, but in the X system monitor it still peaks. Maybe if i turn of same fancy graphic effects and stuff in gnome it will help.

Goofee
 
Old 07-29-2003, 01:33 PM   #8
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Can't find anything to "tone" down gnome.

I think the only solution to this is to buy a faster cpu or to change window manager to something other than gnome.

Goofee
 
Old 07-29-2003, 01:44 PM   #9
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Strange. I only notice mine chugged down when I am doing really heavy disk file movement or burning CDs. My cpu usage runs at 100% usally (I keep finding neat programs to compile) and my music keeps on playing as happy as if were the only program running. This is with Red Hat 7.3, and a Duron 950 with 512 MB ram.

You could tweak the kernel for better X responsiveness. See The Linux kernel preemption project, for example.

Last edited by fancypiper; 07-29-2003 at 01:53 PM.
 
Old 07-29-2003, 02:13 PM   #10
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Original Poster
Rep: Reputation: 15
My problem was that my memory was full (because of all the services i didn't even use!), so it started to swap. Now the audio/video seems ok, it's just sluggish in mozilla now and that i can live with until i buy a better processor or change to IceVM or something.

Thanks for your tips!
 
Old 07-29-2003, 02:37 PM   #11
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Try opera or galeon. I think the newest version lightweight mozilla based browsers is firebird-mozilla
 
Old 07-29-2003, 02:45 PM   #12
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Hey yeah, you're right! i'll try it, thanks again!
 
Old 07-29-2003, 02:50 PM   #13
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 58
when you run "top" in the terminal do you see anything eating up your memorY?
i seen a couple times where "magicdev" was sucking a box's resources and once it was killed there was no lag...
so just try "top" and see if you notice anything unusual..
 
Old 07-29-2003, 02:59 PM   #14
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Well actually magicdev, mozilla-bin, nautilus, xmms, x and gnome-panel pop up once in a while and my memory usage is now up to 366mb already! darn it!

How did you stop magicdev? Can find it as a service.
 
Old 07-29-2003, 03:09 PM   #15
Goofee
LQ Newbie
 
Registered: Jun 2003
Posts: 29

Original Poster
Rep: Reputation: 15
This is like windows, it eats up all my memory for nothing. X is using 274 mb for itself.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM
Quake 3 lags after kernel and graphics driver update, rh9 gf mx440 rejser Linux - Games 3 02-01-2004 09:17 AM
GAIM .72 and High CPU Usage on RH9 HaughtyElf Red Hat 2 11-20-2003 11:40 AM


All times are GMT -5. The time now is 11:49 PM.

Main Menu
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