I'm running Ubuntu Jaunty 9.04. Till recently, my linuxsampler setup on this particular system was working without (major, noticable) glitches, i.e very few xruns and not many dropped notes. Since the past few days, however, I'm seeing a host of xruns and buzzes and drop notes. I tried switching to the RT kernel (kernel 2.6.28-3-rt, via synaptic). The result - a *huge*, unmanageable latency. I also noticed this warning which I'd not seen before:
Code: Select all
Thread: WARNING, can't assign realtime scheduling to thread!
Code: Select all
/usr/local/bin/jackd -S -R -dalsa -dhw:0 -r44100 -p256 -n2
vanilla kernel).
Code: Select all
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
29516 guru 20 0 35872 13m 10m R 10.3 1.4 0:28.17 qsampler
29503 guru 20 0 437m 436m 76m S 2.7 46.5 0:11.57 linuxsampler
29493 guru 20 0 88632 74m 72m S 2.3 8.0 0:11.20 jackd
root-owned processes do, for e.g:
Code: Select all
3 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
My /etc/security/limits.conf file ends with this:
Code: Select all
@audio - rtprio 19
@audio - memlock unlimited
@audio - nice -19
I'm sure there are better realtime kernels out there, but before I switch the kernel, I'd like to understand why exactly linuxsampler is not being allocated realtime priority. I don't know much about this. Can someone help me out with this?
Thanks in advance!
Cheers,
Guru