falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.62k stars 146 forks source link

Carla CPU starving with plenty of free CPU time #390

Open unfa opened 8 years ago

unfa commented 8 years ago

I've got a big project in Carla for live performance with a band. It's mostly ZynAddSubFX and Calf plugins.

The problem occurs randomly. Sometimes I load the project and it works fine, other times it is laggy from the start, and gets worse over time until it completely bogs down entire system. Watchdog doesn't always kick in, but sometimes Carla gets killed. Not sure if it crashes or what.

Not sure if this isn't related to any plugin. What is strange is that Carla only uses 50% of my total CPU while it looses MIDI messages, causes bad xruns, stuttery glitches and generally behaves like it was already overloading the system.

I will soon post an example project.

unfa commented 8 years ago

DOWNLOAD TEST PROJECT:

https://mega.nz/#!S0BnGCDD!k4PyqBLso9pheMmVssyRPo3yHMCe5BzfHkh6YFWVKIQ

It will produce subtle pulsating sounds that'll fade in gently after the loading is complete. It should work on any KX Studio installation with default plugin-set.

On my machine (Dell Latitude 3550 laptop with Core i7, 8GB of RAM) this project causes clicks with JACK buffer size of 2048, while htop shows that total Carla process-tree consumes no more than 115% of CPU (out of 400% becasue I have 4 logical cores).

Looks like there's a bottle-neck in Carla somewhere that makes the performance much worse as it could be.

Here are two tests I run:

jack_bufsize 2048

jack_capture reported 2813 xruns over 120 seconds

  . 1  [|||||||||||||||||||||||||||||                                                                                            22.5%]     Tasks: 71, 227 thr; 5 running
  . 2  [|||||||||||||||||||||||||||||                                                                                            22.0%]     Load average: 1.80 1.68 1.45 
  . 3  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                                                45.0%]     Uptime: 01:29:42
  . 4  [|||||||||||||||||||||||||||||||||                                                                                        25.3%]
  . Mem[|||||||||||||||||||||||||||||||||||||||                                                                            1060/7604MB]
  . Swp[                                                                                                                     0/16219MB]

  . PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
  20619 unfa       20   0 2859M  289M  148M S 109.  3.8  4:35.90 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20673 unfa      -81   0 2859M  289M  148M R 38.6  3.8  1:38.60 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20643 unfa      -81   0 2859M  289M  148M S 21.3  3.8  0:51.55 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20661 unfa      -81   0 2859M  289M  148M S  7.3  3.8  0:19.08 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20669 unfa      -81   0 2859M  289M  148M S  4.7  3.8  0:11.47 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20681 unfa      -81   0 2859M  289M  148M S  3.3  3.8  0:07.17 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20653 unfa      -81   0 2859M  289M  148M S  3.3  3.8  0:07.74 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20689 unfa      -81   0 2859M  289M  148M S  2.7  3.8  0:06.95 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20645 unfa      -81   0 2859M  289M  148M S  1.3  3.8  0:04.36 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20685 unfa      -81   0 2859M  289M  148M S  2.0  3.8  0:04.08 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20641 unfa      -81   0 2859M  289M  148M S  2.0  3.8  0:04.09 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20665 unfa      -81   0 2859M  289M  148M S  1.3  3.8  0:03.14 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20633 unfa      -81   0 2859M  289M  148M S  0.7  3.8  0:02.60 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20659 unfa      -81   0 2859M  289M  148M S  1.3  3.8  0:02.64 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20687 unfa      -81   0 2859M  289M  148M S  0.7  3.8  0:02.71 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20635 unfa       20   0  194M  9656  4564 S  1.3  0.1  0:01.67 /usr/lib/carla/carla-bridge-native LV2 "" http://calf.sourceforge.net/plugins/Analyzer 0
  20647 unfa      -81   0 2859M  289M  148M S  0.7  3.8  0:01.26 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20667 unfa      -81   0 2859M  289M  148M S  0.7  3.8  0:01.58 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20683 unfa      -81   0 2859M  289M  148M S  0.0  3.8  0:01.19 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20626 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.30 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20657 unfa      -81   0 2859M  289M  148M S  0.0  3.8  0:01.29 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20675 unfa      -81   0 2859M  289M  148M S  0.0  3.8  0:00.93 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20679 unfa      -81   0 2859M  289M  148M S  0.0  3.8  0:00.76 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20649 unfa      -81   0 2859M  289M  148M S  0.7  3.8  0:00.72 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20651 unfa      -81   0 2859M  289M  148M S  0.0  3.8  0:00.45 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20655 unfa      -81   0 2859M  289M  148M S  0.7  3.8  0:00.46 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20663 unfa      -81   0 2859M  289M  148M S  0.7  3.8  0:01.13 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20637 unfa       20   0  194M  9656  4564 S  0.7  0.1  0:00.72 /usr/lib/carla/carla-bridge-native LV2 "" http://calf.sourceforge.net/plugins/Analyzer 0
  20622 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20623 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20624 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20625 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.01 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20627 unfa      -81   0 2859M  289M  148M S  0.0  3.8  0:00.11 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20628 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.02 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20629 unfa      -51   0 2859M  289M  148M S  0.7  3.8  0:00.11 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20630 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20631 unfa      -81   0 2859M  289M  148M S  0.0  3.8  0:00.41 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20632 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20634 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20638 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20639 unfa      -81   0 2859M  289M  148M S  0.0  3.8  0:00.52 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20640 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20642 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20644 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20646 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20648 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20650 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20652 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20654 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20656 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20658 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20660 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20662 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20664 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20666 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20668 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20670 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20671 unfa      -81   0 2859M  289M  148M S  0.7  3.8  0:00.25 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20672 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20674 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20676 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20677 unfa      -81   0 2859M  289M  148M S  0.0  3.8  0:00.28 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20678 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20680 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  20682 unfa       20   0 2859M  289M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/bugsearch.carxp
  EnterDone  EscClear    Filter: carl

