Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: kernel says load is >30, processes hang
@ 1998-03-10 20:29 Greg Lindahl
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Lindahl @ 1998-03-10 20:29 UTC (permalink / raw)
  To: axp-list

> But sometimes, usually after weeks of uptime, the kernel seems to 
> 'loose' processes, i.e. these things eat lots and lots of CPU-Time 
> (at least they are reported to, the system is not slowed down much...) 
> and I can't kill them. They (or the kernel rather?) don't give attention
> to any signal I would send them.

This is a frequent bug; processes are sleeping at negative priority in
the kernel waiting for something to finish that never will. These
processes can't be killed. If they are waiting for I/O, they count in
the load average. Sendmail's use of the load average is bogus; instead
it really wants to make sure that it isn't running 30 times.

Solution? Fix sendmail to use a smarter algorithm, and attempt to
figure out what is causing these processes to sleep waiting for
something to finish that never will.

Hack? Change the load average to just include processes waiting for
the CPU, not processes waiting for I/O. Solaris did the 2nd, although
I think Sun was threatening to change the algorithm back in 2.6 or
something, I haven't paid attention.

-- g


^ permalink raw reply	[flat|nested] 2+ messages in thread
* kernel says load is >30, processes hang
@ 1998-03-10 17:25 Andi Hechtbauer
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Hechtbauer @ 1998-03-10 17:25 UTC (permalink / raw)
  To: axp-list; +Cc: anti

Hi AXPers,

my PC164, RH4, kernel 2.0.30, heavily working as a web and database 
server normally runs at a load of under 3. 
But sometimes, usually after weeks of uptime, the kernel seems to 
'loose' processes, i.e. these things eat lots and lots of CPU-Time 
(at least they are reported to, the system is not slowed down much...) 
and I can't kill them. They (or the kernel rather?) don't give attention
to any signal I would send them.

They are reported to have PPID 1 (init). There are different programs
that "disconnect" (even shell scripts).

You might think "OK, so your kernel lies about its load, so what?" - 
but the real problem, of course, are other programs like sendmail that
rely on the correct load to be reported, otherwise they stop serving 
properly.

So reboot is my last resort. And I just hate having to do this.

Anyone seen this?

PS: I'm currently working on updating the kernel. And maybe that's the
only real and clean fix. But as this is a remote system, a quick (even 
dirty) solution, would be appreciated gratefully.

regards
-- 
Andi Hechtbauer                                           anti@spin.de 
System Administration                         voice: +49 941 94 65 937
SPiN GmbH               http://www.spin.de/     fax: +49 941 94 65 938  
------- web design - java chats - guestbooks - java/cgi coding -------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-03-10 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-10 20:29 kernel says load is >30, processes hang Greg Lindahl
  -- strict thread matches above, loose matches on Subject: below --
1998-03-10 17:25 Andi Hechtbauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox