mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Andika Triwidada" <andika@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: CPU offline but power consumption increased?
Date: Sat, 7 Apr 2007 11:23:54 +0700	[thread overview]
Message-ID: <7e0bae390704062123i2dfaf030icd5a710677bc989a@mail.gmail.com> (raw)

http://andika-lives-here.blogspot.com/2007/03/eksperimen-cpu-hotplug-dan-konsumsi.html

* initial setup:
root@hokage:~# cpufreq-set -d 1.666g
root@hokage:~# cpufreq-set -u 1.666g
root@hokage:~# cpufreq-set -g userspace
root@hokage:~# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 1000 MHz - 1.67 GHz
  available frequency steps: 1.67 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: userspace, powersave, ondemand,
conservative, performance
  current policy: frequency should be within 1.67 GHz and 1.67 GHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 1.67 GHz (asserted by call to hardware).
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 1000 MHz - 1.67 GHz
  available frequency steps: 1.67 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: userspace, powersave, ondemand,
conservative, performance
  current policy: frequency should be within 1.67 GHz and 1.67 GHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 1.67 GHz (asserted by call to hardware).

root@hokage:~# grep rate /proc/acpi/battery/BAT1/state
present rate:            1693 mA


* turn off CPU#1
root@hokage:~# echo 0 > /sys/devices/system/cpu/cpu1/online
root@hokage:~# grep rate /proc/acpi/battery/BAT1/state
present rate:            2084 mA

* turn CPU#1 back on:
root@hokage:~# echo 1 > /sys/devices/system/cpu/cpu1/online
root@hokage:~# grep processor /proc/cpuinfo
processor       : 0
processor       : 1
root@hokage:~# grep rate /proc/acpi/battery/BAT1/state
present rate:            1653 mA


Question: is that normal? I thought power consumption will be
automatically reduced if one core offlined.

Thanks.
Andika

             reply	other threads:[~2007-04-07  4:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-07  4:23 Andika Triwidada [this message]
2007-04-07 23:38 ` Andi Kleen
2007-04-10  8:13   ` Len Brown
2007-04-10 13:44     ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7e0bae390704062123i2dfaf030icd5a710677bc989a@mail.gmail.com \
    --to=andika@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®