unity-api-bugs team mailing list archive
-
unity-api-bugs team
-
Mailing list archive
-
Message #03426
[Bug 1221751] Re: on an idle system indicator-datetime is actually quite busy
I ran a new health-check profile of a 10 minute session of a newer
version of indicator-datetime.
1. Active poll calls
Top polling system calls:
PID Process Syscall Rate/Sec Infinite Zero Minimum Maximum Average
Timeouts Timeouts Timeout Timeout Timeout
26444 indicator-datetime-s poll 0.0350 0 10 0.0 sec 60.0 sec 28.5 sec
26446 indicator-datetime-s poll 0.0267 15 1 0.0 sec 0.0 sec 0.0 sec
Total 0.0617 15 11
(This is down from Total 6.0100 650 2335 in the 2013-09 profile)
2. Context switches
Context Switches:
PID Process Voluntary Involuntary Total
Ctxt Sw/Sec Ctxt Sw/Sec Ctxt Sw/Sec
26444 indicator-datetime-s 1.42 0.01 1.43 (low)
26446 indicator-datetime-s 0.30 0.00 0.30 (very low)
26477 indicator-datetime-s 0.02 0.00 0.02 (very low)
26451 indicator-datetime-s 0.00 0.00 0.00 (idle)
26449 indicator-datetime-s 0.00 0.00 0.00 (idle)
26447 indicator-datetime-s 0.00 0.00 0.00 (idle)
26445 indicator-datetime-s 0.00 0.00 0.00 (idle)
Total 1.75 0.01 1.75
(this is down from Total 50.79 1.54 52.33 in the 2013-09 report)
3. Open/Closing of /etc/localtime
As Lars pointed out, this was fixed with bug #1238043. But for
completeness' sake:
File I/O operations:
No file I/O operations detected.
** Changed in: indicator-datetime
Status: New => Fix Released
** Changed in: indicator-datetime
Assignee: (unassigned) => Charles Kerr (charlesk)
** Changed in: indicator-datetime
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Unity API
bugs, which is subscribed to Indicator Date and Time.
https://bugs.launchpad.net/bugs/1221751
Title:
on an idle system indicator-datetime is actually quite busy
Status in The Date and Time Indicator:
Fix Released
Status in The Ubuntu Power Consumption Project:
New
Bug description:
I've instrumented indicator-datetime on a Samsung Galaxy Nexus phone
on the ubuntu-touch images and it is quite a busy programme.
I ran health-check (http://kernel.ubuntu.com/~cking/health-check)
against it for 10 minutes and observed some interesting issues:
1. Quite a lot of active poll calls:
Top polling system calls:
PID Process Syscall Rate/Sec Infinite Zero Minimum Maximum Average
Timeouts Timeouts Timeout Timeout Timeout
1379 indicator-datetime-s poll 4.5533 492 2240 0.0 sec 0.0 sec 0.0 sec
1380 indicator-datetime-s poll 0.7950 72 72 0.0 sec 25.0 sec 17.5 sec
1352 indicator-datetime-s poll 0.5167 72 11 0.0 sec 180.0 sec 85.7 sec
1375 indicator-datetime-s poll 0.1450 14 12 0.0 sec 25.0 sec 17.5 sec
Total 6.0100 650 2335
I guess these are from glib's g_main_context_poll(), but it does seem
quite busy.
2. I think the polling blocking/waking is causing quite a lot of
context switches:
Context Switches:
PID Process Voluntary Involuntary Total
Ctxt Sw/Sec Ctxt Sw/Sec Ctxt Sw/Sec
1379 indicator-datetime-s 29.38 1.27 30.66 (moderate)
1380 indicator-datetime-s 11.01 0.05 11.06 (moderate)
1352 indicator-datetime-s 8.52 0.22 8.73 (low)
1375 indicator-datetime-s 1.87 0.00 1.88 (low)
1378 indicator-datetime-s 0.00 0.00 0.00 (idle)
Total 50.79 1.54 52.33
50 or so a second perhaps could be considered a little excessive for an indicator
3. Open/Closing of /etc/localtime without actually seemingly reading
data. Over a 10 minute interval we observe:
File I/O operations:
PID Process Count Op Filename
1352 indicator-datetime-s 119 C /etc/localtime
1352 indicator-datetime-s 119 O /etc/localtime
1352 indicator-datetime-s 2 OC /etc/localtime
Total 240
So that makes an access to /etc/localtime every 5 seconds for no real
purpose. This seems like unnecessary activity - why do we need to
keep peeking at this file every 5 seconds, it doesn't change that
often ;-)
For reference, I will add the full health-check report to the bug
report.
To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-datetime/+bug/1221751/+subscriptions
References