View Single Post
tanago's Avatar
Posts: 215 | Thanked: 448 times | Joined on Aug 2012 @ Burgas, Bulgaria
#1486
Reflashed again

Maemo 5 latest official, normal 15-20mAh when idling:
Code:
Powertop 1.13.3
Sleeping for 11 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 28167us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
     C0 |   7.5% |          |  1150 MHz |   nan% |
     C1 |   0.0% |    0.2ms | 
     C2 |   3.7% |    4.5ms | 
     C3 |  30.9% |   91.8ms | 
     C4 |  57.9% | 1241.8ms | 

IRQ#    | Activity   | Type           | Name
--------+------------+----------------+---------------------------
     37 |        472 |           INTC | gp
     57 |        273 |           INTC | i2c_omap
     11 |        246 |           INTC | prcm
     56 |        244 |           INTC | i2c_omap
     21 |         59 |           INTC | SGX
     86 |         33 |           INTC | mmc1
     67 |         12 |           INTC | ssi_p1_mpu_irq0
     71 |          8 |           INTC | ssi_gdd
     12 |          5 |           INTC | DMA
    311 |          4 |           GPIO | ssi_p1_cawake_gpio

PID#    | Activity   | Name           | Function Entry (Expire)
--------+------------+----------------+---------------------------
      0 |        300 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
   1606 |        114 |     osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
     38 |         41D|            awk | cpufreq_governor_dbs (delayed_work_timer_fn)
      0 |         18 |  <kernel core> | hrtimer_start (tick_sched_timer)
    957 |         14 |           Xorg | hrtimer_start (it_real_fn)
    909 |         12 |       sgx_perf | queue_delayed_work (delayed_work_timer_fn)
    686 |          8 |           dsme | __enqueue_rt_entity (sched_rt_period_timer)
    957 |          7 |           Xorg | queue_delayed_work (delayed_work_timer_fn)
    722 |          7 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    597 |          5 |          mmcqd | queue_delayed_work (delayed_work_timer_fn)
      1 |          2D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
     27 |          2 |    kondemand/0 | queue_delayed_work (delayed_work_timer_fn)
    686 |          2 |           dsme | do_nanosleep (hrtimer_wakeup)
    722 |          2 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    722 |          2 |      bme_RX-51 | do_nanosleep (hrtimer_wakeup)
    722 |          2 |      bme_RX-51 | schedule_timeout (process_timeout)
   2228 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
     30 |          1 |          mount | setup_wb_timer (wb_timer_fn)
     14 |          1 |        pdflush | blk_plug_device (blk_unplug_timeout)
   2244 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
    855 |          1 |           hald | schedule_hrtimeout_range (hrtimer_wakeup)
   2260 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   2276 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   1345 |          1 |       trackerd | queue_delayed_work (delayed_work_timer_fn)
   2292 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
    885 |          1 |            mce | schedule_hrtimeout_range (hrtimer_wakeup)
   1546 |          1 |       browserd | futex_wait (hrtimer_wakeup)
   2308 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
    988 |          1 | hald-addon-bme | schedule_hrtimeout_range (hrtimer_wakeup)
   2192 |          1 |       powertop | do_nanosleep (hrtimer_wakeup)

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    sgx |OFF:  86%|RET:   0%|INA:   0%| ON:  13%| now:(OFF)
    per |OFF:  87%|RET:   4%|INA:   0%| ON:   7%| now:(ON)
    dss |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    cam |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
   core |OFF:  57%|RET:  20%|INA:   0%| ON:  20%| now:(ON)
   neon |OFF:  57%|RET:  30%|INA:   3%| ON:   7%| now:(ON)
    mpu |OFF:  57%|RET:  30%|INA:   3%| ON:   7%| now:(ON)
   iva2 |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)

Clock activity breakdown at end of period
Domain  | Active clocks
--------+---------------+---------------+------------------
   core |          SDRC | HSOTGUSB_IDLE |      OMAPCTRL 
        |     MAILBOXES |
   wkup |          GPT1 |       32KSYNC |         GPIO1 
        |          WDT1 |           SR2 |
  ckgen |          CORE |          PERI |           96M 
        |           48M |           12M |           54M 
        |      EMU_CORE |
    per |         GPIO2 |         GPIO3 |         GPIO4 
        |         GPIO5 |         GPIO6 |

Total wakeups  1908,  63.6/s | IRQ 1356,  45.2/s | Timers  552,  18.4/s
HW wakeups      246,   8.2/s |     Real gp_timers expired  216,   7.2/s
On top of it installed CSSU-Stable, again normal 15-20mAh when idling:
Code:
Powertop 1.13.3
Sleeping for 11 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 18859us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
     C0 |   7.5% |          |  1150 MHz |   nan% |
     C1 |   0.0% |    0.3ms | 
     C2 |   5.4% |    5.4ms | 
     C3 |  36.0% |  107.0ms | 
     C4 |  51.1% |  902.9ms | 