jack_bufsize 128

jack_capture reported 18108 xruns over 33 seconds

. 1  [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                                         50.0%]     Tasks: 76, 248 thr; 4 running
. 2  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                                  55.1%]     Load average: 1.45 1.03 1.21 
. 3  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                                        51.0%]     Uptime: 01:48:30
. 4  [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                           60.7%]
. Mem[|||||||||||||||||||||||||||||||||||||||||||                                                                        1177/7604MB]
. Swp[                                                                                                                     0/16219MB]
. PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
21196 unfa       20   0 2859M  287M  148M R 144.  3.8  0:51.74 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21250 unfa      -81   0 2859M  287M  148M R 45.9  3.8  0:15.47 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21220 unfa      -81   0 2859M  287M  148M S 18.9  3.8  0:06.91 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21238 unfa      -81   0 2859M  287M  148M S 10.8  3.8  0:03.62 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21246 unfa      -81   0 2859M  287M  148M S  4.7  3.8  0:01.57 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21266 unfa      -81   0 2859M  287M  148M S  4.7  3.8  0:01.38 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21230 unfa      -81   0 2859M  287M  148M S  4.1  3.8  0:01.41 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21258 unfa      -81   0 2859M  287M  148M S  2.7  3.8  0:01.05 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21222 unfa      -81   0 2859M  287M  148M S  3.4  3.8  0:01.07 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21264 unfa      -81   0 2859M  287M  148M S  2.0  3.8  0:00.74 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21262 unfa      -81   0 2859M  287M  148M S  2.7  3.8  0:00.70 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21242 unfa      -81   0 2859M  287M  148M S  2.7  3.8  0:00.71 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21218 unfa      -81   0 2859M  287M  148M S  2.0  3.8  0:00.75 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21210 unfa      -81   0 2859M  287M  148M S  2.7  3.8  0:00.57 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21236 unfa      -81   0 2859M  287M  148M S  2.0  3.8  0:00.57 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21244 unfa      -81   0 2859M  287M  148M S  1.4  3.8  0:00.40 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21224 unfa      -81   0 2859M  287M  148M S  2.0  3.8  0:00.44 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21240 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.41 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21212 unfa       20   0  194M  9652  4556 S  1.4  0.1  0:00.50 /usr/lib/carla/carla-bridge-native LV2 "" http://calf.sourceforge.net/plugins/Analyzer 0
21256 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.21 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21234 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.41 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21260 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.43 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21226 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.28 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21214 unfa       20   0  194M  9652  4556 S  1.4  0.1  0:00.30 /usr/lib/carla/carla-bridge-native LV2 "" http://calf.sourceforge.net/plugins/Analyzer 0
21216 unfa      -81   0 2859M  287M  148M S  1.4  3.8  0:00.33 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21252 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.25 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21254 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.21 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21232 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.21 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21228 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.20 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21204 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.15 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21248 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.16 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21208 unfa      -81   0 2859M  287M  148M S  0.7  3.8  0:00.23 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21205 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.01 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21199 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21200 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21201 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21202 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21203 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.02 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21206 unfa      -51   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21207 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21209 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21211 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21213 unfa       20   0  194M  9652  4556 S  0.7  0.1  0:00.01 /usr/lib/carla/carla-bridge-native LV2 "" http://calf.sourceforge.net/plugins/Analyzer 0
21215 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21217 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21219 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21221 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21223 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21225 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21227 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21229 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21231 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21233 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21235 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21237 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21239 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21241 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21243 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21245 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21247 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21249 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21251 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21253 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21255 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
21257 unfa       20   0 2859M  287M  148M S  0.0  3.8  0:00.00 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/unfa-PerformanceTestProject.carxp
EnterDone  EscClear    Filter: carl
unfa commented 8 years ago

