From owner-freebsd-current Fri Sep 15 15: 4:39 2000 Delivered-To: freebsd-current@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 0D50C37B422; Fri, 15 Sep 2000 15:04:36 -0700 (PDT) Received: (from jhb@localhost) by pike.osd.bsdi.com (8.9.3/8.9.3) id PAA33840; Fri, 15 Sep 2000 15:04:33 -0700 (PDT) (envelope-from jhb) From: John Baldwin Message-Id: <200009152204.PAA33840@pike.osd.bsdi.com> Subject: Re: cvs commit: src/sys/kern kern_idle.c src/sys/vm vm_meter.c src/sys/i386/isa ithread.c src/sys/sys proc.h In-Reply-To: <200009152200.PAA79187@freefall.freebsd.org> from John Baldwin at "Sep 15, 2000 03:00:24 pm" To: John Baldwin Date: Fri, 15 Sep 2000 15:04:33 -0700 (PDT) Cc: current@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Baldwin wrote: > jhb 2000/09/15 15:00:24 PDT > > Modified files: > sys/kern kern_idle.c > sys/vm vm_meter.c > sys/i386/isa ithread.c > sys/sys proc.h > Log: > - Add a new process flag P_NOLOAD that marks a process that should be > ignored during load average calcuations. > - Set this flag for the idle processes and the softinterrupt process. This should fix the load average calculations with SMPng. Note that the load is still going to be higher than it used to. This is due to the fact that before SMPng, we did not have a process context for the idle loop. Thus, when an interrupt occurred during the idle loop, no process was marked runnable as a result, and that interrupt processing was not taken into account. Now when an interrupt occurs, we mark an interrupt thread runnable, which increases the number of runnable processes that vmmeter finds when it performs the load average calculations. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message