summaryrefslogtreecommitdiffstats
path: root/usr.sbin/powerd
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-04-10 20:42:55 +0000
committernjl <njl@FreeBSD.org>2005-04-10 20:42:55 +0000
commitef01f962751258288b25974f14e795c503fa91e4 (patch)
tree95fc022002bbac6d784a9099ff07ea42b695689e /usr.sbin/powerd
parent77a934a1eeadf53a0db0c332a55726859dcb413e (diff)
downloadFreeBSD-src-ef01f962751258288b25974f14e795c503fa91e4.zip
FreeBSD-src-ef01f962751258288b25974f14e795c503fa91e4.tar.gz
Drop the default running value to 60% from 80%. Testing shows that we
cycle too much, wasting power if we trigger a jump to full speed too easily. CPU-bound tasks quickly push idle below this level.
Diffstat (limited to 'usr.sbin/powerd')
-rw-r--r--usr.sbin/powerd/powerd.82
-rw-r--r--usr.sbin/powerd/powerd.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/powerd/powerd.8 b/usr.sbin/powerd/powerd.8
index fdf1924..d8d9bba 100644
--- a/usr.sbin/powerd/powerd.8
+++ b/usr.sbin/powerd/powerd.8
@@ -86,7 +86,7 @@ The default is 500 ms.
Specifies the CPU idle percent level where
adaptive
mode should consider the CPU running and increase performance.
-The default is 80% or lower.
+The default is 65% or lower.
.It Fl v
Verbose mode.
Messages about power changes will be printed to stdout and
diff --git a/usr.sbin/powerd/powerd.c b/usr.sbin/powerd/powerd.c
index a2ecb48..13f515d 100644
--- a/usr.sbin/powerd/powerd.c
+++ b/usr.sbin/powerd/powerd.c
@@ -44,9 +44,9 @@ __FBSDID("$FreeBSD$");
#include <sys/sysctl.h>
#include <sys/resource.h>
-#define DEFAULT_ACTIVE_PERCENT 80
+#define DEFAULT_ACTIVE_PERCENT 65
#define DEFAULT_IDLE_PERCENT 90
-#define DEFAULT_POLL_INTERVAL 500
+#define DEFAULT_POLL_INTERVAL 500 /* Poll interval in milliseconds */
enum modes_t {
MODE_MIN,
OpenPOWER on IntegriCloud