For comparison, my live band project run with jack_bufsize 256 - no xruns with170% of CPU usage, while playing a few notes and chords with a single ZynAddSubFX instrument on channel 02:

  . 1  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                                        51.0%]     Tasks: 79, 297 thr; 4 running
  . 2  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                             g a few n     55.3%]     Load average: 6.84 2.43 1.26 
  . 3  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                                      53.0%]     Uptime: 02:11:23
  . 4  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                                      52.3%]
  . Mem[||||||||||||||||||||||||||||||||||||||||||||||||||                                                                 1652/7604MB]
  . Swp[                                                                                                                     0/16219MB]
  .
  . PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
  22910 unfa       20   0 3589M  737M  153M S 172.  9.7  1:19.45 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23063 unfa      -81   0 3589M  737M  153M S 24.6  9.7  0:09.92 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23147 unfa      -81   0 3589M  737M  153M S 11.3  9.7  0:04.54 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23432 unfa      -81   0 3589M  737M  153M S 10.0  9.7  0:03.33 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23476 unfa      -81   0 3589M  737M  153M S  8.0  9.7  0:03.03 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23177 unfa      -81   0 3589M  737M  153M S  8.0  9.7  0:03.51 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23192 unfa      -81   0 3589M  737M  153M S  8.0  9.7  0:02.97 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23546 unfa      -81   0 3589M  737M  153M S  7.3  9.7  0:02.39 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  22951 unfa      -81   0 3589M  737M  153M S  6.0  9.7  0:02.95 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23276 unfa      -81   0 3589M  737M  153M S  5.3  9.7  0:01.85 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23024 unfa      -81   0 3589M  737M  153M S  4.0  9.7  0:01.84 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23345 unfa      -81   0 3589M  737M  153M S  4.0  9.7  0:01.41 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23179 unfa      -81   0 3589M  737M  153M S  4.0  9.7  0:01.47 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23018 unfa      -81   0 3589M  737M  153M S  3.3  9.7  0:01.05 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23389 unfa      -81   0 3589M  737M  153M S  2.7  9.7  0:01.10 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23504 unfa      -81   0 3589M  737M  153M S  2.7  9.7  0:00.81 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23056 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.90 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23430 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.77 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23499 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.85 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23556 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.88 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23490 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.79 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23497 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.76 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23121 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.88 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23003 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.87 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23011 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.86 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23310 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.84 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23113 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.85 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23357 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.57 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23143 unfa      -81   0 3589M  737M  153M S  2.0  9.7  0:00.46 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23548 unfa      -81   0 3589M  737M  153M S  1.3  9.7  0:00.69 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23138 unfa      -81   0 3589M  737M  153M S  1.3  9.7  0:00.66 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  22947 unfa      -81   0 3589M  737M  153M S  1.3  9.7  0:00.59 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  22937 unfa      -81   0 3589M  737M  153M S  1.3  9.7  0:00.47 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23237 unfa      -81   0 3589M  737M  153M S  1.3  9.7  0:00.50 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23205 unfa      -81   0 3589M  737M  153M S  1.3  9.7  0:00.53 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23054 unfa      -81   0 3589M  737M  153M S  1.3  9.7  0:00.50 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23267 unfa      -81   0 3589M  737M  153M S  1.3  9.7  0:00.42 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23563 unfa      -81   0 3589M  737M  153M S  0.7  9.7  0:00.36 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23482 unfa      -81   0 3589M  737M  153M S  0.7  9.7  0:00.37 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23514 unfa      -81   0 3589M  737M  153M S  0.7  9.7  0:00.31 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23436 unfa      -81   0 3589M  737M  153M S  0.7  9.7  0:00.16 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23001 unfa       20   0 3589M  737M  153M S  0.7  9.7  0:00.23 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23107 unfa       20   0 3589M  737M  153M S  0.7  9.7  0:00.21 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23442 unfa      -81   0 3589M  737M  153M S  0.7  9.7  0:00.16 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23383 unfa       20   0 3589M  737M  153M S  0.7  9.7  0:00.18 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23052 unfa       20   0 3589M  737M  153M S  0.7  9.7  0:00.21 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23565 unfa      -81   0 3589M  737M  153M S  0.7  9.7  0:00.14 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23306 unfa       20   0 3589M  737M  153M S  0.7  9.7  0:00.18 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23426 unfa       20   0 3589M  737M  153M S  0.7  9.7  0:00.17 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23340 unfa      -81   0 3589M  737M  153M S  0.7  9.7  0:00.15 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23451 unfa      -81   0 3589M  737M  153M S  0.7  9.7  0:00.08 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23195 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.21 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23230 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.19 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  22930 unfa      -81   0 3589M  737M  153M S  0.0  9.7  0:00.16 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23338 unfa       20   0 3589M  737M  153M R  0.0  9.7  0:00.18 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23265 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.18 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23542 unfa       20   0 3589M  737M  153M R  0.0  9.7  0:00.15 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  22928 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.20 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23273 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.04 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23486 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.03 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23577 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.03 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  22936 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.05 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23144 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.04 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23231 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.04 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  23452 unfa       20   0 3589M  737M  153M S  0.0  9.7  0:00.03 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
  F1Help  F2Setup F3SearchF4FilterF5Tree  F6SortByF7Nice -F8Nice +F9Kill  F10Quit
