Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern update a comment



details:   https://anonhg.NetBSD.org/src/rev/5178e0f382f1
branches:  trunk
changeset: 771740:5178e0f382f1
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Dec 02 12:29:35 2011 +0000

description:
update a comment

diffstat:

 sys/kern/sched_4bsd.c |  25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diffs (47 lines):

diff -r 7b3c6e952f57 -r 5178e0f382f1 sys/kern/sched_4bsd.c
--- a/sys/kern/sched_4bsd.c     Fri Dec 02 12:17:51 2011 +0000
+++ b/sys/kern/sched_4bsd.c     Fri Dec 02 12:29:35 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sched_4bsd.c,v 1.27 2011/07/27 14:35:34 uebayasi Exp $ */
+/*     $NetBSD: sched_4bsd.c,v 1.28 2011/12/02 12:29:35 yamt Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.27 2011/07/27 14:35:34 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.28 2011/12/02 12:29:35 yamt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_lockdebug.h"
@@ -374,18 +374,17 @@
 }
 
 /*
- * We adjust the priority of the current process.  The priority of a process
+ * We adjust the priority of the current LWP.  The priority of a LWP
  * gets worse as it accumulates CPU time.  The CPU usage estimator (l_estcpu)
- * is increased here.  The formula for computing priorities (in kern_synch.c)
- * will compute a different value each time l_estcpu increases. This can
- * cause a switch, but unless the priority crosses a PPQ boundary the actual
- * queue will not change.  The CPU usage estimator ramps up quite quickly
- * when the process is running (linearly), and decays away exponentially, at
- * a rate which is proportionally slower when the system is busy.  The basic
- * principle is that the system will 90% forget that the process used a lot
- * of CPU time in 5 * loadav seconds.  This causes the system to favor
- * processes which haven't run much recently, and to round-robin among other
- * processes.
+ * is increased here.  The formula for computing priorities will compute a
+ * different value each time l_estcpu increases. This can cause a switch,
+ * but unless the priority crosses a PPQ boundary the actual queue will not
+ * change.  The CPU usage estimator ramps up quite quickly when the process
+ * is running (linearly), and decays away exponentially, at a rate which is
+ * proportionally slower when the system is busy.  The basic principle is
+ * that the system will 90% forget that the process used a lot of CPU time
+ * in 5 * loadav seconds.  This causes the system to favor processes which
+ * haven't run much recently, and to round-robin among other processes.
  */
 
 void



Home | Main Index | Thread Index | Old Index