Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I reduce my app's "Idle Wake Ups"?

Mavericks is mad that my app has too many "Idle Wake Ups". I know this has something to do with timers and the way OS X tries to make my app more power efficient. How can I debug these idle wake ups? Or what are some likely causes?

like image 950
Ken Aspeslagh Avatar asked Oct 16 '14 05:10

Ken Aspeslagh


1 Answers

Possible causes are the typical reasons threads wake up from awaiting:

  • Timers going off
  • Threads blocked on I/O (incl network and IPC) waking up
  • Threads blocked on locks waking up
  • Spurious wakeups (but these are too rare to be causing your issue)

If you fire up instruments, you can try the System Trace and System Usage tools to diagnose when your threads are waking up.

like image 137
Chris Avatar answered Oct 01 '22 20:10

Chris