unfa commented 8 years ago

Now I've found something even more interesting.

I've got few unresponsive ZynAddSubFX instruments stuttering and producing stuck notes, while others are perfectly fine. No xruns reported, even though it sounds like mayhem, and uses 270% of CPU as you can hear here (captured with jack_capture):

https://mega.nz/#!28AllJgK!i0FSS32W32TP3lDo7ppoljUMsIFfldhZaqKLoaRCtSg

When I terminated Carla, the sound stopped, but it still fed my terminal with streams of this text repeated over and over:

AttributeError: 'PluginSlot_Default' object has no attribute 'fEditDialog'
Traceback (most recent call last):
  File "/usr/share/carla/carla_skin.py", line 330, in slot_handleParameterValueChangedCallback
    self.setParameterValue(index, value, True)
  File "/usr/share/carla/carla_skin.py", line 695, in setParameterValue
    self.fEditDialog.setParameterValue(parameterId, value)
AttributeError: 'PluginSlot_Default' object has no attribute 'fEditDialog'
Traceback (most recent call last):
  File "/usr/share/carla/carla_skin.py", line 330, in slot_handleParameterValueChangedCallback
    self.setParameterValue(index, value, True)
  File "/usr/share/carla/carla_skin.py", line 695, in setParameterValue
    self.fEditDialog.setParameterValue(parameterId, value)
AttributeError: 'PluginSlot_Default' object has no attribute 'fEditDialog'
callback while idling (5:ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, 9, 9, 0, 0,000000, "(null)")
Traceback (most recent call last):
  File "/usr/share/carla/carla_skin.py", line 330, in slot_handleParameterValueChangedCallback
    self.setParameterValue(index, value, True)
  File "/usr/share/carla/carla_skin.py", line 695, in setParameterValue
    self.fEditDialog.setParameterValue(parameterId, value)
