You are not logged in.

#1 2010-03-18 12:53:15

Ventil1
Member
Registered: 2010-03-17
Posts: 138

How can I see CPU watts usage? command [Solved]

Hi,
How can I see how much watts my cpu is using. Is there a command? A program?

Last edited by Ventil1 (2010-03-18 15:59:50)

Offline

#2 2010-03-18 13:03:09

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: How can I see CPU watts usage? command [Solved]

maybe powertop can help you

Offline

#3 2010-03-18 13:20:52

Ventil1
Member
Registered: 2010-03-17
Posts: 138

Re: How can I see CPU watts usage? command [Solved]

OK. But I don't know how. People are talking about how their eeepc uses 6watts. I wanna see how much mine uses.

$ sudo powertop -h

Usage: powertop [OPTION...]
  -d, --dump            read wakeups once and print list of top offenders
  -t, --time=DOUBLE     default time to gather data in seconds
  -h, --help            Show this help message
  -v, --version         Show version information and exit

$ sudo powertop -d

PowerTOP 1.11   (C) 2007, 2008 Intel Corporation 

Collecting data for 15 seconds 


< Detailed C-state information is not available.>
P-states (frequencies)
Wakeups-from-idle per second : 40,3    interval: 15,0s
no ACPI power usage estimate available
Top causes for wakeups:
  48,7% ( 90,3)     <kernel core> : hrtimer_start_range_ns (tick_sched_timer) 
  14,9% ( 27,7)   USB device  3-1 : USB Receiver (Logitech) 
  14,9% ( 27,6)       <interrupt> : ohci_hcd:usb3, HDA Intel 
   5,2% (  9,6)       <interrupt> : wlan0 
   3,2% (  5,9)   thunderbird-bin : hrtimer_start_range_ns (hrtimer_wakeup) 
   2,2% (  4,0)     <kernel core> : hrtimer_start (tick_sched_timer) 
   2,0% (  3,7)       <interrupt> : acpi 
   1,3% (  2,4)      <kernel IPI> : Rescheduling interrupts 
   1,1% (  2,0)     <kernel core> : clocksource_watchdog (clocksource_watchdog) 
   1,0% (  1,9)            sakura : hrtimer_start_range_ns (hrtimer_wakeup) 
   0,8% (  1,5)      <kernel IPI> : TLB shootdowns 
   0,7% (  1,3)             tint2 : acpi_ec_transaction_unlocked (process_timeout) 
   0,5% (  1,0)       <interrupt> : ehci_hcd:usb2, nvidia 
   0,5% (  1,0)          chromium : hrtimer_start_range_ns (hrtimer_wakeup) 
   0,5% (  1,0)     <kernel core> : run_timer_softirq (nv_kern_rc_timer) 
   0,3% (  0,6)       <interrupt> : ahci 
   0,3% (  0,5)             conky : hrtimer_start_range_ns (hrtimer_wakeup) 
   0,3% (  0,5)     <kernel core> : enqueue_task_rt (sched_rt_period_timer) 
   0,3% (  0,5)     <kernel core> : run_timer_softirq (check_rfctrl_gpio_timer) 
   0,3% (  0,5)     <kernel core> : run_timer_softirq (watch_dog_timer_callback) 
   0,2% (  0,4)      <kernel IPI> : Function call interrupts 
   0,2% (  0,3)     <kernel core> : dev_watchdog (dev_watchdog) 
   0,2% (  0,3)                 X : hrtimer_start_range_ns (hrtimer_wakeup) 
   0,1% (  0,2)              init : hrtimer_start_range_ns (hrtimer_wakeup) 
   0,1% (  0,1)             tint2 : hrtimer_start_range_ns (hrtimer_wakeup) 
   0,1% (  0,1)             crond : hrtimer_start_range_ns (hrtimer_wakeup) 
   0,0% (  0,1)       <interrupt> : PS/2 keyboard/mouse/touchpad 
   0,0% (  0,1)          gconfd-2 : hrtimer_start_range_ns (hrtimer_wakeup) 
   0,0% (  0,1)   thunderbird-bin : start_this_handle (commit_timeout) 
   0,0% (  0,1)         flush-8:0 : scsi_request_fn (blk_rq_timed_out_timer) 
   0,0% (  0,1)          events/1 : queue_delayed_work (delayed_work_timer_fn) 

A USB device is active 100,0% of the time:
USB device  3-1 : USB Receiver (Logitech)

Suggestion: Enable USB autosuspend by pressing the U key or adding 
usbcore.autosuspend=1 to the kernel command line in the grub config

Suggestion: Enable SATA ALPM link power management via: 
  echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
or press the S key.

Recent USB suspend statistics
Active  Device name
  0,0%    USB device  4-3 : BT-270 (Broadcom Corp)
100,0%    USB device  3-1 : USB Receiver (Logitech)
  0,0%    USB device  1-3 : USB2.0 UVC VGA WebCam (Image Processor)
  0,0%    USB device usb4 : OHCI Host Controller (Linux 2.6.32-ARCH ohci_hcd)
100,0%    USB device usb3 : OHCI Host Controller (Linux 2.6.32-ARCH ohci_hcd)
  0,0%    USB device usb2 : EHCI Host Controller (Linux 2.6.32-ARCH ehci_hcd)
  0,0%    USB device usb1 : EHCI Host Controller (Linux 2.6.32-ARCH ehci_hcd)

Offline

#4 2010-03-18 13:24:22

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: How can I see CPU watts usage? command [Solved]

run with battery and without AC, and simply launch as root:

powertop

Offline

#5 2010-03-18 13:27:57

Ventil1
Member
Registered: 2010-03-17
Posts: 138

Re: How can I see CPU watts usage? command [Solved]

OK. It works now.
Wow. It uses 15.1W. That's a lot!
Thanks a lot for helping me takedown

Offline

#6 2010-03-18 13:56:14

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: How can I see CPU watts usage? command [Solved]

not at all... can you add [solved] at the title of this thread?

Offline

#7 2010-03-18 14:34:26

jimburnettva
Member
From: Virginia, USA
Registered: 2010-02-12
Posts: 48
Website

Re: How can I see CPU watts usage? command [Solved]

Nice post. Pretty cool little tool. To find out how much you use on AC use a power meter on your outlet. Plug laptop into power meter.

Here are a few:
http://www.powercostmonitor.com/c139/me … e_plug.php

EDIT: This will show how much power is actually being drawn, not how much is being used. It's still more accurate then measuring from within the laptop....

Last edited by jimburnettva (2010-03-18 14:35:28)


My Linux & Progamming Blog - Jimmy Burnett

Offline

Board footer

Powered by FluxBB