summaryrefslogtreecommitdiffstats
path: root/usr.sbin/powerd
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-02-26 23:22:00 +0000
committernjl <njl@FreeBSD.org>2005-02-26 23:22:00 +0000
commit2347ac87e80fc735b36106e5fb7e78b5552fd932 (patch)
tree7b3a737b0949df32e1c76a9ba8c9573e2bf9afe4 /usr.sbin/powerd
parent1392998ad3073ab1a8725ce4af12c87801fad7a3 (diff)
downloadFreeBSD-src-2347ac87e80fc735b36106e5fb7e78b5552fd932.zip
FreeBSD-src-2347ac87e80fc735b36106e5fb7e78b5552fd932.tar.gz
Change the default levels for adaptive mode to 80% and 90%. On a system
with moderate IO going on, system usage can hover around 65-77% even though it would benefit from higher performance. Typically, only truly idle systems pass the 90% mark so only demote then.
Diffstat (limited to 'usr.sbin/powerd')
-rw-r--r--usr.sbin/powerd/powerd.84
-rw-r--r--usr.sbin/powerd/powerd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/powerd/powerd.8 b/usr.sbin/powerd/powerd.8
index 80cf607..1f17e76 100644
--- a/usr.sbin/powerd/powerd.8
+++ b/usr.sbin/powerd/powerd.8
@@ -73,7 +73,7 @@ to use while on battery power.
Specifies the CPU idle percent level when
adaptive
mode should begin to degrade performance to save power.
-The default is 75% or higher.
+The default is 90% or higher.
.It Fl n Ar mode
Selects the
.Ar mode
@@ -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 50% or lower.
+The default is 80% 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 932996a..54a19f3 100644
--- a/usr.sbin/powerd/powerd.c
+++ b/usr.sbin/powerd/powerd.c
@@ -41,8 +41,8 @@ __FBSDID("$FreeBSD$");
#include <sys/sysctl.h>
#include <sys/resource.h>
-#define DEFAULT_ACTIVE_PERCENT 50
-#define DEFAULT_IDLE_PERCENT 75
+#define DEFAULT_ACTIVE_PERCENT 80
+#define DEFAULT_IDLE_PERCENT 90
#define DEFAULT_POLL_INTERVAL 500
enum modes_t {
OpenPOWER on IntegriCloud