summaryrefslogtreecommitdiffstats
path: root/usr.sbin/powerd
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typo higter->higher.trhodes2008-12-241-2/+2
| | | | Spotted by: ganbold
* Restore original frequency on exit.mav2008-11-181-2/+4
| | | | PR: bin/113813
* Set of powerd enchancements:mav2008-11-182-89/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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@
* Add an abbreviation for adaptive mode, and document all the abreviations.obrien2008-06-222-1/+2
|
* getopt(3) returns -1, not EOF.kevlo2008-02-181-1/+1
|
* Failing to set new frequency should not lead to powerd exiting.marck2007-06-131-1/+1
| | | | | | Change err(3) to warn(3) as three other cases. Approved by: njl, des
* Back out revs 1.18 and 1.19; they were based on incorrect assumptions.des2006-02-191-4/+0
| | | | Requested by: nate
* Look for cpu/ichss instead of cpu/p4tcc, which is i386/amd64-only.des2006-02-181-1/+1
|
* Load cpufreq at startup if it isn't there already.des2006-02-181-0/+4
|
* Don't use threads when there's no real reason to.des2006-01-032-158/+142
| | | | MFC after: 2 weeks
* s/5.5/6.0/ in HISTORY section.joel2005-11-241-1/+1
| | | | Discussed with: ru
* -mdoc sweep.ru2005-11-181-1/+1
|
* Be more consistent with the rest of the manual page.pjd2005-11-061-2/+2
|
* Create the devd thread after we have called daemon(). Otherwise, it wouldnjl2005-10-241-3/+3
| | | | | | be killed when the parent exits. Submitted by: Rudolf Cejka <cejkar / fit.vutbr.cz>
* Whitespace fix.njl2005-10-231-1/+1
|
* Set the signal handlers before creating the thread. This is so it inheritsnjl2005-10-201-4/+15
| | | | | | | | the parent's signal mask. Once daemon() forked, signals would be ignored in the child thread. While I'm here, check the return value of daemon(). This fixes termination in the daemon case (bug introduced in last commit). Noticed by: Frederik Lindberg
* Use a pipe for reading devd events as another method of getting the AC linenjl2005-10-192-28/+179
| | | | | | | | | | | | status. Add a thread that waits for events on the named pipe instead of polling the line status via apm or the ACPI sysctl. Additionally, use robust error handling in case devd goes away or we temporarily can't set a frequency (i.e., passive cooling has preempted our setting). Later, this should be improved so that if adaptive control is not being used, we will block while waiting for AC line events, saving a little CPU. Submitted by: Frederik Lindberg <fli+freebsd-current/shapeshifter.se>
* Accept "maximum" and "minimum" modes as well as their abbreviations.des2005-09-262-3/+3
| | | | MFC after: 2 weeks
* Test last minute changes, as gcc isn't too smart.pjd2005-08-241-1/+1
| | | | Reported by: Steve Kargl <sgk@troutmask.apl.washington.edu>
* Add '-P' option which allows to specify pidfile.pjd2005-08-243-7/+36
|
* Change the default adaptive algorithm for phk's one. Thanks to phkbruno2005-08-241-11/+13
| | | | | | | | and Kevin Oberman for this work. Submitted by: Kevin Oberman Reviewed by: njl Approved by: njl
* powerd(8) requires root permissions to run so notify the user if theynjl2005-07-251-0/+4
| | | | | | | try to start it without this. Submitted by: Philip S. Schulz MFC after: 2 days
* Ignore EPERM from sysctl(3). It is returned when passive coolingume2005-07-181-2/+5
| | | | | | is active. Reviewed by: njl
* Fixed markup.ru2005-06-161-11/+16
| | | | Approved by: re
* Drop the default running value to 60% from 80%. Testing shows that wenjl2005-04-102-3/+3
| | | | | cycle too much, wasting power if we trigger a jump to full speed too easily. CPU-bound tasks quickly push idle below this level.
* Add support for recording the total energy used (in joules) when innjl2005-04-101-6/+47
| | | | | | verbose mode. This is useful for profiling new adaptive algorithms in performance (via time(1)) and total energy consumed for a given workload.
* man page -> manual pagebrueffer2005-02-271-1/+1
|
* Move the AC line checking code into its own function, reducing thenjl2005-02-271-40/+55
| | | | | ifdef __i386__ stuff for APM. Tested as working correctly on i386 and compile-tested on sparc64.
* Unbreak !i386 platforms. Only i386 has APM, so don't try to fallbackmarcel2005-02-271-1/+11
| | | | on APM on other platforms.
* Change the default levels for adaptive mode to 80% and 90%. On a systemnjl2005-02-262-4/+4
| | | | | | 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.
* Remove SRCS line since it isn't needed for single-source programs.njl2005-02-261-1/+0
| | | | Pointed out by: ru
* Import powerd(8), a utility for managing power consumption. Currently, itnjl2005-02-263-0/+526
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").
OpenPOWER on IntegriCloud