AttributeError: 'PluginSlot_Default' object has no attribute 'fEditDialog'
callback while idling (5:ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, 9, 8, 0, 0,000000, "(null)")
Traceback (most recent call last):
  File "/usr/share/carla/carla_skin.py", line 330, in slot_handleParameterValueChangedCallback
    self.setParameterValue(index, value, True)
  File "/usr/share/carla/carla_skin.py", line 695, in setParameterValue
    self.fEditDialog.setParameterValue(parameterId, value)
AttributeError: 'PluginSlot_Default' object has no attribute 'fEditDialog'
callback while idling (5:ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, 9, 7, 0, 0,000000, "(null)")
Traceback (most recent call last):
  File "/usr/share/carla/carla_skin.py", line 330, in slot_handleParameterValueChangedCallback
    self.setParameterValue(index, value, True)
  File "/usr/share/carla/carla_skin.py", line 695, in setParameterValue
    self.fEditDialog.setParameterValue(parameterId, value)
AttributeError: 'PluginSlot_Default' object has no attribute 'fEditDialog'
callback while idling (5:ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, 9, 6, 0, 0,000000, "(null)")
Traceback (most recent call last):
  File "/usr/share/carla/carla_skin.py", line 330, in slot_handleParameterValueChangedCallback
    self.setParameterValue(index, value, True)
  File "/usr/share/carla/carla_skin.py", line 695, in setParameterValue
    self.fEditDialog.setParameterValue(parameterId, value)
AttributeError: 'PluginSlot_Default' object has no attribute 'fEditDialog'
callback while idling (5:ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, 9, 5, 0, 0,000000, "(null)")
Traceback (most recent call last):
  File "/usr/share/carla/carla_skin.py", line 330, in slot_handleParameterValueChangedCallback
    self.setParameterValue(index, value, True)
  File "/usr/share/carla/carla_skin.py", line 695, in setParameterValue
    self.fEditDialog.setParameterValue(parameterId, value)
AttributeError: 'PluginSlot_Default' object has no attribute 'fEditDialog'
callback while idling (5:ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, 9, 4, 0, 0,000000, "(null)")
Traceback (most recent call last):
  File "/usr/share/carla/carla_skin.py", line 330, in slot_handleParameterValueChangedCallback
    self.setParameterValue(index, value, True)
  File "/usr/share/carla/carla_skin.py", line 695, in setParameterValue
    self.fEditDialog.setParameterValue(parameterId, value)
AttributeError: 'PluginSlot_Default' object has no attribute 'fEditDialog'
unfa commented 8 years ago

I made another experiment:

I have one ambient pad instrument that is so complex, that if I play a bunch of notes together, the whole thing starts to xrun a lot quickly. But playing 3-4 at once is fine. (I never play more than 2).

I smashed-in as much notes as I could, probably 12 or more notes overlapping in time (long envelope releases) generating a ton of xruns.

I switched to the other channel where is an instrument that previously did breakdown and begin to stutter, while other splayed fine. I pleyed it a lot, smashing the keyboard (laying down my arms to press tens of keys at once) and it didn't produce a single stuck note. When all the expensive-pad notes have fade away, I could still play the instrument just fine. The expensive pad produced some spontaneously-returning-out-of -silence stuck note. The setup survived the flood of xruns and continued to function as expected.

This proves to me, that the stutter has nothing to do with DSP load. It must be an internal probem on ZynAddSubFX running inside Carla.

