I am writing this post to ask your advice in regards to the latency and performance issues i am experiencing on my machine.
But first of all, let's start with the specs!!
I am currently running Kubuntu 18.04 with low latency kernel, on a Laptop with I7-8750H 6 core 12 threads, 8GB RAM, GTX 1060 nvidia 6gb VRAM and 256GB SSD.
I always used Windows in the past for professional recording, but since Linux has been my daily driver for quite a lot now, i decided to give it a shot!
So after reading and tweaking around and a few broken systems (of course on test partitions eheh) i got my system at a decent stage.
I am running Jack through Cadence, as Daw I utilize BitWig Studio and run wine coupled with wineasio in order to run windows Vsts like Kontakt 5.
I mainly use this machine with my midi controller and tons of vst, for film scoring.
Now, everything works, don't get me wrong. But I am struggling with latency and xruns.
So, after doing several tests, my resultst are as follows:
I can play with a "decently" low latency with 256 samples at 2 periods/buffer, but i still get occasional xruns (especially when i play a good amount of notes together with my midi controller) . If i try setting it at 128 samples, xruns are going insane, even when i don't play anything and when i put 64, they just go by the hundreds in a matter of seconds , since the moment i start jack, without even opening the daw.
I tried a few tweaks and workarounds found online ( like editing the file /etc/security/limits.conf by adding the rtprio set to 99 etc) but none worked.
I'd like to point out that i am using the integrated audio interface, but WAIT. Before you start saying that i need to get an external soundcard etc, hear me out

I started digging around and run a few tests. One of my favourite vsts is Pianoteq, which I use since forever. The funny thing is , if i run pianoteq standalone , not as a plugin, i have EXTREMELY DIFFERENT RESULTS, (and very weird as well). THe resulsts are:
If i run Pianoteq standalone with jack , i have pretty much the same issues i have in bitwig. If I run it with Alsa instead, i can play even setting it a 64 SAMPLES!! and NO CLICKS Whatsoever!!
So i started thinking, could jack be the issue? I tried running Bitwig Studio under Alsa instead of Jack, and while the resulsts are better (oddly enough) i still get clicks here and there (of course the clicks disappear once i increase the samples , after all all i am doing is recording midi instructions) but it gets very frustrating.
So i decided to see what was the situation under Windows. I install Pianoteq on Windows, and Bitwig Studio. I Install the Asio4all drivers and... i can play at 64 samples without any problems whatsoever , both in standalone and inside Bitwig.
I tried also changing DAW to see if Bitwig was the issue, but i had the same exact results.
At this point, i really don't know what could be causing theese issues...
Do you guys have any suggestions? thougts?
Thanks so much in advance!