|
|
2014-09-04
, 09:03
|
|
Posts: 3,074 |
Thanked: 12,960 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#22
|
|
|
2014-09-04
, 15:51
|
|
Posts: 3,074 |
Thanked: 12,960 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#23
|
freemangordon: hi guys, I compiled tox for Maemo5 (Nokia N900) then performed some tests with nTox. While playing with it, I saw there is high CPU usage when idle. after googling a bit, I found this https://libtoxcore.so/getting_starte...to-come-to-you . Unfortunately those functions have been removed https://github.com/irungentoo/toxcor...8e53666aa91739 . Is there any replacement API I can use, as in its current shape (calling tox_do every n msecs), tox is unusable on battery operated devices?
freemangordon: irungentoo: ^^^
irungentoo: freemangordon, uint32_t tox_do_interval(Tox *tox);
irungentoo: freemangordon, the other functions were removed because nobody used them
freemangordon: irungentoo: if I read the code correctly, the minimum value is 50 ms
irungentoo: text chats should work with 500ms
irungentoo: but if you do file transfers or A/V, you need to call it more
freemangordon: whatever the interval is, it is still polling for events, thus waking CPU no matter if there is data to be processed or not
irungentoo: there will always be data
freemangordon: irungentoo: ok, I'll rephrase my question - is there any chance to bring back tox_wait_xxx API?
irungentoo: freemangordon, it didn't work and increased the number of times tox_do() was run
freemangordon: I see
|
|
2014-09-04
, 17:11
|
|
Posts: 26 |
Thanked: 7 times |
Joined on Aug 2014
|
#25
|
Doesn't look good
Find here binaries compiled for N900 if you want to play with it.
| The Following User Says Thank You to usr For This Useful Post: | ||
|
|
2014-09-04
, 17:57
|
|
Posts: 3,074 |
Thanked: 12,960 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#26
|
| The Following User Says Thank You to freemangordon For This Useful Post: | ||
|
|
2014-09-04
, 21:50
|
|
|
Posts: 400 |
Thanked: 708 times |
Joined on Jun 2011
@ Geneva - CH
|
#27
|
| The Following User Says Thank You to Jordi For This Useful Post: | ||
|
|
2014-09-04
, 22:10
|
|
|
Posts: 6,436 |
Thanked: 12,700 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#28
|
|
|
2014-09-05
, 09:50
|
|
|
Posts: 1,196 |
Thanked: 2,708 times |
Joined on Jan 2010
@ Hanoi
|
#29
|
| The Following User Says Thank You to ste-phan For This Useful Post: | ||
|
|
2014-09-06
, 07:18
|
|
Posts: 26 |
Thanked: 7 times |
Joined on Aug 2014
|
#30
|
no, I won't waste time on debian packaging, sorry.
simply download tar.gz from the link I posted earlier, extract it somewhere in /opt, cd to that dir and run nTox with LD_LIBRARY_PATH=./ nTox ...
# cd /home/opt/tox
| The Following User Says Thank You to usr For This Useful Post: | ||
~/tox # powertop Powertop 1.13.3 status: Unknown job: pmtrackerdaemon Sleeping for 11 seconds before sampling Collecting data for 30 seconds Sample interval was 00m 30s 20996us C# | Ratio | Avg/dura | Frequency | Ratio --------+--------+----------+-----------+--------+ C0 | 23.7% | | 1150 MHz | nan% | C1 | 0.2% | 0.8ms | C2 | 42.4% | 8.0ms | C3 | 33.7% | 39.8ms | C4 | 0.0% | 7.4ms | IRQ# | Activity | Type | Name --------+------------+----------------+--------------------------- 12 | 8044 | INTC | DMA 37 | 1894 | INTC | gp 11 | 1324 | INTC | prcm 202 | 585 | GPIO | wl1251 56 | 400 | INTC | i2c_omap 86 | 332 | INTC | mmc1 83 | 53 | INTC | mmc0 57 | 39 | INTC | i2c_omap 225 | 4 | GPIO | omap2-onenand PID# | Activity | Name | Function Entry (Expire) --------+------------+----------------+--------------------------- 0 | 1120 | <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer) 18812 | 549 | nTox | schedule_hrtimeout_range (hrtimer_wakeup) 564 | 218 | wl12xx | schedule_timeout (process_timeout) 0 | 207 | <kernel core> | hrtimer_start (tick_sched_timer) 564 | 184 | wl12xx | queue_delayed_work (delayed_work_timer_fn) 38 | 98D| awk | cpufreq_governor_dbs (delayed_work_timer_fn) 1502 | 91 | wlancond | ieee80211_ioctl_siwpower (ieee80211_dynamic_ps_timer) 564 | 63 | wl12xx | schedule_timeout (process_timeout) 10 | 32 | omap2_mcspi | sk_reset_timer (tcp_delack_timer) 597 | 13 | mmcqd | queue_delayed_work (delayed_work_timer_fn) 10 | 9 | omap2_mcspi | neigh_add_timer (neigh_timer_handler) 597 | 8 | mmcqd | schedule_timeout (process_timeout) 723 | 7 | dsme | __enqueue_rt_entity (sched_rt_period_timer) 935 | 6 | bme_RX-51 | sys_timer_settime (posix_timer_fn) 580 | 5 | mmcqd | queue_delayed_work (delayed_work_timer_fn) 8506 | 4 | pdflush | ubifs_wbuf_write_nolock (wbuf_timer_callback_nolock) 1 | 3D| <kernel core> | queue_delayed_work (delayed_work_timer_fn) 30 | 3 | mount | setup_wb_timer (wb_timer_fn) 1816 | 3 | modest | sk_reset_timer (tcp_write_timer) 1818 | 3 | modest | sk_reset_timer (tcp_write_timer) 580 | 3 | mmcqd | schedule_timeout (process_timeout) 935 | 2 | bme_RX-51 | sys_timer_settime (posix_timer_fn) 935 | 2 | bme_RX-51 | do_nanosleep (hrtimer_wakeup) 935 | 2 | bme_RX-51 | schedule_timeout (process_timeout) 761 | 2D|<kernel module> | queue_delayed_work (delayed_work_timer_fn) 723 | 2 | dsme | do_nanosleep (hrtimer_wakeup) 18262 | 2 |telepathy-gabbl | sk_reset_timer (tcp_write_timer) 1820 | 2 | modest | sk_reset_timer (tcp_write_timer) 1820 | 2 | modest | journal_get_write_access (commit_timeout) 1799 | 2 | modest | schedule_hrtimeout_range (hrtimer_wakeup) 580 | 2 | mmcqd | schedule_timeout (process_timeout) 18812 | 2 | nTox | sk_reset_timer (tcp_write_timer) 18821 | 1 | sshd | sk_reset_timer (tcp_write_timer) 985 | 1 | hald | schedule_hrtimeout_range (hrtimer_wakeup) 1 | 1 | <kernel core> | inet_initpeers (peer_check_expire) 14960 | 1 | mebook | schedule_hrtimeout_range (hrtimer_wakeup) 0 | 1 | <kernel core> | queue_delayed_work (delayed_work_timer_fn) 1818 | 1 | modest | schedule_timeout (process_timeout) 10 | 1 | omap2_mcspi | fib6_add (fib6_gc_timer_cb) 1816 | 1 | modest | schedule_timeout (process_timeout) 1424 | 1 |hildon-status-m | schedule_hrtimeout_range (hrtimer_wakeup) 738 | 1 | syslogd | hrtimer_start (it_real_fn) 1816 | 1 | modest | journal_get_write_access (commit_timeout) 8506 | 1 | pdflush | journal_get_write_access (commit_timeout) 500 | 1 | kmmcd | schedule_timeout (process_timeout) 18824 | 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: 100%|RET: 0%|INA: 0%| ON: 0%| now:(OFF) per |OFF: 32%|RET: 42%|INA: 0%| ON: 24%| 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: 0%|RET: 32%|INA: 31%| ON: 36%| now:(ON) neon |OFF: 0%|RET: 33%|INA: 41%| ON: 24%| now:(ON) mpu |OFF: 0%|RET: 33%|INA: 41%| ON: 24%| 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 | SR1 | SR2 | ckgen | CORE | PERI | 96M | 48M | 12M | 54M | EMU_CORE | per | GPIO2 | GPIO3 | GPIO4 | GPIO5 | GPIO6 | Total wakeups 15340, 511.3/s | IRQ 12675, 422.5/s | Timers 2665, 88.8/s HW wakeups 44, 1.5/s | Real gp_timers expired 102, 3.4/sFind here binaries compiled for N900 if you want to play with it.
Never fear. I is here.
720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900
Community SSU developer
kernel-power developer and maintainer