LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2003, 01:45 PM   #1
hjkendall
LQ Newbie
 
Registered: Dec 2003
Location: Atlanta, Ga. USA
Posts: 3

Rep: Reputation: 0
Linux locks up periodically - where do I look for clues?


Howdy,

My question is about how to start debugging a machine that locks up hard and has to be powered off.

I installed Redhat 9 on a Compaq Proliant 1600 with a 450Mhz PII and 512M of memory. The machine has been running NT4.0 for four years or so with no problems so I don't suspect a hardware problem.

I have installed all recent patches (only lack the two that came out today). It runs postfix, amavis-new, and spamassassin and almost nothing else. The last two times it locked up the last thing I did was wake it up in the morning. I saw the log on prompt but did not log on. I have the machine on a miniview KVM switch and I switched over to my Windows box to do some work. When I switched back, nothing. It does not routinely lock up when I switch between machines, so I don't suspect that is the cause.

The box locks up on me every few days and I don't know where to start looking for the problem. By looking at the Cron log I see that it was running at 10:00am today, then nothing until I rebooted at 13:07. I can't find any clues in any of the other logs I find in /var/log

When I say it locks up I mean no response on keyboard or monitor it will not answer a ping, will not process email sent to it, will not respond to ssh session, nothing. Also, the machine is mostly idle. I'm testing it as a spam filter so it only has work to do a few hours a day while I test.

So finally the question, how do I start debugging this?

Thanks,

Joe
 
Old 12-17-2003, 03:42 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
Here are a few guesses of areas where you could start looking.

Is swap initialized and working OK? When a machine is idle for a while swap will sometimes utilize the idle machine time to write a large process to the swap file as a head start for when things get busy. If swap is not set up you could conceivably hang.

Do you have a screensaver enabled? There is the ocassional bug that when a screensaver starts, the machine freezes.

Do you run cron jobs periodically during the day? You could have a screwed up cron job that hangs the machine every time it automatically starts.

"I can't find any clues in any of the other logs I find in /var/log"

You also might take a look at the size of the log files. Is there something that is spewing out large amounts of innocuous error messages?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-17-2003, 03:52 PM   #3
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
i had a problem a month or two ago with a net card sharing an interrupt with anything else. had to swap cards around on the bus until the bios assigned it to it's own irq. very erratic freezes, didn't follow any sort of pattern. might be worth a look.
 
Old 12-17-2003, 05:15 PM   #4
hjkendall
LQ Newbie
 
Registered: Dec 2003
Location: Atlanta, Ga. USA
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the suggestions. I don't have a screensaver (don't really use the GUI on this machine). The video card was asleep when this problem started so that's a possibility.

How do I check the paging setup? I did a quick search on the Web and got lots of hits but no useful info.

Are there any utilities out there to tell me if I have an IRQ conflict?

Thanks again,

Joe
 
Old 12-17-2003, 06:17 PM   #5
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
you can do a quick cat /proc/interrupts in a root term, if everything is on it's own irq than you can prolly rule that out.
 
Old 12-17-2003, 09:37 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
"How do I check the paging setup?"

Issue the free command:
free

Look in /etc/fstab to see if there is an entry for swap. Play around with the swapon and swapoff commands. See:
man swapon
man swapoff
man mkswap

If necessary run mkswap.

Check your boot log to make sure that swap is being started during boot.

"Are there any utilities out there to tell me if I have an IRQ conflict?"

lspci might help. See;
man lspci

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 12-17-2003 at 09:39 PM.
 
Old 12-18-2003, 07:38 AM   #7
hjkendall
LQ Newbie
 
Registered: Dec 2003
Location: Atlanta, Ga. USA
Posts: 3

Original Poster
Rep: Reputation: 0
OK, I checked the interrupts using cat /proc/interrupts and lspci and I don't see any obvious conflicts. I read the man pages for swapon, swapoff, mkswap, and free and I see that I do have a swap area defined. I turned it on manually and see that the system is not using it. That's not surprising since the box is sitting idle right now.

The man page for swapon said it's designed to be started by a startup script like /etc/rc but that doesn't look like a good place put it to me. Where is the proper startup script for it? Does it need to start before other processes? Reading the man page it looks to me like "swapon -a" is the right way to call it.

Thanks again to all for thjis help.

Joe
 
  


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
linux stalls, where to find clues titusind Linux - General 1 08-28-2005 04:17 AM
connection freezes/lags periodically gravybt Linux - Wireless Networking 0 01-30-2004 10:19 PM
gnu-pop3d returns 'ERR quitting on signal' - clues? unknownrisk Linux - Networking 0 11-14-2003 06:29 PM
RH9 freezes periodically bumboo Linux - General 0 07-26-2003 01:52 AM
Any clues for USB Cable Modem installation under RH 7.2? jaleskin Linux - Networking 3 03-13-2002 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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