CPU usage for this project:

      . 1  [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                       64.5%]     Tasks: 78, 306 thr; 12 running
      . 2  [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]     Load average: 13.52 9.49 6.40 
      . 3  [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                     65.4%]     Uptime: 02:48:53
      . 4  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||                                      65.1%]
      . Mem[|||||||||||||||||||||||||||||||||||||||||||||||                                                                    1800/7604MB]
      . Swp[|                                                                                                                    0/16219MB]
      .
      .PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
      1390 unfa       20   0 3588M  740M  153M S 230.  9.7 19:40.30 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1619 unfa      -81   0 3588M  740M  153M S 17.7  9.7  2:20.06 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1703 unfa      -81   0 3588M  740M  153M S  8.5  9.7  1:01.67 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      2000 unfa      -81   0 3588M  740M  153M S  6.6  9.7  0:45.95 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      2046 unfa      -81   0 3588M  740M  153M S  9.2  9.7  0:56.21 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1730 unfa      -81   0 3588M  740M  153M S  7.2  9.7  0:50.14 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1745 unfa      -81   0 3588M  740M  153M S  5.3  9.7  0:40.96 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      2112 unfa      -81   0 3588M  740M  153M S  4.6  9.7  0:37.48 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1507 unfa      -81   0 3588M  740M  153M S  4.6  9.7  0:35.39 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1836 unfa      -81   0 3588M  740M  153M S  3.9  9.7  0:26.42 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1583 unfa      -81   0 3588M  740M  153M S  3.3  9.7  0:31.08 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1902 unfa      -81   0 3588M  740M  153M S  2.6  9.7  0:21.16 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1738 unfa      -81   0 3588M  740M  153M S  2.6  9.7  0:21.12 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      2125 unfa      -81   0 3588M  740M  153M S  2.0  9.7  0:14.15 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      2071 unfa      -81   0 3588M  740M  153M S  2.0  9.7  0:13.14 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1957 unfa      -81   0 3588M  740M  153M R 99.8  9.7  3:17.49 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1996 unfa      -81   0 3588M  740M  153M S  2.6  9.7  0:10.85 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1686 unfa      -81   0 3588M  740M  153M S  1.3  9.7  0:11.95 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      1566 unfa      -81   0 3588M  740M  153M S  2.0  9.7  0:11.22 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
      2077 unfa      -81   0 3588M  740M  153M S  1.3  9.7  0:12.63 /usr/bin/python3 /usr/share/carla/carla --with-appname=/usr/bin/carla --with-libprefix=/usr /home/unfa/Live/Carla.carxp
unfa commented 8 years ago

Ok, looks like we've got two issues mixed here:

  1. Carla performance problems (continued here)
  2. ZynAddSubFX stutter (forked here: #393)
falkTX commented 7 years ago

Is this only happening when using zynaddsubfx? Might be an issue with the internal plugin. Or if you don't have zynaddsubfx, but other plugins + calf, does it still happen?

manhnt9 commented 4 years ago

Hi, does Carla on Linux utilize all CPU power if possible? Like in multi-core and even multi-CPU system? My 4-core CPU is screaming with VST plugins recently and I'm considering an upgrade to 12-core and maybe dual-12-core-cpu even.

falkTX commented 4 years ago

Carla does not do this. On a plugin rack, we have to wait for the previous plugin to finish processing before the next one can start. So the use of multi-core is pretty limited.

manhnt9 commented 4 years ago

Okay, but can we make a patch for dual-CPU system? A number of threads can be created on another core for example. I'm not sure I understand the part saying a plugin rack, we have to wait, is this a kind of hard limit without any workaround?

manhnt9 commented 4 years ago

Ah OK I understood that, the later one needs signal from the former one. But I also notice that it isn't always the case. Have you added parallelism for plugins that don't depend on previous plugins? Like we have to build a dependency graph and parallel things correctly.

manhnt9 commented 4 years ago

I'm a C++ developer specialized in game engine development and I would like to do something about parallelism for Carla. Especially it's directly related to my music production projects too.

falkTX commented 4 years ago

if you use jack2 and carla in multi-client mode, carla will make use of the parallelization of jack2 (each plugin is its own jack client). You are more than welcome to try some parallelization stuff for carla's internal graph. Code lives at https://github.com/falkTX/Carla/tree/develop/source/modules/water/processors and is based on an old juce version (super stripped down version of it, with added CV port support)

manhnt9 commented 4 years ago

Great, thanks for guiding me the starting points. Will research and ask you more!

manhnt9 commented 4 years ago

Now I have evidence that my system is actually running jack2 and carla multi-client mode. But performance is still bad, maybe my plugin (Windows bridged) are heavy. But anyways will test more on new CPU soon and see what I can do.