Subject: CVS commit: src/sys/uvm
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 02/15/2007 20:22:44
Module Name:	src
Committed By:	ad
Date:		Thu Feb 15 20:22:43 UTC 2007

Modified Files:
	src/sys/uvm: uvm_meter.c

Log Message:
Fix load average calculation:

- Don't consider kernel threads when calculating the load average. Their
  priorities are no longer adjusted by the scheduler, and their level of
  activity is dependent upon running user processes.
- Change the (l->l_priority > PZERO) check in uvm_meter() to (l->l_flag &
  L_SINTR). I think this check was originally intended to weed out
  processes sleeping interruptably.


To generate a diff of this commit:
cvs rdiff -r1.44 -r1.45 src/sys/uvm/uvm_meter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.