public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: system hangs momentarily every 4 mins 2 secs
Date: Sun, 27 Aug 2006 12:26:38 -0700	[thread overview]
Message-ID: <44F1F1EE.1010106@comarre.com> (raw)
In-Reply-To: <200608271145.37956.kloro2006@gmail.com>

tom arnall wrote:
> On Saturday 26 August 2006 23:11, Raseel Bhagat wrote:
> 
>>Hi,
>>
>>On 8/27/06, mike@kevino.org <mike@kevino.org> wrote:
>>
>>>On Sat, 26 Aug 2006 12:55:33 -0700
>>>
>>>tom arnall <kloro2006@gmail.com> wrote:
>>>
>>>>My system hangs momentarily every 4 mins 2 secs. The event coincides
>>>>with a 'top' entry in which 'events/0' grabs 50-95% of cpu capacity.
>>>>How can I determine what is causing the event?
>>
>>This is a long-shot but the last time I had the same problem it turned
>>out that there had developed a loose connection with the heat-sink and
>>processor on the motherboard.
>>As a result, the processor used to over-heat in about every 3 minutes
>>or so, the watchdogs would come into picture and cause the machine to
>>hang or reboot.... usually reboot.
>>
>>Just give a quick check on your hardware before probing into the software
>>side.
> 
> 
> how did you identify the problem with the heat sink?
> 
> is it likely that a hardware problem would cause the hanging phenomenon at 
> such a precise interval? i ran 'top' in batch mode to a file for ~.5 hour and 
> also wrote down the time whenever the hang occurred, then i compared the 
> output of top with the 'hang moments'. there was an exact coincidence 
> with 'top' entries in which 'events/0' was gobbling the cpu. and these events 
> occurred exactly 4 mins 2 secs from each other.
> 
> i also logged the content of /proc/interrupts at intervals of ~.2 sec's. in 
> this case, there was no change at the 'hang moments' except that i got only 1 
> sample for the second in which the hang occurred. in all other cases, of 
> course, i got 5 samples per second.
> 
> thanks in advance,
> 
> tom arnall
> north spit, ca

Tom -- You are right to be skeptical about the heat-sink suggestion. 
I've had problems similar to that one, and they ALWAYS cause either a 
reboot or a permanent hang (possibly with a kernel OOPS). They neve 
cause the sort of transient problem you describe.

What you are seeing isn't really a "hang"; it is just the system 
becoming busy with a task other than the one currently onscreen. The 2 
seconds part intrigues me; might it be the case that the "hang" lasts 
for 2 seconds? Or might the clock be 2 seconds off after it occurs? 
(Hard to check from one instance, but over a day, this would lead to a 
6-minute clock drift, easy to spot.)

I'm pretty sure "events" are what older kernels identify as keventd, a 
process internal to the kernel. That is, you're seeing a line in top 
something like this one ...

4 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/0

... except that the %CPU column is a lot higher.

If I'm right, and if you're using a 2.6.x kernel, then you might see if 
the application systemTap will help you to diagnose the problem. You 
might also check if any cron job is running on this 4-minute cycle.

The other obvious suspects here are device drivers. Does lsmod show 
anything running that's out of the ordinary? Do you have WiFi running on 
this system (if som using what deirvers)?

Finally, 50-95% is a pretty big range. It makes me wonder if there is 
ALSO some process grabbing a lot of CPU (the other 50%, when this value 
is low) on a regular basis. Do you see anything in top?

If none of this helps, and/or if any of my guesses have been wrong, you 
might post again with a more complete description of the system, namely: 
what distro and version, what kernel ("uname -a" usually is enough), and 
what type and speed of CPU. The output of "free" is sometimes 
instructive as well. And what is the typical system load (1.00 - the 
"id" value as reported by top on its third line)?

Oh, and you you use this system for anything other than the usual sorts 
of desktop and server uses?

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  reply	other threads:[~2006-08-27 19:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20060817141403.10351.qmail@web81707.mail.mud.yahoo.com>
     [not found] ` <a9d9d0c00608171240g4537142etebe10abfc512434b@mail.gmail.com>
     [not found]   ` <1155859868.6787.8.camel@localhost>
2006-08-26 19:55     ` system hangs momentarily every 4 mins 2 secs tom arnall
2006-08-27  1:22       ` mike
2006-08-27  6:11         ` Raseel Bhagat
2006-08-27 18:45           ` tom arnall
2006-08-27 19:26             ` Ray Olszewski [this message]
2006-08-29 18:31               ` another place where bootup messages are recorded? tom arnall
2006-08-29 21:16                 ` Chuck Gelm
2006-08-29 23:35                   ` Ray Olszewski
     [not found]                 ` <20060829205333.GC1633@slug>
2006-08-30  0:40                   ` tom arnall
2006-08-27 20:46         ` system hangs momentarily every 4 mins 2 secs tom arnall
     [not found] ` <200608301435.12933.kloro2006@gmail.com>
     [not found]   ` <200608302150.k7ULo12C009621@isp2dial.com>
2006-09-03 18:38     ` tom arnall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44F1F1EE.1010106@comarre.com \
    --to=ray@comarre.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox