Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern bluntly balance estcpu decay for ncpu > 1. PR/31966.
details: https://anonhg.NetBSD.org/src/rev/601fd7c703ae
branches: trunk
changeset: 764262:601fd7c703ae
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Apr 14 16:19:35 2011 +0000
description:
bluntly balance estcpu decay for ncpu > 1. PR/31966.
diffstat:
sys/kern/sched_4bsd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6701796afdf4 -r 601fd7c703ae sys/kern/sched_4bsd.c
--- a/sys/kern/sched_4bsd.c Thu Apr 14 16:08:53 2011 +0000
+++ b/sys/kern/sched_4bsd.c Thu Apr 14 16:19:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sched_4bsd.c,v 1.25 2009/05/31 04:13:33 yamt Exp $ */
+/* $NetBSD: sched_4bsd.c,v 1.26 2011/04/14 16:19: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.25 2009/05/31 04:13:33 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.26 2011/04/14 16:19:35 yamt Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -236,7 +236,7 @@
*/
/* calculations for digital decay to forget 90% of usage in 5*loadav sec */
-#define loadfactor(loadav) (2 * (loadav))
+#define loadfactor(loadav) (2 * (loadav) / ncpu)
static fixpt_t
decay_cpu(fixpt_t loadfac, fixpt_t estcpu)
Home |
Main Index |
Thread Index |
Old Index