CVS log for src/usr.sbin/powerd/powerd.c
Up to [FreeBSD] / src / usr.sbin / powerd
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Dec 11 19:22:42 2011 UTC (2 months ago) by ed
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +1 -1 lines
SVN rev 228416 on 2011-12-11 19:22:42Z by ed Add missing static keyword. All global variables and functions in powerd are marked static, except this array of strings. Add the keyword, for consistency.
Revision 1.30.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (3 months ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.30.2.1: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.21.2.3.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.21.2.3: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.3: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.26.2.3.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 3 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.26.2.3: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.3: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.26.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 11 21:52:40 2010 UTC (17 months ago) by brucec
Branches: RELENG_8
CVS tags: RELENG_8_2_BP
Branch point for: RELENG_8_2
Diff to: previous 1.26.2.2: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.2: +1 -2 lines
SVN rev 212481 on 2010-09-11 21:52:40Z by brucec Remove unused variable 'idle' which mistakenly got merged in r212472. Approved by: rrs (mentor)
Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 11 14:39:53 2010 UTC (17 months ago) by brucec
Branches: RELENG_7
CVS tags: RELENG_7_4_BP
Branch point for: RELENG_7_4
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.2: +82 -8 lines
SVN rev 212473 on 2010-09-11 14:39:53Z by brucec MFC r211415: Add -m and -M options to control the minimum and maximum frequency. PR: bin/145063 Submitted by: Boris Kochergin <spawk at acm.poly.edu> Approved by: rrs (mentor)
Revision 1.26.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 11 14:34:16 2010 UTC (17 months ago) by brucec
Branches: RELENG_8
Diff to: previous 1.26.2.1: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.1: +84 -9 lines
SVN rev 212472 on 2010-09-11 14:34:16Z by brucec MFC r211415: Add -m and -M options to control the minimum and maximum frequency. PR: bin/145063 Submitted by: Boris Kochergin <spawk at acm.poly.edu> Approved by: rrs (mentor)
Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Aug 17 09:11:38 2010 UTC (17 months, 3 weeks ago) by brucec
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +82 -8 lines
SVN rev 211415 on 2010-08-17 09:11:38Z by brucec 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
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Jun 16 15:09:45 2010 UTC (19 months, 3 weeks ago) by mav
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +21 -9 lines
SVN rev 209234 on 2010-06-16 15:09:45Z by mav Freq sysctls are quite heavy due to set of malloc()/free() calls. Avoid reading current frequency on every period. Instead do it only after changing and periodically from time to time if somebody else change it. Also dynamically decrease sampling frequency up to 4 times on inactivity,
Revision 1.26.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.26.2.1: preferred, colored; next MAIN 1.26.2.2: preferred, colored
Changes since revision 1.26.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.21.2.2.4.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.21.2.2: preferred, colored; next MAIN 1.21.2.3: preferred, colored
Changes since revision 1.21.2.2: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Feb 4 07:26:26 2010 UTC (2 years ago) by imp
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -0 lines
SVN rev 203482 on 2010-02-04 07:26:26Z by imp Since APM is a legacy technology, that won't be adapted to other platforms, move the test for i386 from the Makefile to powerd.c. The powerpc specific checks are already done this way...
Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Dec 29 22:53:27 2009 UTC (2 years, 1 month ago) by ed
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +1 -1 lines
SVN rev 201227 on 2009-12-29 22:53:27Z by ed ANSIfy almost all applications that use WARNS=6. I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
Revision 1.26.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.26.2.1: preferred, colored; next MAIN 1.26.2.2: preferred, colored
Changes since revision 1.26.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_1, RELENG_8_0
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun May 31 10:27:24 2009 UTC (2 years, 8 months ago) by nwhitehorn
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +18 -10 lines
SVN rev 193161 on 2009-05-31 10:27:24Z by nwhitehorn Teach powerd how to query the PMU AC line state on PowerPC.
Revision 1.21.2.2.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.21.2.2: preferred, colored; next MAIN 1.21.2.3: preferred, colored
Changes since revision 1.21.2.2: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 9 22:10:07 2009 UTC (3 years, 1 month ago) by mav
Branches: RELENG_7
CVS tags: RELENG_7_3_BP, RELENG_7_2_BP
Branch point for: RELENG_7_3, RELENG_7_2
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +146 -80 lines
SVN rev 186982 on 2009-01-09 22:10:07Z by mav Sync powerd with CURRENT. 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. 6. Restore original frequency on exit. 7. getopt(3) returns -1, not EOF. Discussed on: mobile@
Revision 1.21.2.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.21.2.1: preferred, colored; next MAIN 1.21.2.2: preferred, colored
Changes since revision 1.21.2.1: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Nov 18 15:48:23 2008 UTC (3 years, 2 months ago) by mav
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -2 lines
SVN rev 185053 on 2008-11-18 15:48:23Z by mav Restore original frequency on exit. PR: bin/113813
Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Nov 18 13:24:38 2008 UTC (3 years, 2 months ago) by mav
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +143 -79 lines
SVN rev 185050 on 2008-11-18 13:24:38Z by mav 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@
Revision 1.6.2.5.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.6.2.5: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.5: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith Create releng/6.4 from stable/6 in preparation for 6.4-RC1. Approved by: re (implicit)
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 28 19:36:36 2008 UTC (3 years, 5 months ago) by obrien
Branches: RELENG_7
CVS tags: RELENG_7_1_BP
Branch point for: RELENG_7_1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -1 lines
SVN rev 182400 on 2008-08-28 19:36:36Z by obrien MFC: r179932: Add an abbreviation for adaptive mode.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jun 22 17:52:57 2008 UTC (3 years, 7 months ago) by obrien
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -1 lines
SVN rev 179932 on 2008-06-22 17:52:57Z by obrien Add an abbreviation for adaptive mode, and document all the abreviations.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Feb 18 03:19:25 2008 UTC (3 years, 11 months ago) by kevlo
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -1 lines
getopt(3) returns -1, not EOF.
Revision 1.6.2.5: download - view: text, markup, annotated - select for diffs
Fri Jun 22 00:01:55 2007 UTC (4 years, 7 months ago) by marck
Branches: RELENG_6
CVS tags: RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3
Branch point for: RELENG_6_4
Diff to: previous 1.6.2.4: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.4: +1 -1 lines
MFC rev 1.21: Failing to set new frequency should not lead to powerd exiting. Change err(3) to warn(3) as three other cases. Approved by: njl, des
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Jun 13 19:05:11 2007 UTC (4 years, 8 months ago) by marck
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -1 lines
Failing to set new frequency should not lead to powerd exiting. Change err(3) to warn(3) as three other cases. Approved by: njl, des
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Feb 19 00:40:28 2006 UTC (5 years, 11 months ago) by des
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +0 -4 lines
Back out revs 1.18 and 1.19; they were based on incorrect assumptions. Requested by: nate
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Feb 18 16:01:07 2006 UTC (5 years, 11 months ago) by des
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -1 lines
Look for cpu/ichss instead of cpu/p4tcc, which is i386/amd64-only.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Feb 18 11:35:12 2006 UTC (5 years, 11 months ago) by des
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -0 lines
Load cpufreq at startup if it isn't there already.
Revision 1.6.2.4: download - view: text, markup, annotated - select for diffs
Sun Jan 15 17:50:37 2006 UTC (6 years ago) by delphij
Branches: RELENG_6
CVS tags: RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1
Diff to: previous 1.6.2.3: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.3: +28 -7 lines
MFC pidfile(3) function, and convert several applications to make use of it. Bump __FreeBSDversion for the MFC. Discussed with: pjd
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jan 3 21:32:02 2006 UTC (6 years, 1 month ago) by des
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +139 -158 lines
Don't use threads when there's no real reason to. MFC after: 2 weeks
Revision 1.6.2.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 25 20:07:51 2005 UTC (6 years, 3 months ago) by njl
Branches: RELENG_6_0
CVS tags: RELENG_6_0_0_RELEASE
Diff to: previous 1.6.2.2: preferred, colored; next MAIN 1.6.2.3: preferred, colored
Changes since revision 1.6.2.2: +34 -17 lines
MFC: powerd.c rev 1.6.2.3, powerd.8 rev 1.5.2.1 Approved by: re (scottl)
Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 25 20:05:44 2005 UTC (6 years, 3 months ago) by njl
Branches: RELENG_6
Diff to: previous 1.6.2.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.2: +34 -17 lines
MFC: Warn, don't error out when we temporarily can't set the frequency. Accept "maximum" and "minimum" keywords. Set signals in the right place. Approved by: re (scottl)
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Oct 24 18:34:54 2005 UTC (6 years, 3 months ago) by njl
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
Create the devd thread after we have called daemon(). Otherwise, it would be killed when the parent exits. Submitted by: Rudolf Cejka <cejkar / fit.vutbr.cz>
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Oct 23 00:55:56 2005 UTC (6 years, 3 months ago) by njl
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -1 lines
Whitespace fix.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Oct 20 05:12:20 2005 UTC (6 years, 3 months ago) by njl
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +15 -4 lines
Set the signal handlers before creating the thread. This is so it inherits 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
Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Oct 19 04:48:44 2005 UTC (6 years, 3 months ago) by njl
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +178 -28 lines
Use a pipe for reading devd events as another method of getting the AC line 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>
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Sep 26 12:16:27 2005 UTC (6 years, 4 months ago) by des
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Accept "maximum" and "minimum" modes as well as their abbreviations. MFC after: 2 weeks
Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 6 18:02:19 2005 UTC (6 years, 5 months ago) by njl
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5
Diff to: previous 1.7.2.1: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.1: +13 -11 lines
MFC: ignore non-useful cpufreq levels and change the powerd algorithm to one that saves more power with possibly more performance loss. This is kern_cpu.c:1.20,1.21 and powerd.c:1.9
Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 6 18:01:44 2005 UTC (6 years, 5 months ago) by njl
Branches: RELENG_6
CVS tags: RELENG_6_0_BP
Branch point for: RELENG_6_0
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.1: +13 -11 lines
MFC: ignore non-useful cpufreq levels and change the powerd algorithm to one that saves more power with possibly more performance loss. This is kern_cpu.c:1.20,1.21 and powerd.c:1.9 Approved by: re (scottl)
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Aug 24 19:42:40 2005 UTC (6 years, 5 months ago) by pjd
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1 lines
Test last minute changes, as gcc isn't too smart. Reported by: Steve Kargl <sgk@troutmask.apl.washington.edu>
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Aug 24 17:32:41 2005 UTC (6 years, 5 months ago) by pjd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +28 -7 lines
Add '-P' option which allows to specify pidfile.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Aug 24 07:52:59 2005 UTC (6 years, 5 months ago) by bruno
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +13 -11 lines
Change the default adaptive algorithm for phk's one. Thanks to phk and Kevin Oberman for this work. Submitted by: Kevin Oberman Reviewed by: njl Approved by: njl
Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 29 16:34:05 2005 UTC (6 years, 6 months ago) by njl
Branches: RELENG_6
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -2 lines
MFC: Bring up to HEAD. Notify user if they don't have permission to run powerd and don't exit if the error is EPERM. Approved by: re (kensmith)
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jul 25 16:43:12 2005 UTC (6 years, 6 months ago) by njl
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -0 lines
powerd(8) requires root permissions to run so notify the user if they try to start it without this. Submitted by: Philip S. Schulz MFC after: 2 days
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 21 09:35:33 2005 UTC (6 years, 6 months ago) by bruno
Branches: RELENG_5
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -5 lines
MFC: Import the powerd(8) daemon. Approved by: njl, imp (mentor)
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jul 18 20:15:31 2005 UTC (6 years, 6 months ago) by ume
Branches: MAIN
Branch point for: RELENG_5
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -2 lines
Ignore EPERM from sysctl(3). It is returned when passive cooling is active. Reviewed by: njl
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Apr 10 20:42:55 2005 UTC (6 years, 10 months ago) by njl
Branches: MAIN
CVS tags: RELENG_6_BP
Branch point for: RELENG_6
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
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.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Apr 10 19:02:29 2005 UTC (6 years, 10 months ago) by njl
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +47 -6 lines
Add support for recording the total energy used (in joules) when in verbose mode. This is useful for profiling new adaptive algorithms in performance (via time(1)) and total energy consumed for a given workload.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Feb 27 01:58:49 2005 UTC (6 years, 11 months ago) by njl
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +55 -40 lines
Move the AC line checking code into its own function, reducing the ifdef __i386__ stuff for APM. Tested as working correctly on i386 and compile-tested on sparc64.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:23:19 2005 UTC (6 years, 11 months ago) by marcel
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +11 -1 lines
Unbreak !i386 platforms. Only i386 has APM, so don't try to fallback on APM on other platforms.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Feb 26 23:22:00 2005 UTC (6 years, 11 months ago) by njl
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
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.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Feb 26 21:17:31 2005 UTC (6 years, 11 months ago) by njl
Branches: MAIN
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").
