About Blog PGP Key

AMD C1E and powertop

Поигрался с powertop-ом. Посмотрел, как влияет включение C1E на потребляемую мощность от батареи. Для начала запустил powertop с актиным C1E. Вот, что получилось:

< Detailed C-state information is not available.>
P-states (frequencies)
  1.60 Ghz     0.0%
   800 Mhz   100.0%
Wakeups-from-idle per second : 135.7    interval: 15.0s
no ACPI power usage estimate available
Top causes for wakeups:
  88.4% (237.6)        : extra timer interrupt 
   3.5% (  9.5)             udevd : ehci_work (ehci_watchdog) 
   3.3% (  8.8)        : sata_nv 
   0.6% (  1.5)            mysqld : schedule_timeout (process_timeout) 
   0.4% (  1.0)               mpd : schedule_timeout (process_timeout) 
   0.4% (  1.0)       mpdscribble : do_nanosleep (hrtimer_wakeup) 
   0.4% (  1.0)       mpdscribble : sk_reset_timer (tcp_delack_timer) 
   0.4% (  1.0)              ntpd : do_setitimer (it_real_fn) 
   0.3% (  0.9)               mpd : sk_reset_timer (tcp_write_timer) 
   0.3% (  0.9)       mpdscribble : sk_reset_timer (tcp_write_timer) 
   0.3% (  0.9)      : queue_delayed_work_on (delayed_work_timer_fn) 
   0.3% (  0.8)           openvpn : schedule_timeout (process_timeout) 
   0.2% (  0.5)   hald-addon-stor : schedule_timeout (process_timeout) 
   0.2% (  0.5)        uml_switch : do_setitimer (it_real_fn) 
   0.2% (  0.5)    : neigh_table_init_no_netlink (neigh_periodic_timer) 
   0.2% (  0.5)     S25powersaved : acpi_thermal_check (acpi_thermal_run) 
   0.2% (  0.5)      : neigh_table_init_no_netlink (neigh_periodic_timer) 
   0.1% (  0.2)      : page_writeback_init (wb_timer_fn) 
   0.1% (  0.2)              init : schedule_timeout (process_timeout) 
   0.0% (  0.1)           pdflush : do_journal_end (delayed_work_timer_fn) 
   0.0% (  0.1)        : ehci_hcd:usb1, ohci_hcd:usb2 
   0.0% (  0.1)       : Rescheduling interrupts 
   0.0% (  0.1)      : input_handle_event (input_repeat_key) 
   0.0% (  0.1)              cron : do_nanosleep (hrtimer_wakeup) 
   0.0% (  0.1)          ifconfig : rtl8169_open (rtl8169_phy_timer) 
   0.0% (  0.1)      : ip_rt_init (delayed_work_timer_fn) 
   0.0% (  0.1)    : sta_info_start (sta_info_cleanup) 
   0.0% (  0.1)           pdflush : blk_plug_device (blk_unplug_timeout) 
   0.0% (  0.1)   USB device 1-8.1 : USB Keyboard (Chicony) 

То есть процессор “будился” 135 раз в секунду. При этом 90% этого количества непонятно для чего. Потребляемая мощность составила 19W (судя по ACPI). Как я понимаю, чем дольше процессор “спит”, тем меньше он потребляет мощности.

Перезагружаюсь, выключаю этот C1E в BIOS. Запускаю powertop опять. Получаю:

< Detailed C-state information is not available.>
P-states (frequencies)
  1.60 Ghz     0.0%
   800 Mhz   100.0%
Wakeups-from-idle per second : 23.8 interval: 15.0s
no ACPI power usage estimate available
Top causes for wakeups:
  37.2% (  9.9)    : ehci_irq (ehci_watchdog) 
  10.0% (  2.7)        : acpi 
   5.5% (  1.5)            mysqld : schedule_timeout (process_timeout) 
   4.0% (  1.1)      : queue_delayed_work_on (delayed_work_timer_fn) 
   3.8% (  1.0)              ntpd : do_setitimer (it_real_fn) 
   3.8% (  1.0)       mpdscribble : sk_reset_timer (tcp_delack_timer) 
   3.5% (  0.9)               mpd : schedule_timeout (process_timeout) 
   3.5% (  0.9)       mpdscribble : do_nanosleep (hrtimer_wakeup) 
   3.5% (  0.9)               mpd : sk_reset_timer (tcp_write_timer) 
   3.5% (  0.9)       mpdscribble : sk_reset_timer (tcp_write_timer) 
   3.2% (  0.9)           openvpn : schedule_timeout (process_timeout) 
   2.5% (  0.7)        : sata_nv 
   2.0% (  0.5)   hald-addon-stor : schedule_timeout (process_timeout) 
   2.0% (  0.5)    : neigh_table_init_no_netlink (neigh_periodic_timer) 
   2.0% (  0.5)     S25powersaved : acpi_thermal_check (acpi_thermal_run) 
   2.0% (  0.5)      : neigh_table_init_no_netlink (neigh_periodic_timer) 
   1.8% (  0.5)        uml_switch : do_setitimer (it_real_fn) 
   0.8% (  0.2)              hald : schedule_timeout (process_timeout) 
   0.8% (  0.2)              init : schedule_timeout (process_timeout) 
   0.8% (  0.2)      : page_writeback_init (wb_timer_fn) 
   0.8% (  0.2)           pdflush : do_journal_end (delayed_work_timer_fn) 
   0.5% (  0.1)        powersaved : schedule_timeout (process_timeout) 
   0.2% (  0.1)        : ehci_hcd:usb1, ohci_hcd:usb2 
   0.2% (  0.1)       : Rescheduling interrupts 
   0.2% (  0.1)       : TLB shootdowns 
   0.2% (  0.1)              Xorg : input_handle_event (input_repeat_key) 
   0.2% (  0.1)               mpd : sk_reset_timer (tcp_delack_timer) 
   0.2% (  0.1)          ifconfig : rtl8169_open (rtl8169_phy_timer) 
   0.2% (  0.1)      : ndisc_dst_alloc (fib6_run_gc) 
   0.2% (  0.1)           syslogd : do_setitimer (it_real_fn) 
   0.2% (  0.1)    : sta_info_start (sta_info_cleanup) 
   0.2% (  0.1)              cron : do_nanosleep (hrtimer_wakeup) 
   0.2% (  0.1)   USB device 1-8.1 : USB Keyboard (Chicony) 

Теперь этих пробуждений в секунду примерно 24, то есть в 5 раз меньше. Непонятный “extra timer interrupt” исчез. Но потребляемая мощность теперь составляет 26W. Почему она стала заметно больше я не знаю. В обоих случаях процессор работал на минимальной частоте. Наверное в случае C1E спит он более “глубоко” и потребляет заметно меньше, не смотря на то, что по каким то причинам просыпается заметно чаще.

Add post to: Delicious Reddit Slashdot Digg Technorati Google
(already: 1) Comment post

Comments

No comments for this post

Comment form for «AMD C1E and powertop»

Required. 30 chars of fewer.

Required.