Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 2009 18:42:03 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        Doug Barton <dougb@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Systems running hot?
Message-ID:  <20091220024203.GO470@bunrab.catwhisker.org>
In-Reply-To: <4B2D8B9C.5030706@FreeBSD.org>
References:  <4B2D4B53.1060503@FreeBSD.org> <op.u47gp1m6gcpajg@desktop1.alchemy-networks.co.uk> <4B2D8B9C.5030706@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--NJSRbAqOy4NeGDns
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Dec 19, 2009 at 06:27:40PM -0800, Doug Barton wrote:
> Paul G Webster wrote:
> > tried running powerd on it?
>=20
> I was not running powerd, but I just enabled it with:
> performance_cx_lowest=3D"HIGH"
> performance_cpu_freq=3D"HIGH"
> economy_cx_lowest=3D"HIGH"
> economy_cpu_freq=3D"HIGH"
>=20
> If I'm reading the rc.conf man page correctly, that will give me the
> benefit of good performance while at the same time dropping the cpu
> frequency and power usage when idle?

The last two look rather counterintuitive to me.

On my laptop, I merely use:

g1-119(6.4-S)[1] grep powerd /etc/rc.conf
powerd_enable=3D"YES"     # Run powerd to lower our power usage.
powerd_flags=3D"-a adaptive -b adaptive -n adaptive"      # Flags to powerd=
 (if enabled).
g1-119(6.4-S)[2]=20

And CPU freq clmbs to 2400 quite quickly on starting a "make buildworld",
while stayng low when the CPU isn't neede so much:

g1-119(6.4-S)[2] tmon

Sat Dec 19 18:36:38 PST 2009 51.5C 450=20
Sat Dec 19 18:36:48 PST 2009 50.5C 600=20
Sat Dec 19 18:36:58 PST 2009 50.5C 450=20
Sat Dec 19 18:37:08 PST 2009 51.5C 600=20
Sat Dec 19 18:37:18 PST 2009 51.5C 300=20
Sat Dec 19 18:37:28 PST 2009 52.5C 600=20
Sat Dec 19 18:37:38 PST 2009 53.5C 450=20
Sat Dec 19 18:37:48 PST 2009 54.5C 450=20
Sat Dec 19 18:37:58 PST 2009 54.5C 450=20
Sat Dec 19 18:38:08 PST 2009 55.5C 600=20

(For anyone who might care:

g1-119(6.4-S)[3] cat bin/tmon
#! /bin/sh

while (true)
do
  echo ""
  (date && sysctl -n hw.acpi.thermal.tz0.temperature dev.cpu.0.freq) | \
    tr '\012' ' '
  sleep 10
done
g1-119(6.4-S)[4]=20

The extent to which that works depends on quite a bit, and I didn't
make it fancy enough to do any sort of checking: it works for my
purposes.)

> Any other suggestions are welcome.

I tend to use default values unless I have a reason to change them. :-}

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--NJSRbAqOy4NeGDns
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iEYEARECAAYFAkstjvsACgkQmprOCmdXAD1rKACcDzMRyPUBvWAReR1Q+SzxxJ+W
s9cAn061Bh4DuTd1/QOUB9ghr5K+7J4m
=QZQj
-----END PGP SIGNATURE-----

--NJSRbAqOy4NeGDns--



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