From owner-freebsd-hackers Thu Jan 1 05:55:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA13984 for hackers-outgoing; Thu, 1 Jan 1998 05:55:45 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA13980 for ; Thu, 1 Jan 1998 05:55:36 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id NAA17928; Thu, 1 Jan 1998 13:54:35 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199801011354.NAA17928@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0.1 12/23/97 To: dg@root.com cc: Brian Somers , freebsd-hackers@FreeBSD.ORG Subject: Re: load averages never decrease to 0 (FreeBSD 2.1.6) In-reply-to: Your message of "Wed, 31 Dec 1997 12:02:38 PST." <199712312002.MAA26043@implode.root.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 01 Jan 1998 13:54:35 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > >[.....] > >> I have my laptop running 60 ppp processes - all idle - for the last > >> couple of days. The load average tapers out at exactly 1.0. It's a > >> P120 w/ 40Mb of memory running 2.2-stable from about 3 days ago. > >[.....] > > > >I take that back. It's now running at exactly 5.0 ! Nothing else > >(except the 60 ppps) is running ????????? > > The code that calculates the load average is very simple and can be found > in /sys/vm/vm_meter.c. You should be able to take the output of 'ps' and > determine why it is that the code is getting it wrong. It's not really that simple, is it ? For example, updatepri() in kern_synch.c adjusts p_slptime based on the load average.... All of the ppp processes are ``Ss'' (sleeping session leaders), and always blocked in `select' according to ps -l. > -DG > > David Greenman > Core-team/Principal Architect, The FreeBSD Project -- Brian , , Don't _EVER_ lose your sense of humour....