Building simplicidade.org: notes, projects, and occasional rants

CPU usage of Skype

My Skype is idle right now, sitting there on the second monitor.

But top tells me that Skype is using 10% of my CPU. 10%!?!?!? WTF? It’s just sitting there!

Doing a ktrace on the process, gives:

   484 Skype    CALL  getrusage(0,0xf03b6c20)
   484 Skype    RET   getrusage 0
   484 Skype    CALL  getrusage(0xffffffff,0xf03b6c20)
   484 Skype    RET   getrusage 0
   484 Skype    CALL  getrusage(0,0xf03b6c00)
   484 Skype    RET   getrusage 0
   484 Skype    CALL  getrusage(0xffffffff,0xf03b6c00)
   484 Skype    RET   getrusage 0
   484 Skype    CALL  getrusage(0,0xf03b6ca0)
   484 Skype    RET   getrusage 0
   484 Skype    CALL  getrusage(0xffffffff,0xf03b6ca0)
   484 Skype    RET   getrusage 0
   484 Skype    CALL  getrusage(0,0xf03b6bb0)
   484 Skype    RET   getrusage 0
   484 Skype    CALL  getrusage(0xffffffff,0xf03b6bb0)
   484 Skype    RET   getrusage 0
   484 Skype    CALL  select(0x1b,0xf03b6ad0,0xf03b6b50,0xf03b6bd0,0xf03b6c50)
   484 Skype    CALL  getrusage(0,0xf01b2c00)
   484 Skype    RET   getrusage 0
   484 Skype    CALL  getrusage(0xffffffff,0xf01b2c00)
   484 Skype    RET   getrusage 0

Pages and pages of this…

And looking at a lsof of the process, there is a single connection to a specific IP address, but running a tcpdump to catch all the traffic going to the address, shows that there is very little traffic.

So what is Skype doing with the idle time?