All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc MERLIN <marc_powertop at merlins.org>
To: powertop@lists.01.org
Subject: Re: [Powertop] USB devices get wrong power use values
Date: Sun, 13 Oct 2013 15:10:48 -0700	[thread overview]
Message-ID: <20131013221048.GI30504@merlins.org> (raw)
In-Reply-To: 525AEAF9.5080709@linux.intel.com

[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]

On Sun, Oct 13, 2013 at 11:48:25AM -0700, Arjan van de Ven wrote:
> On 10/13/2013 9:22 AM, Marc MERLIN wrote:
> 
> >>having a USB device active also generally makes the CPU/etc use much more power,
> >>which Powertop "charges" to the USB device in question.
> >>
> >>8 Watts sounds entirely reasonable for that to me...
> >
> >Aah, if the CPU gets involved, then yes, it's a bit more possible.
> >So, a simple USB keyboard that's unused can keep one core awake and burn 8
> >watts if something else goes wrong in the kernel to cause that?
> 
> a bad USB keyboard can keep the processor out of deep package C states..
> not a lot the software can do about that...
> but yet it can be THAT much power delta.
> 
> (we've seen for example on some servers that a cheap keyboard makes > 15 Watts difference, but measured
> at the wall socket, so after the power supply/etc)

So note that it's actually a very small USB widget that behaves as a
keyboard (it's an OTP token).
I've only had that OTP token show as 7W once, and it was suspicious that
it was at the exact same time as my built in camera.

So from what you're staying, you're pretty sure that the measuring code
was correct and that somehow the USB system was wedged or that power
management suspend failed in a way that both devices were taking 14W
together, more than what the entire laptop uses when on batteries with
CPUs mostly asleep?

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/                         | PGP 1024R/763BE901

             reply	other threads:[~2013-10-13 22:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-13 22:10 Marc MERLIN [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-10-18  0:24 [Powertop] USB devices get wrong power use values Marc MERLIN
2013-10-18  0:01 Marc MERLIN
2013-10-13 22:38 Arjan van de Ven
2013-10-13 18:48 Arjan van de Ven
2013-10-13 16:22 Marc MERLIN
2013-10-13 15:33 Arjan van de Ven
2013-10-12 11:16 Sergey Senozhatsky
2013-09-22 23:54 Marc MERLIN

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=20131013221048.GI30504@merlins.org \
    --to=powertop@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.