From owner-freebsd-stable@freebsd.org Tue Aug 1 06:07:25 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5DA0DB2FB4 for ; Tue, 1 Aug 2017 06:07:25 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C273165F90 for ; Tue, 1 Aug 2017 06:07:25 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id BECCCDB2FB2; Tue, 1 Aug 2017 06:07:25 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE331DB2FB1 for ; Tue, 1 Aug 2017 06:07:25 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7AA4565F8F for ; Tue, 1 Aug 2017 06:07:25 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1dcQKq-0005B0-N6; Tue, 01 Aug 2017 09:07:16 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: issues with powerd/freq_levels From: Daniel Braniss In-Reply-To: <20170731201323.A6737@sola.nimnet.asn.au> Date: Tue, 1 Aug 2017 09:07:15 +0300 Cc: stable@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <8AEC9DBC-BADD-4FB2-8358-DA43F7EF5E68@cs.huji.ac.il> <20170731201323.A6737@sola.nimnet.asn.au> To: Ian Smith X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2017 06:07:25 -0000 all boards are identical, purchased at the same time. > On 31 Jul 2017, at 13:48, Ian Smith wrote: >=20 > On Mon, 31 Jul 2017 10:09:11 +0300, Daniel Braniss wrote: >=20 >> I am trying out PCengines latest apu2 boards, and I just noticed that = with different Freebsd versions I get >> different freq_levels, and so when idling, each box (have 5) has a = different freq/temperature value, ranging >> from 125/69.1C, 600/59.0C to 75/56.0C >>=20 >> FreeBSD apu-4 11.1-STABLE FreeBSD 11.1-STABLE #5 f565b5a06ab3 (11) = tip: Mon Jul 31 09:36:33 IDT 2017 >> apu-4# sysctl dev.cpu.0.freq_levels >> dev.cpu.0.freq_levels: 1000/980 800/807 600/609 >=20 > That looks about right. On a Core2Duo (still on 9.3) I get: > dev.est.1.freq_settings: 2401/35000 2400/35000 1600/15000 800/12000 > dev.est.0.freq_settings: 2401/35000 2400/35000 1600/15000 800/12000 > dev.cpu.0.freq_levels: 2401/35000 2400/35000 1600/15000 800/12000 > dev.cpu.0.freq: 800 >=20 > But only because I'd added to /boot/loader.conf: >=20 > hint.p4tcc.0.disabled=3D1 > hint.acpi_throttle.0.disabled=3D1 >=20 the above are in my device.hints, so I assume they now standard. > which became the defaults sometime, maybe not before 11.0? Otherwise=20= > mine would look more similar to the one below, with all 12.5% = increments=20 > in frequency enabled, which doesn't actually save any power at all. >=20 >> FreeBSD apu-5 11.1-PRERELEASE FreeBSD 11.1-PRERELEASE #0 21e9d1ca9b80 = (11) tip: Tue May 30 11:51:48 IDT 2017 >> apu-5# sysctl dev.cpu.0.freq_levels >> dev.cpu.0.freq_levels: 1000/966 875/845 800/795 700/695 600/600 = 525/525 450/450 375/375 300/300 225/225 150/150 75/75 >=20 > Looks like either p4tcc or acpi_throttle is enabled? See cpufreq(4). > As above, these don't buy you anything but extra busyness for powerd. >=20 > Also noticed that the (nice, low!) milliwatt figures for 1000/800/600=20= > freqs are a bit different to the -stable one. Slightly Different = model? >=20 >> FreeBSD apu-1 10.3-STABLE FreeBSD 10.3-STABLE #4 267788fd852c (10) = tip: Tue Jan 10 09:09:00 IST 2017 >> apu-1# sysctl dev.cpu.0.freq_levels >> dev.cpu.0.freq_levels: 1000/-1 875/-1 750/-1 625/-1 500/-1 375/-1 = 250/-1 125/-1 >=20 > And that looks like est(4) isn't enabled/attaching at all .. see dmesg=20= > on all of these for clues. >=20 >> so, any ideas as to what is going on? >=20 > Pure guesswork on experience with older versions, I'm not up to date. >=20 > cheers, Ian well, since I=E2=80=99m mostly interested in 11.1 at the moment, what = you are saying is that=E2=80=99s ok, fine by me,=20 thanks, danny