Quantcast

[Jack-Devel] jackd consumes 0.12% CPU in the idle mode

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Jack-Devel] jackd consumes 0.12% CPU in the idle mode

Yuri
0.12% doesn't sound like much, but this consistently brings it up in 'top'.

If jackd doesn't have any connections, why does it wake up and do something?

It should be purely event driven, and the idle CPU use should be
disappearingly low. I think it does something redundant.


As a comparison, mpv player playing an audio mpeg stream consumes only
1.2% CPU.


Yuri

_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: jackd consumes 0.12% CPU in the idle mode

Fons Adriaensen-3
On Fri, Feb 10, 2017 at 02:06:55PM -0800, Yuri wrote:

> 0.12% doesn't sound like much, but this consistently brings it up in 'top'.

So what ?
 
> If jackd doesn't have any connections, why does it wake up and do something?
> It should be purely event driven, and the idle CPU use should be
> disappearingly low. I think it does something redundant.

Jackd is event driven. And even when there are no connections, it
still has to write/read samples to/from the soundcard. Not doing
that would result in a error condition that would take much more
CPU to handle.

Unless you propose that jackd should only attach to the soundcard
when the first connection is made and release it when the last
client disconnects. That would be a very bad idea for a variety
of reasons.

> As a comparison, mpv player playing an audio mpeg stream consumes
> only 1.2% CPU.

If you are concerned about efficiency then you are focussing on
the wrong targets. Take an audio app that consumes 5% CPU. It
can probably be optimised a bit to use only 4.5% CPU. That means
it's wasting four times as much CPU as Jack's idle load.

Ciao,

--
FA

A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)

_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Loading...