IRQ#    | Activity   | Type           | Name
--------+------------+----------------+---------------------------
     37 |        565 |           INTC | gp
     11 |        331 |           INTC | prcm
     57 |        279 |           INTC | i2c_omap
     56 |        187 |           INTC | i2c_omap
     21 |         56 |           INTC | SGX
     86 |          3 |           INTC | mmc1

PID#    | Activity   | Name           | Function Entry (Expire)
--------+------------+----------------+---------------------------
      0 |        377 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
   1544 |        114 |     osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
     38 |         54D|            awk | cpufreq_governor_dbs (delayed_work_timer_fn)
   1236 |         30 | hildon-desktop | schedule_hrtimeout_range (hrtimer_wakeup)
      0 |         16 |  <kernel core> | hrtimer_start (tick_sched_timer)
    954 |         12 |           Xorg | hrtimer_start (it_real_fn)
    912 |         12 |       sgx_perf | queue_delayed_work (delayed_work_timer_fn)
    691 |          9 |           dsme | __enqueue_rt_entity (sched_rt_period_timer)
    954 |          9 |           Xorg | queue_delayed_work (delayed_work_timer_fn)
    730 |          6 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
      1 |          3D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
    602 |          2 |          mmcqd | queue_delayed_work (delayed_work_timer_fn)
    730 |          2 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    730 |          2 |      bme_RX-51 | do_nanosleep (hrtimer_wakeup)
    730 |          2 |      bme_RX-51 | schedule_timeout (process_timeout)
    691 |          2 |           dsme | do_nanosleep (hrtimer_wakeup)
   1267 |          2D|<kernel module> | queue_delayed_work (delayed_work_timer_fn)
   1748 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   1764 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   1179 |          1 |mission-control | schedule_hrtimeout_range (hrtimer_wakeup)
   1780 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   1796 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
    864 |          1 |           hald | schedule_hrtimeout_range (hrtimer_wakeup)
   1812 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
    892 |          1 |            mce | schedule_hrtimeout_range (hrtimer_wakeup)
   1384 |          1 |          fmtxd | queue_delayed_work (delayed_work_timer_fn)
   1828 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   1713 |          1 |       powertop | do_nanosleep (hrtimer_wakeup)

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    sgx |OFF:  86%|RET:   0%|INA:   0%| ON:  13%| now:(OFF)
    per |OFF:  87%|RET:   5%|INA:   0%| ON:   7%| now:(ON)
    dss |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    cam |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
   core |OFF:  51%|RET:  27%|INA:   2%| ON:  18%| now:(ON)
   neon |OFF:  51%|RET:  35%|INA:   5%| ON:   7%| now:(ON)
    mpu |OFF:  51%|RET:  35%|INA:   5%| ON:   7%| now:(ON)
   iva2 |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)

Clock activity breakdown at end of period
Domain  | Active clocks
--------+---------------+---------------+------------------
   core |          SDRC | HSOTGUSB_IDLE |      OMAPCTRL 
        |     MAILBOXES |
   wkup |          GPT1 |       32KSYNC |         GPIO1 
        |          WDT1 |           SR2 |
  ckgen |          CORE |          PERI |           96M 
        |           48M |           12M |           54M 
        |      EMU_CORE |
    per |         GPIO2 |         GPIO3 |         GPIO4 
        |         GPIO5 |         GPIO6 |

Total wakeups  2086,  69.5/s | IRQ 1421,  47.4/s | Timers  665,  22.2/s
HW wakeups       75,   2.5/s |     Real gp_timers expired   53,   1.8/s
Installed CSSU-T on top of CSSU-S, 70mAh when idling:
Code:
Powertop 1.13.3
Sleeping for 11 seconds before sampling
Collecting data for 30 seconds
Sample interval was 00m 30s 18829us

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
     C0 |   7.6% |          |  1150 MHz |   nan% |
     C1 |   0.0% |    0.5ms | 
     C2 |  14.7% |   16.0ms | 
     C3 |  32.9% |   94.9ms | 
     C4 |  44.8% | 1343.0ms | 

IRQ#    | Activity   | Type           | Name
--------+------------+----------------+---------------------------
     37 |        512 |           INTC | gp
     11 |        284 |           INTC | prcm
     57 |        277 |           INTC | i2c_omap
     56 |        248 |           INTC | i2c_omap
     21 |         61 |           INTC | SGX
     86 |         58 |           INTC | mmc1
     12 |         17 |           INTC | DMA

