LSP PEQ-16-stereo high cpu usage in headless mode [Solved}

All your LV2 and LADSPA goodness and more.

Moderators: MattKingUSA, khz

Post Reply
User avatar
sunrat
Established Member
Posts: 919
Joined: Wed Jul 22, 2020 2:08 pm
Has thanked: 151 times
Been thanked: 244 times

LSP PEQ-16-stereo high cpu usage in headless mode [Solved}

Post by sunrat »

Following a suggestion in another topic using LSP PEQ for room correction, I tried it in headless mode with -hl option and have found it uses 25% of total CPU or nearly 100% of one core on 4 core i5 6500. Standard mode with GUI minimised uses 1% or less. Before I open an issue on Github, is anyone else using it headless and do you have similar issue?

pidstat output - Headless:

Code: Select all

# Time        UID       PID    %usr %system  %guest   %wait    %CPU   CPU  minflt/s  majflt/s     VSZ     RSS   %MEM threads   fd-nr  Command
17:07:51     1000   3062400   99.20    0.00    0.00    0.80   99.20     1      0.00      0.00  203180  118292   0.72       4      17  lsp-plugins-par

With GUI:

Code: Select all

# Time        UID       PID    %usr %system  %guest   %wait    %CPU   CPU  minflt/s  majflt/s     VSZ     RSS   %MEM threads   fd-nr  Command
17:03:14     1000   3007383    0.60    0.20    0.00    0.00    0.80     1      0.00      0.00  287764  185788   1.14       4      18  lsp-plugins-par

Note this is on Debian Bullseye with PA > JACK > ALSA, not Pipewire.

Last edited by sunrat on Sun Feb 05, 2023 10:06 pm, edited 1 time in total.
User avatar
sadko4u
Established Member
Posts: 987
Joined: Mon Sep 28, 2015 9:03 pm
Has thanked: 2 times
Been thanked: 361 times

Re: LSP PEQ-16-stereo high cpu usage in headless mode

Post by sadko4u »

What version of LSP Plugins do you use?

LSP (Linux Studio Plugins) Developer and Maintainer.
User avatar
sadko4u
Established Member
Posts: 987
Joined: Mon Sep 28, 2015 9:03 pm
Has thanked: 2 times
Been thanked: 361 times

Re: LSP PEQ-16-stereo high cpu usage in headless mode

Post by sadko4u »

There was a related issue, and in current 1.2.5 version I don't see such behaviour:

Image

LSP (Linux Studio Plugins) Developer and Maintainer.
User avatar
sunrat
Established Member
Posts: 919
Joined: Wed Jul 22, 2020 2:08 pm
Has thanked: 151 times
Been thanked: 244 times

Re: LSP PEQ-16-stereo high cpu usage in headless mode

Post by sunrat »

Thanks @sadko4u . You can call me a dumbarse as I know better than to report an issue with an older version than current. I thought I had updated but still had an older version (I ain't saying how old :oops: )
v1.2.5 is working beautifully.

Code: Select all

Average:      UID       PID    %usr %system  %guest   %wait    %CPU   CPU  Command
Average:     1000   3467884    0.30    0.07    0.00    0.03    0.37     -  lsp-plugins-par

Also the GUI version reports much less CPU usage than the older one when GUI is visible.

Love your work! You now have a new Patreon supporter. :wink:

Post Reply