F5OEO / pluto-ori-ps

PlutoSDR softwares using custom hdl design
9 stars 1 forks source link

High CPU usage on pluto_stream process #8

Open Psynosaur opened 9 months ago

Psynosaur commented 9 months ago

Hi

500ks seems to be my pluto's limit for the settings below image

after which at 1Ms the cpu usage on the pluto is mostly pegged at 100% and my stream has artifacts image

Could we please have some analysis of which branches of execution within pluto_stream take up resources to perhaps optimize it

PS. plugging in the Pluto to USB resolves this issue, but then, we loose all the analysis tools... So it might be network related.

Regards

Psynosaur commented 9 months ago

Theory...

Perhaps reducing this load on the plutoSDR processor would resolve other IO related issues?

CPU's that are pegged at 100% and trying to cope with the rest of the Kernel instructions tend to favor finishing the threads and then triggering IO interrupts if needed to cope with the next set of instructions.

F5OEO commented 9 months ago

Should be fixed by https://github.com/F5OEO/pluto-ori-ps/commit/13c1e8b05b509e0dbbb982a89a34af6b832f5b0f

Psynosaur commented 9 months ago

Could we please have more granular control over this?

The halving of the rate made the waterfall particularly slow, perhaps we could remove 1/4th the original speed or 1/8 ?

The CPU usage is much improved :)