Re: git: powerd - Initial load monitor and cpu frequency adjustm

看板DFBSD_commit作者時間15年前 (2010/06/29 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
One more thing, if you want to change freq for all cpu domains, hw.acpi.cpu.px_global, which sets freq of all cpu domains, could be used, in lue of iterating all cpu domains :) Best Regards, sephe On Tue, Jun 29, 2010 at 10:05 AM, Sepherosa Ziehau <sepherosa@gmail.com> wrote: > Heh, finally the p-state stuffs are used :D > > Since the freq of a cpu domain could be changed independent of the > other cpu domains, we could calculate the avg cpu load within one cpu > domain, instead of calculating the avg load of all cpus, and only > change the freq of that specific cpu domain. > > Best Regards, > sephe > > On Tue, Jun 29, 2010 at 5:38 AM, Matthew Dillon > <dillon@crater.dragonflybsd.org> wrote: >> >> commit cc537f99eefe3e1190b0d2388ead346180e9ea24 >> Author: Matthew Dillon <dillon@apollo.backplane.com> >> Date: ꀠMon Jun 28 14:36:24 2010 -0700 >> >> ꀠ漤owerd - Initial load monitor and cpu frequency adjustment daemon >> >> ꀠ糍his daemon uses the hw.acpi.cpu.px_dom* sysctls to adjust the frequency >> ꀠ沲or all cpus based on the system cpu load. >> >> ꀠ啫or this initial implementation the daemon simply sets cpus to the maximum >> ꀠ沲requency when the 1-second load exceeds 25% of one cpu and sets the cpus >> ꀠ濳o the minimum frequency when the 10-second load drops below 12%. >> >> Summary of changes: >> 濵sr.sbin/powerd/Makefile | ꀠ10 ++ >> 濵sr.sbin/powerd/powerd.8 | ꀠ36 +++++++ >> 濵sr.sbin/powerd/powerd.c | ꀲ55 ++++++++++++++++++++++++++++++++++++++++++++++ >> ꀳ files changed, 301 insertions(+), 0 deletions(-) >> 氲reate mode 100644 usr.sbin/powerd/Makefile >> 氲reate mode 100644 usr.sbin/powerd/powerd.8 >> 氲reate mode 100644 usr.sbin/powerd/powerd.c >> >> http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cc537f99eefe3e1190b0d2388ead346180e9ea24 >> >> >> -- >> DragonFly BSD source repository >> > > > > -- > Live Free or Die > -- Live Free or Die
文章代碼(AID): #1CALich0 (DFBSD_commit)
文章代碼(AID): #1CALich0 (DFBSD_commit)