Skip to content

Strange CPU usage issue on Raspberry Pi #29

@AngusF22

Description

@AngusF22

I'm having an odd issue with Direwolf on the latest version of Raspbian. It's freshly compiled, and seems to work quite well, although the CPU usage seems very high under certain conditions. My preferred usage for the time being is as a home station connected via APRS servers only, for the time being. My Raspberry Pi is headless, and runs continuously for a number of home server tasks.

When I have ADEVICE set to null null, it will saturate one core of my Raspberry Pi's processor. If I comment out the ADEVICE null null line, it will refuse to start without an audio device attached, stating that it's pointless to continue. I respectfully disagree.

While ADEVICE is set to null null, htop shows two threads for Direwolf, each consuming 100% CPU.

If I install Pulseaudio, and comment out ADEVICE null null, leaving no audio device specified, Direwolf will happily begin running with much lower CPU usage. Pulseaudio will start two threads, each of which consumes a bit of CPU, and Direwolf will start three, each of which consumes about 15-20%.

Is Direwolf using an audio thread for its CPU throttling? That doesn't seem ideal.

Thanks!
Angus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions