← Back to team overview

touch-packages team mailing list archive

[Bug 1350871] [NEW] location service is waking up at 10Hz causing possible unwanted wakeups

 

Public bug reported:

I've observed that location service is waking up ~10 times per second
due to a 100ms sleep

ps -ax | grep 2295
 2295 ?        Ssl    0:00 /usr/bin/ubuntu-location-serviced --bus system --provider gps::Provider

eventstat shows it's the top waking userspace process on the phone:

root@ubuntu-phablet:/# eventstat 300 1
 Event/s PID   Task            Init Function             Callback
    9.99  2304 ubuntu-location hrtimer_start_range_ns    hrtimer_wakeup

health-check shows that this is occuring in a 100ms nanosleep() system
call.

Attached is the output from health-check.   Is is possible to use a
select() or poll() rather than a 10Hz non-blocking delay loop to reduce
polling wakeups?

** Affects: location-service (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Output of health-check showing polled 10Hz sleep  issue"
   https://bugs.launchpad.net/bugs/1350871/+attachment/4166674/+files/health-check.log

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to location-service in
Ubuntu.
https://bugs.launchpad.net/bugs/1350871

Title:
  location service is waking up at 10Hz causing possible unwanted
  wakeups

Status in “location-service” package in Ubuntu:
  New

Bug description:
  I've observed that location service is waking up ~10 times per second
  due to a 100ms sleep

  ps -ax | grep 2295
   2295 ?        Ssl    0:00 /usr/bin/ubuntu-location-serviced --bus system --provider gps::Provider

  eventstat shows it's the top waking userspace process on the phone:

  root@ubuntu-phablet:/# eventstat 300 1
   Event/s PID   Task            Init Function             Callback
      9.99  2304 ubuntu-location hrtimer_start_range_ns    hrtimer_wakeup

  health-check shows that this is occuring in a 100ms nanosleep() system
  call.

  Attached is the output from health-check.   Is is possible to use a
  select() or poll() rather than a 10Hz non-blocking delay loop to
  reduce polling wakeups?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/location-service/+bug/1350871/+subscriptions


Follow ups

References