From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SEi6p-0002jx-QX for garchives@archives.gentoo.org; Mon, 02 Apr 2012 14:19:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 935E9E0BF5; Mon, 2 Apr 2012 14:19:36 +0000 (UTC) Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181]) by pigeon.gentoo.org (Postfix) with ESMTP id D6AE8E08DD for ; Mon, 2 Apr 2012 14:17:42 +0000 (UTC) Received: by iagk10 with SMTP id k10so2495714iag.40 for ; Mon, 02 Apr 2012 07:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=bT17gERAWLldydp5UM6Um+2jBsBG7NSnWxnywTAUHmg=; b=cVzLUGe87eMIgEXHrR+xdWCy1LkaSh2ej/VO0a00K42tu8PIYhpBtAuwa3rvB2aRmu BBwYpwIMsSYH5z2jBC80maSRegdJzunRPdfIBQjUF5W0c/UBLOF5Y02jGrH+N2BAvqNt ravMqKRAIl8Ytw5CuVAVnOu71Zwsd6E6v7EbfFUxtlzIXFoUD/HOhzyBG42i12WXEnVm 5ErHlGxvEcCcIu+aAfwwpHFpcvo+rjiV5IPt2frGxJqblz5OZpWCDJhgUBUZ3NUBlmMR All6wyhmqiYds2stkY9z4NQfgT2+EynphCkix9KDwfEpQg2DQWxM97x5a60rNx88NkJV QS1A== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.50.156.166 with SMTP id wf6mr5650293igb.31.1333376262396; Mon, 02 Apr 2012 07:17:42 -0700 (PDT) Received: by 10.231.61.14 with HTTP; Mon, 2 Apr 2012 07:17:42 -0700 (PDT) In-Reply-To: References: <4F786E9A.60404@gmail.com> <20120402115559.2b723512@gmail.com> Date: Mon, 2 Apr 2012 10:17:42 -0400 Message-ID: Subject: Re: [gentoo-user] Tips for saving power needed... From: Simon To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=e89a8f3bafbb78dc1a04bcb2da5e X-Archives-Salt: d65718d0-b5bc-414d-8bc8-b4872d875d8a X-Archives-Hash: d3d42f54c583214de91c6f652077944d --e89a8f3bafbb78dc1a04bcb2da5e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable There's "powertop" that I use, which shows a listing of things that are keeping the computer busy. And it gives recommendations on how to lower power usage (including setting kernel options, enabling/disabling stuff in /sys, etc...). It also estimates power consumption in Watts and gives you approx time left. Many recomendations already posted in this emails will be suggested by powertop. Simon On Mon, Apr 2, 2012 at 8:10 AM, Michael Mol wrote: > On Mon, Apr 2, 2012 at 7:57 AM, Pandu Poluan wrote: > > > > On Apr 2, 2012 5:00 PM, "Robert David" > > wrote: > >> > >> Hi, > >> > >> maybe write your hw configuration first. Eg: CPUs, graphic cards, HDDs > >> (size, speed, type) and others. > >> > >> Also provide lspci output and /proc/cpuinfo. > >> > >> Then this is a server, maybe with more than one GB nic. If you dont us= e > >> spare nics disable them in bios. Do the same with other unneeded stuff= . > >> > >> If you can access your server and replace cards, remove everything you > >> dont need. Do not lower fans or dont play with cpu voltage. If you wan= t > >> to run this server 24/7 it can cause serious problems. It will not sav= e > >> you much power. Paradoxly this could lead to higher power usage in > >> some cases, because of hotter devices. > >> > >> Remove spare memory cards, if you dont need much memory, etc. > >> > >> Robert. > >> > >> V Sun, 01 Apr 2012 17:04:58 +0200 > >> Jarry naps=E1no: > >> > >> > Hi, > >> > > >> > admin of a colo-center keeps complaining my server is going > >> > a little over power-limit (which they have set as ~120W per > >> > 24h/avg, while my server needs ~130-135W). So I need to find > >> > a way to save at least those 15W, or I will be moved to > >> > higher tarif (which means higher costs for server-housing). > >> > > >> > Before going hard(ware) way, I would like to try first > >> > all possible software solutions. What I tried up to now is > >> > cpufreqd, CONFIG_NO_HZ=3Dy, and spindown. In addition to that > >> > I adjusted fan-speeds to a little lower values and turned > >> > off some unneeded peripherials (in bios). > >> > > >> > Is there anything else I could do? Any tips would be greatly > >> > welcomed... > >> > > >> > Jarry > >> > > >> > >> > > > > I'd rather have *more* RAM than causing unnecessary swaps. > > > > Try using a smaller swapfile to reduce swap tendencies. You can always > push > > a larger swapfile into service when needed. > > > > There's also a kernel knob to set 'swappiness', but I forget what > exactly. > > Try 'sysctl -a | grep swap' > > Swappiness is the knob you want to set if you want to reduce > swappiness. I set mine to 0; swap only when absolutely necessary. > > In /etc/sysctl.conf: > vm.swappiness =3D 0 > > On the command line: > sysctl -w vm.swappiness=3D0 > > -- > :wq > > --e89a8f3bafbb78dc1a04bcb2da5e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable There's "powertop" that I use, which shows a listing of thing= s that are keeping the computer busy.=A0 And it gives recommendations on ho= w to lower power usage (including setting kernel options, enabling/disablin= g stuff in /sys, etc...).=A0 It also estimates power consumption in Watts a= nd gives you approx time left.

