Nice, I opened all 70 and I'm at about 64% DSP Load with no xruns.lilith93 wrote: ↑Tue Jun 16, 2020 7:58 pm Somebody just posted a Bitwig stresstest @discord: https://www.heise.de/select/ct/2020/7/s ... k.softlink
I can run 34 instances without any xrun. The DSP and CPU load are @ 100%, but no xruns. xruns start when I add the 35 instance with 1024 samples @ 48kHz with i5 Intel Core i5-4460 Quadcore, using Jack on Debian Buster (Behringer UMC 204)
So I guess my system is optimized well and that the spikes are caused by something else.
https://i.imgur.com/9HpBKaD.png
Latest News: Bitwig updates Bitwig Studio to v5.1
Sporadic XRUNS / Linux
-
- KVRist
- 266 posts since 20 May, 2018
Creator of Bitwiggers, the place to share Bitwig Presets.
Advocate for Bitwish, the place to vote on Feature Requests and discuss Bitwig.
Advocate for Bitwish, the place to vote on Feature Requests and discuss Bitwig.
- KVRist
- Topic Starter
- 132 posts since 7 Apr, 2018
At the moment it's quite robust and don't get these these spikes with these settings:
1) I'm using the Debian RT kernel 4.19.0-9-rt-amd64 with rtirq (https://alsa.opensrc.org/Rtirq)
2) I switched off sand boxing (VST option: within Bitwig)
Buffer size 1024 samples
I don't dare to touch the settings at the moment, cause it's working.
1) I'm using the Debian RT kernel 4.19.0-9-rt-amd64 with rtirq (https://alsa.opensrc.org/Rtirq)
2) I switched off sand boxing (VST option: within Bitwig)
Buffer size 1024 samples
I don't dare to touch the settings at the moment, cause it's working.
-
- KVRer
- 25 posts since 14 Jan, 2015
Having the same problem on Linux Mint 20 + Jack, and the only way to fix it was to disable the plug-in sandboxing which leaves Bitwig without one of its best features. Any ideas why plug-in sandboxing may cause regular and predictable xruns which can be seen on Bitwig's DSP graph?
- Banned
- 11467 posts since 4 Jan, 2017 from Warsaw, Poland
Hey, what are you doing here?! Go and release the v3.3 beta!
BTW, this will be useful as I'm moving to Linux!
-
- KVRer
- 25 posts since 14 Jan, 2015
Hi, abique! Unfortunately I've tried it before and all my CPU cores are already in "performance mode. I've also noticed that these periodic spikes never happen when Bitwig's sandbox mode is set to "Within Bitwig" and always showing up when sandbox is turned on (i.e. "together" or more advanced modes).
Attaching DSP graphs of idle state (no music, just one u-he or Moddart plug-in is loaded in a project):
Here's the result of realtimeconfigquickscan utility:
Code: Select all
Checking if you are root... no - good
Checking filesystem 'noatime' parameter... 5.4.0 kernel - good
(relatime is default since 2.6.30)
Checking CPU Governors... CPU 0: 'performance' CPU 1: 'performance' CPU 10: 'performance' CPU 11: 'performance' CPU 2: 'performance' CPU 3: 'performance' CPU 4: 'performance' CPU 5: 'performance' CPU 6: 'performance' CPU 7: 'performance' CPU 8: 'performance' CPU 9: 'performance' - good
Checking swappiness... 10 - good
Checking for resource-intensive background processes... none found - good
Checking checking sysctl inotify max_user_watches... >= 524288 - good
Checking whether you're in the 'audio' group... yes - good
Checking for multiple 'audio' groups... no - good
Checking the ability to prioritize processes with chrt... yes - good
Checking kernel support for high resolution timers... found - good
Kernel with Real-Time Preemption... not found - not good]
Kernel without 'threadirqs' parameter or real-time capabilities found
For more information, see https://wiki.linuxaudio.org/wiki/system_configuration#do_i_really_need_a_real-time_kernel
Checking if kernel system timer is high-resolution... found - good
Checking kernel support for tickless timer... found - good
- USB audio interface: Tascam US-2x2
- CPU: AMD Ryzen 5 1600
- RAM: 16 gb DDR4
- Graphics: NVidia GeForce GTX 1060 6 gb (using proprietary driver ver. 450)
I didn't have the same problem with Bitwig on Windows 10 installation.
Also tried to turn off Bluetooth and Wi-Fi -- still the same.
-
- KVRer
- 25 posts since 14 Jan, 2015
Yeah, ALSA vs JACK does not matter, the only thing that has an influence is Bitwig's sandbox setting.
The problem appears only when I use 3rd-party native VST's (u-he Repro-1/5, ZebraHZ, Bazille) or LV2 (Pianoteq 6). At first I suspected Wine VST layer "yabridge" could do this, but turning off and removing all Windows VSTs didn't help at all.
Bitwig runs very smoothly and without xruns when I use only stock devices, regardless of selected sandbox mode (that is not surprising).
-
- KVRer
- 25 posts since 14 Jan, 2015
-
- KVRian
- 814 posts since 26 May, 2013 from France, Sisteron
I think I've already heard of this issue. It could be related on how the plugin host is supposed to wake up and get scheduled. Nothing you can do on your side I presume, and maybe it is something we should spend sometime to look into. For now maybe keep the plugins inside the engine.
I'm on Arch and I use the zen kernel: https://www.archlinux.org/packages/?name=linux-zen and I don't have your issue.
I'm on Arch and I use the zen kernel: https://www.archlinux.org/packages/?name=linux-zen and I don't have your issue.
-
- KVRer
- 25 posts since 14 Jan, 2015
Ok, so I'll just avoid sandbox mode for a while. Thanks for feedback, abique!abique wrote: ↑Thu Oct 15, 2020 1:01 pm I think I've already heard of this issue. It could be related on how the plugin host is supposed to wake up and get scheduled. Nothing you can do on your side I presume, and maybe it is something we should spend sometime to look into. For now maybe keep the plugins inside the engine.
I'm on Arch and I use the zen kernel: https://www.archlinux.org/packages/?name=linux-zen and I don't have your issue.
Last edited by perkelekurat on Thu Oct 15, 2020 1:41 pm, edited 1 time in total.
-
- KVRer
- 25 posts since 14 Jan, 2015
I've just found an alternative to zen kernel for Debian-based systems -- Liquorix -- and installed it instead of stock lowlatency kernel from official Mint repository. The problem has disappeared, no more spikes with sandbox mode! So liquorix kernel might be a solution to anyone who experience the same problem with Bitwig sandbox mode.abique wrote: ↑Thu Oct 15, 2020 1:01 pm I think I've already heard of this issue. It could be related on how the plugin host is supposed to wake up and get scheduled. Nothing you can do on your side I presume, and maybe it is something we should spend sometime to look into. For now maybe keep the plugins inside the engine.
I'm on Arch and I use the zen kernel: https://www.archlinux.org/packages/?name=linux-zen and I don't have your issue.
UPD: no, it's not a solution anymore.
Last edited by perkelekurat on Sun May 16, 2021 3:20 pm, edited 1 time in total.
-
- KVRian
- 1262 posts since 15 May, 2002 from Finland
I have the exactly same kind of regular spikes at least in one project, I use Ubuntu Studio. It's notable that the interval looks identical. They are even about the same height on 1024 samples (i7 6700)
They are present also with the low latency kernel, but less than with the generic kernel. I think the project had one or two Windows VSTs running. I'll have to check with a full native project. I tried installing Liquorix, but apparently it does not work out of the box in Ubuntu Studio, I fail to get it available in the boot menu. I have notified the creator of this...
They are present also with the low latency kernel, but less than with the generic kernel. I think the project had one or two Windows VSTs running. I'll have to check with a full native project. I tried installing Liquorix, but apparently it does not work out of the box in Ubuntu Studio, I fail to get it available in the boot menu. I have notified the creator of this...