PID#    | Activity   | Name           | Function Entry (Expire)
--------+------------+----------------+---------------------------
      0 |        318 |  <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)
   1596 |        114 |     osso-xterm | schedule_hrtimeout_range (hrtimer_wakeup)
     38 |         37D|            awk | cpufreq_governor_dbs (delayed_work_timer_fn)
      0 |         32 |  <kernel core> | hrtimer_start (tick_sched_timer)
    955 |         18 |           Xorg | hrtimer_start (it_real_fn)
    955 |         18 |           Xorg | queue_delayed_work (delayed_work_timer_fn)
    911 |         13 |       sgx_perf | queue_delayed_work (delayed_work_timer_fn)
    589 |         12 |          mmcqd | schedule_timeout (process_timeout)
    683 |         10 |           dsme | __enqueue_rt_entity (sched_rt_period_timer)
    719 |          7 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    589 |          5 |          mmcqd | queue_delayed_work (delayed_work_timer_fn)
   1325 |          5 |        control | schedule_hrtimeout_range (hrtimer_wakeup)
    589 |          3 |          mmcqd | cfq_completed_request (cfq_idle_slice_timer)
      1 |          3D|  <kernel core> | queue_delayed_work (delayed_work_timer_fn)
    683 |          2 |           dsme | do_nanosleep (hrtimer_wakeup)
    960 |          2D|<kernel module> | queue_delayed_work (delayed_work_timer_fn)
    719 |          2 |      bme_RX-51 | sys_timer_settime (posix_timer_fn)
    719 |          2 |      bme_RX-51 | do_nanosleep (hrtimer_wakeup)
    719 |          2 |      bme_RX-51 | schedule_timeout (process_timeout)
   1953 |          2 |       browserd | futex_wait (hrtimer_wakeup)
   2273 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   1452 |          1 |<kernel module> | queue_delayed_work (delayed_work_timer_fn)
   2290 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   2306 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   2323 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
    749 |          1 |    dbus-daemon | schedule_hrtimeout_range (hrtimer_wakeup)
    887 |          1 |            mce | schedule_hrtimeout_range (hrtimer_wakeup)
   2339 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
    851 |          1 |           hald | schedule_hrtimeout_range (hrtimer_wakeup)
      1 |          1 |  <kernel core> | inet_initpeers (peer_check_expire)
   2356 |          1 |          sleep | do_nanosleep (hrtimer_wakeup)
   1079 |          1 |    dbus-daemon | schedule_hrtimeout_range (hrtimer_wakeup)
   2239 |          1 |       powertop | do_nanosleep (hrtimer_wakeup)

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
usbhost |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
    sgx |OFF:  86%|RET:   0%|INA:   0%| ON:  13%| now:(OFF)
    per |OFF:  77%|RET:  14%|INA:   0%| ON:   7%| now:(ON)
    dss |OFF:   0%|RET:   0%|INA:   0%| ON: 100%| now:(ON)
    cam |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)
   core |OFF:   0%|RET:   0%|INA:   0%| ON: 100%| now:(ON)
   neon |OFF:  44%|RET:  32%|INA:  14%| ON:   7%| now:(ON)
    mpu |OFF:  44%|RET:  32%|INA:  14%| ON:   7%| now:(ON)
   iva2 |OFF: 100%|RET:   0%|INA:   0%| ON:   0%| now:(OFF)

Clock activity breakdown at end of period
Domain  | Active clocks
--------+---------------+---------------+------------------
   core |          SDRC | HSOTGUSB_IDLE |      OMAPCTRL 
        |     MAILBOXES |
   wkup |          GPT1 |       32KSYNC |         GPIO1 
        |          WDT1 |           SR2 |
  ckgen |          CORE |          PERI |           96M 
        |           48M |           12M |           54M 
        |      EMU_CORE |
    dss |      DSS_STBY |      DSS_IDLE 
    per |         GPIO2 |         GPIO3 |         GPIO4 
        |         GPIO5 |         GPIO6 |

Total wakeups  2077,  69.2/s | IRQ 1457,  48.6/s | Timers  620,  20.7/s
HW wakeups       28,   0.9/s |     Real gp_timers expired    0,   0.0/s
After taking a look, the problem turns out to be heavy usage of 'dss' and 'core', both ON-100%.

So, i will try a few things to help lower their usage.

Any other tips and further investigating tools?

EDIT: Well, uninstalling everything+installing stock kernel doesnt lower power usage, so I guess some package in CSSU-T is not well optimized

Last edited by tanago; 2013-08-24 at 12:52.
 

The Following 5 Users Say Thank You to tanago For This Useful Post: