LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-29-2004, 03:03 PM   #1
EwanG
Member
 
Registered: Sep 2003
Location: San Antonio, TX
Distribution: Debian
Posts: 81

Rep: Reputation: 15
System goes to lunch after about 24 hours


I'm all for giving people, and even machines, a rest. But for some reason, my HDD installed Knoppix 3.6 is exhibiting some odd behaviour if it's left on for long periods of time. What happens is that the machine eventually blanks the screen after about 30 minutes of inactivity, and works fine if I move the mouse or hit the keyboard to wake it up. Even leaving it this way over night is not a problem.

But after about 24 hours of operation, something kicks up on the machine that eats CPU and has the HD going crazy to the point where it's almost impossible to even shut the machine down without unplugging it or holding the power key for several seconds. Because it is so non-responsive in this state, I can't even get a ps -ef to give me a result in a terminal session I left open.

I normally use the XFCE desktop that comes with this version of the distribution, and I'm wondering if that might be having some wierd interaction with some power setting or KDE setting or...

Any ideas?
 
Old 10-29-2004, 03:18 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
No idea as to what may be causing it at this stage,
but an idea on how to find out what's happening ...


How about a cron-job (run every five minutes) that
redirects top's output to a file?

*/5 * * * * top -b -n 1 > ~/`date +"%F_%H%M"`.log



Cheers,
Tink
 
Old 10-30-2004, 03:29 PM   #3
EwanG
Member
 
Registered: Sep 2003
Location: San Antonio, TX
Distribution: Debian
Posts: 81

Original Poster
Rep: Reputation: 15
Actually, I'm now wondering if this might not be some cron job that's running on a daily basis. Is there any way to determine what jobs are in the cron queue? Alternately, I notice a number of files under cron.daily, and am wondering how safe it would be to move these and see if that's the problem... Or am I going to make things worse when cron tries to run one of these and the file isn't there?

Thanks,
Ewan
 
Old 10-31-2004, 03:48 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Yes, I guess it is cron which starts these buggers. Moving files away from cron.daily won't do any harm (apart from the cron jobs not being run at all).
You could even check for /etc/crontab and /var/spool/cron/* files.
 
Old 10-31-2004, 09:08 AM   #5
EwanG
Member
 
Registered: Sep 2003
Location: San Antonio, TX
Distribution: Debian
Posts: 81

Original Poster
Rep: Reputation: 15
Well, I've commented out all of the entries in /etc/crontab and /etc/anacrontab, so we'll see if the system is still responsive tomorrow :-)
 
Old 10-31-2004, 09:16 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
speed this up, move those files to cron.hourly

Cool
 
Old 11-01-2004, 07:27 PM   #7
EwanG
Member
 
Registered: Sep 2003
Location: San Antonio, TX
Distribution: Debian
Posts: 81

Original Poster
Rep: Reputation: 15
Well, after close to 36 hours everything is running fine. So it's pretty obvious that the problem is something either in cron.hourly getting crazy after a while - or more likely something rather wrong in cron.daily.

Taking a look in cron.daily I see:
0anacron
apt-show-versions
bsdmainutils
dlocate
find
logrotate
man-db
modutils
netkit-inetd
raidtools2
samba
smail
standard
sysklogd

Several of these look like things I don't really need. Any idea if there are any of these I "should" be running? I'm guessing logrotate, but anything else? This is a result of a Knoppix 3.6 HD Install in case that is a useful clue...

Thanks,
Ewan
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
System backup takes several hours to complete lagu2653 SUSE / openSUSE 2 07-02-2005 05:03 AM
System going unresponsive every few hours rahaydenuk Linux - General 5 06-09-2005 02:11 AM
How to schedule a firewall to lockdown the system out of office hours? wolfpeach Linux - Security 5 07-20-2004 10:43 AM
System slowing down after a few hours?? BajaNick Linux - General 23 04-24-2004 03:02 AM
Hard Disk hangs if system left on for 2-3 hours jdsahota Linux - General 1 07-13-2003 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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