Re: [LAD] cpu spikes

From: Tim Goetze <tim@email-addr-hidden>
Date: Mon Jan 25 2016 - 16:30:52 EET

[Fokke de Jong]
>I’m processing 32 sample-blocks at 48KHz but roughly every 0,6
>seconds I get a large spike in cpu usage. This cannot possibly be
>explained by my algorithm, because the load should be pretty stable.
>
>I am measuring cpu load by getting the time with
>clock_gettime(CLOCK_MONOTONIC_RAW, timespec*) at the beginning and
>end of each callback. When converted to a percentage my cpu load
>hovers somewhere between 40 an 50% most of the time, but more or less
>every 900 callbacks (0.8 seconds there is a spike of more than 100%.

Have you checked if your per-callback CPU time measurement and that
reported by getrusage(2) are in agreement?

Cheers, Tim

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon Jan 25 20:15:01 2016

This archive was generated by hypermail 2.1.8 : Mon Jan 25 2016 - 20:15:01 EET