Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-08-2002, 03:57 AM   #1
LQ Newbie
Registered: Aug 2001
Location: South Africa
Distribution: Slackware 8.0
Posts: 23

Rep: Reputation: 15
CPU/RAM Problem

I am having a machine that with no clear reason just freezes and i have to do restart before getting everything going again. Is there a way to log the cpu and RAM usage to enable me to check which processes used the most cpu and ram at the point before the machine freezes. I think one of my programs just start using all the cpu available. Do you know about a problem in Mysql using up all cpu available?

Old 03-08-2002, 05:07 AM   #2
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
If you haven't changed anything and this just suddenly started then I'd be looking at hardware not software. Even with a fullyloaded system you shouldn't get freezes for no reason. Nothing is listed in /var/log/messages?

If you do what to try to find out whats going on with your processes you can always run something like
ps aux >> /tmp/someFile
every minute from roots crontab, but this still may not show you the problem as it will use resources itself.


Old 03-10-2002, 12:51 PM   #3
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
'top' of course gives you a running view of every processes RAM and processor usage. If the freezes happen with enough warning, you may also want a terminal running with:

tail -f /var/log/messages

Honestly if its a sudden hard freeze, that's typically a hardware issue: dead fans, bad memory, etc.


Old 03-10-2002, 02:23 PM   #4
Senior Member
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
I had a problem that sounds something like that. In my case the
browser just ate up the whole RAM and swap until everything
- well not really crashed - but it took about 3 minutes just to get
a shell up to kill the browser.
If you running KDE or Gnome try to run a systemmonitor in the
taskbar that shows what is going on with your memory.
Old 03-11-2002, 11:46 AM   #5
LQ Addict
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Rep: Reputation: 45
I had problems with that also.

In my case, it was a bad memory card. It would work on boot testing, but once Linux started trying to use it, BAM! Freeze.


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
ram, cpu and process quotas Mig21 Linux - Security 3 07-25-2005 03:12 AM
New mobo, cpu, ram joker20 Slackware 4 09-18-2004 06:41 AM
2 CPU and 8G ram BRAHmS Linux - Newbie 2 05-07-2004 10:11 PM
Question on CPU speed vs RAM satimis Linux - Hardware 8 01-08-2004 02:05 PM
cpu ram os info drbaca1 Linux - General 0 09-03-2001 02:31 PM > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration