From owner-freebsd-stable@FreeBSD.ORG Wed Mar 21 16:32:48 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A1081065670 for ; Wed, 21 Mar 2012 16:32:48 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id EF8958FC08 for ; Wed, 21 Mar 2012 16:32:47 +0000 (UTC) Received: by pbcwz17 with SMTP id wz17so1063716pbc.13 for ; Wed, 21 Mar 2012 09:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=MyZ1bpEStHHFjZ5JDHSE8gudvdDstKk+mMha8zVYwIY=; b=1E1df1WyLAYkLWRDjZXr75i2bJ5rWG5L7zC9m7xKM4155PxSqhbZxP1OrvtxK1riBC 3gZ8OnA+IE6aNPlWTa3eh+JV7ouHUf9W3S9cswyW2TcACFZkKTEwOWH0UAoXWmOShxyK nJLeqPK/zW3VjR3LBx7QZfpGR3zzZfMLMWaW4oSveg4KEjLjlbNgaGgkhKJQ/TLCnUbD qsCdTqu0EabjncUwCmiA819d7uG5kHm37sQc9gUddsQ5wm5xvwXkIvO1gJPEwPAKGJL3 yBy7Z08kVwPRjTqRm/cFevpVJB2lWQekJyItIZGRZeyYNqYNLQfQI681oxtIvHs/fm2s Y4Tg== MIME-Version: 1.0 Received: by 10.68.73.138 with SMTP id l10mr12850780pbv.22.1332347567463; Wed, 21 Mar 2012 09:32:47 -0700 (PDT) Received: by 10.68.129.106 with HTTP; Wed, 21 Mar 2012 09:32:47 -0700 (PDT) In-Reply-To: References: <20120321000058.177F8256@server.theusgroup.com> Date: Wed, 21 Mar 2012 09:32:47 -0700 Message-ID: From: Kevin Oberman To: Matthias Gamsjager Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org, John Subject: Re: powerd and increase in energy need X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2012 16:32:48 -0000 On Wed, Mar 21, 2012 at 12:41 AM, Matthias Gamsjager wrote: > On Wed, Mar 21, 2012 at 1:00 AM, John wrote: > >> >my zfs nas has an Asus p5e motherboard (x38 chip) and an intel q9300 (q= uad >> >core 2,5Ghz) processor with all the energy save setting enabled in the >> >bios. Today I connected the power cord to a voltcraft energy meter to s= ee >> >how much energy the whole system needs in idle mode. >> > >> >I found out that with powerd running the cpu get clocked down to 499 mh= z >> >with is nice. The funny thing is that this doesn't decrease the amount = of >> >watts the machine need. 2,5ghz or 499mhz doen't matter at all. It gets >> even >> >funnier. With powerd running the systems actually needs 4 watts more th= en >> >without powerd running. >> > >> >Isn't the whole point of powerd to to decease the energy needs of a >> >machine? or is it utterly broken with this cpu generation? >> >> Powerd does decrease energy on my more modern hardware. This machine is >> used >> for backups and is idle much of the time. It runs Freebsd 8.3-Prerelease >> with >> the turbo-boost patch on an i5-650 in an intel DH55HC motherboard. >> >> The following power measurements were made with a Kill-A-Watt meter. >> >> 91w while doing a compile, dev.cpu.0.freq: 3193 (turbo boost enabled) >> 81w compile complete, disks quiet, top reports between 99.9 and 100% idl= e >> =A0 =A0 =A0 =A0dev.cpu.0.freq: 3193 >> 71w idle for several seconds, powerd running in hiadaptive mode, >> =A0 =A0 =A0 =A0dev.cpu.0.freq: 1197 >> >> >> sysctl dev.cpu |grep cx >> dev.cpu.0.cx_supported: C1/3 C2/205 C3/245 >> dev.cpu.0.cx_lowest: C2 >> dev.cpu.0.cx_usage: 100.00% 0.00% 0.00% last 259us >> >> sysctl dev.cpu |grep freq =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~ >> dev.cpu.0.freq: 1197 >> dev.cpu.0.freq_levels: 3193/9875 3192/9125 3059/8250 2926/7500 2793/6875 >> 2660/6250 2527/5750 2394/5250 2261/4750 1197/2750 >> >> /etc/rc.conf >> powerd_flags=3D"-n hadp" >> performance_cx_lowest=3D"C2" >> economy_cx_lowest=3D"C2" >> performance_cpu_freq=3D"HIGH" >> >> John Theus >> TheUs Group >> TheUsGroup.com >> > > I will give these setting a try thx.. If you are trying to reduce power consumption, why are you limiting Cx states to C2 (which save little) and not C3 (which will save a LOT of power when the CPU is not heavily loaded). If it is due to the system hanging, it is almost certainly because you have throttling enabled. Throttling, either by the use of TCC (also called P4TCC) or the older, externally implemented throttling mechanism, is a BAD BAD THING! I have complained for years about it being the default. It is intended for thermal control, not power management. The power savings will be negligible and, in combination with deep sleep modes (Cx > 2) can and do result in the CPU going into deep sleep and never waking up. You can (and should) disable them in /boot/loader.conf with: # Disable CPU throttling hint.p4tcc.0.disabled=3D1 hint.acpi_throttle.0.disabled=3D1 This should greatly reduce the large number of "frequencies" available, but they will be the ones provided by EST.which really do reduce power consumption. (I put frequencies in quotation marks because throttling does not really change the clock speed. It simply skips 'N' of every 8 clock cycles. Still, compared to C3 and higher, EST is a minor power savings. Just following the recommendations on the power management web page is the way to go. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com