History log of /freebsd-current/usr.sbin/powerd/powerd.8
Revision Date Author Comments
# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


# 28111ddf 25-Feb-2023 Mateusz Piotrowski <0mp@FreeBSD.org>

powerd.8: Provide a whole path to power_profile for clarity

MFC after: 3 weeks


# ec071430 06-Nov-2021 Felix Johnson <felix.the.red@gmail.com>

powerd(8): Add rc.conf(5) to see also

powerd_flags is mentioned in rc.conf(5) and can be set there and pass to
powerd.

PR: 258320
MFC after: 3 days
Reported by: Michael <michael.hmich@gmail.com>


# 98b486dc 03-Mar-2020 Mateusz Piotrowski <0mp@FreeBSD.org>

powerd.8: Improve style & fix typos

- Sort options.
- Do not use macros (like .Ar) to specify width for Bl (macros within that
string are not expanded).
- Use Cm instead of Ar for mode names.
- Fix some typos reported by mandoc.
- Move the documentation of the PID file from the -P flag description to
the FILES section.

Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D23941


# d9138286 29-Feb-2020 Colin Percival <cperciva@FreeBSD.org>

Add -N option to powerd(8) to ignore "nice" time.

With powerd_flags="-N", this makes powerd(8) exclude "nice" time when
computing the CPU utilization. This makes it possible to prevent
CPU-intensive "background" processes from spinning up the CPU.

Note that only *userland* CPU usage belonging to "nice" processes is
excluded; we do not track whether time spent in the kernel is on behalf
of nice or non-nice processes, so kernel-intensive nice processes can
still result in the CPU being sped up.

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D23868


# 5c81ba5a 05-Jan-2019 Andriy Voskoboinyk <avos@FreeBSD.org>

powerd(8): allow to force a method of battery state query

This change allows to determine power source via sysctl or /dev/apm
when devd(8) is running (used by default).

Based on patch from PR; other changes on top of it:
- '-f' (force) -> '-s' (source) parameter renaming;
- allow 'apm' -> 'devd' transition when '-s devd' is set
(if APM is enabled);
- man page update.

Checked on amd64 with -s devd / sysctl and apm
(an extra build with forced USE_APM define set was done)

PR: 125707
Submitted by: Konstantin Stepanov <milezv@yandex.ru>
Reviewed by: bcr, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18742


# 27f90beb 03-Jul-2013 Warren Block <wblock@FreeBSD.org>

Put the power modes in a list to make them easier to find.

Reviewed by: joel
MFC after: 1 week


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# cf2280ac 17-Aug-2010 Rebecca Cran <brucec@FreeBSD.org>

Add -m and -M options to control the minimum and maximum frequency.

PR: bin/145063
Submitted by: Boris Kochergin <spawk at acm.poly.edu>
Reviewed by: cperciva
Approved by: rrs (mentor)
MFC after: 2 weeks


# 01bd5afb 15-Mar-2010 Joerg Wunsch <joerg@FreeBSD.org>

r205170: then -> than


# 0a47b5f5 15-Mar-2010 Joerg Wunsch <joerg@FreeBSD.org>

then -> than

MFC after: 1 day


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 88af2d60 06-Jan-2010 Gavin Atkinson <gavin@FreeBSD.org>

MFC r200819:

Grammar and minor tweaks to powerd(8) man page.

PR: docs/133186
Approved by: ed (mentor, implicit)


# 484b7a09 21-Dec-2009 Gavin Atkinson <gavin@FreeBSD.org>

Grammar and minor tweaks to powerd(8) man page.

PR: docs/133186
Approved by: ed (mentor)
MFC after: 2 weeks


# 5d8e279e 24-Dec-2008 Tom Rhodes <trhodes@FreeBSD.org>

Fix a typo higter->higher.

Spotted by: ganbold


# dbd31977 18-Nov-2008 Alexander Motin <mav@FreeBSD.org>

Set of powerd enchancements:

1. Make it more SMP polite. Previous version uses average CPU load that
often leads to load underestimation. It make powerd with default
configuration unusable on systems with more then 2 CPUs. I propose to use
summary load instead of average one. IMO this is the best we can do without
specially tuned scheduler. Also as soon as measuring total load on SMP
systems is more useful then total idle, I have switched to it.

2. Make powerd's operation independent from number and size of frequency
levels. I have added internal frequency counter which translated into real
frequencies only on a last stage and only as good as gone. Some systems may
have only several power levels, while others - many of them, so adaptation
time with previous approach was completely different.

3. As part of previous I have changed adaptive mode to rise frequency on
demand up to 2 times and fall on 1/8 per time internal.

4. For desktop (AC-powered) systems I have added one more mode - "hiadaptive".
It rises frequency twice faster, drops it 4 times slower, prefers twice
lower CPU load and has additional delay before leaving the highest frequency
after the period of maximum load. This mode was specially made to improve
interactivity of the systems where operation capabilities are more
significant then power consumption, but keeping maximum frequency all the
time is not needed.

5. I have reduced default polling interval from 1/2 to 1/4 of second.
It is not so important for algorithm math now, but gives better system
interactivity.

Discussed on: mobile@


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# dc70a966 22-Jun-2008 David E. O'Brien <obrien@FreeBSD.org>

Add an abbreviation for adaptive mode, and document all the abreviations.


# 19797b22 24-Nov-2005 Joel Dahl <joel@FreeBSD.org>

s/5.5/6.0/ in HISTORY section.

Discussed with: ru


# 78ad5421 18-Nov-2005 Ruslan Ermilov <ru@FreeBSD.org>

-mdoc sweep.


# 177b9d3b 06-Nov-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Be more consistent with the rest of the manual page.


# db20dc4d 25-Sep-2005 Dag-Erling Smørgrav <des@FreeBSD.org>

Accept "maximum" and "minimum" modes as well as their abbreviations.

MFC after: 2 weeks


# 84148fd1 24-Aug-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Add '-P' option which allows to specify pidfile.


# 83c94dad 16-Jun-2005 Ruslan Ermilov <ru@FreeBSD.org>

Fixed markup.

Approved by: re


# 2f8ad6c0 10-Apr-2005 Nate Lawson <njl@FreeBSD.org>

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.


# 7f2f0628 27-Feb-2005 Christian Brueffer <brueffer@FreeBSD.org>

man page -> manual page


# b3c9af56 26-Feb-2005 Nate Lawson <njl@FreeBSD.org>

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.


# 5883360b 26-Feb-2005 Nate Lawson <njl@FreeBSD.org>

Import powerd(8), a utility for managing power consumption. Currently, it
just uses cpufreq(4) but in the future it should also do things like spin
down disks. This is based on the work by Colin Percival (called "estctrl").