Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2009 22:10:07 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/usr.sbin/powerd powerd.8 powerd.c
Message-ID:  <200901092210.n09MAF96027412@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mav         2009-01-09 22:10:07 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    usr.sbin/powerd      powerd.8 powerd.c 
  Log:
  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  Changes    Path
  1.10.2.2  +12 -11    src/usr.sbin/powerd/powerd.8
  1.21.2.2  +146 -80   src/usr.sbin/powerd/powerd.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901092210.n09MAF96027412>