Many recomendations already posted in this emails will be suggested by = powertop.

Simon

On Mon, Apr 2, 201= 2 at 8:10 AM, Michael Mol <mikemol@gmail.com> wrote:
On M= on, Apr 2, 2012 at 7:57 AM, Pandu Poluan <pandu@poluan.info> wrote:
>
> On Apr 2, 2012 5:00 PM, "Robert David" <robert.david.public@gmail.com>
> wrote:
>>
>> Hi,
>>
>> maybe write your hw configuration first. Eg: CPUs, graphic cards, = HDDs
>> (size, speed, type) and others.
>>
>> Also provide lspci output and /proc/cpuinfo.
>>
>> Then this is a server, maybe with more than one GB nic. If you don= t use
>> spare nics disable them in bios. Do the same with other unneeded s= tuff.
>>
>> If you can access your server and replace cards, remove everything= you
>> dont need. Do not lower fans or dont play with cpu voltage. If you= want
>> to run this server 24/7 it can cause serious problems. It will not= save
>> you much power. Paradoxly this could lead to higher power usage in=
>> some cases, because of hotter devices.
>>
>> Remove spare memory cards, if you dont need much memory, etc.
>>
>> Robert.
>>
>> V Sun, 01 Apr 2012 17:04:58 +0200
>> Jarry <mr.jarry@gmail.com= > naps=E1no:
>>
>> > Hi,
>> >
>> > admin of a colo-center keeps complaining my server is going >> > a little over power-limit (which they have set as ~120W per >> > 24h/avg, while my server needs ~130-135W). So I need to find<= br> >> > a way to save at least those 15W, or I will be moved to
>> > higher tarif (which means higher costs for server-housing). >> >
>> > Before going hard(ware) way, I would like to try first
>> > all possible software solutions. What I tried up to now is >> > cpufreqd, CONFIG_NO_HZ=3Dy, and spindown. In addition to that=
>> > I adjusted fan-speeds to a little lower values and turned
>> > off some unneeded peripherials (in bios).
>> >
>> > Is there anything else I could do? Any tips would be greatly<= br> >> > welcomed...
>> >
>> > Jarry
>> >
>>
>>
>
> I'd rather have *more* RAM than causing unnecessary swaps.
>
> Try using a smaller swapfile to reduce swap tendencies. You can always= push
> a larger swapfile into service when needed.
>
> There's also a kernel knob to set 'swappiness', but I forg= et what exactly.
> Try 'sysctl -a | grep swap'

Swappiness is the knob you want to set if you want to reduce swappiness. I set mine to 0; swap only when absolutely necessary.

In /etc/sysctl.conf:
vm.swappiness =3D 0

On the command line:
sysctl -w vm.swappiness=3D0

--
:wq


--e89a8f3bafbb78dc1a04bcb2da5e--