You are not logged in.
Pages: 1
Hello, first time posting here! Sorry in advance if this question is stupid.
I have tried to enable realtime scheduling for the audio group (for JACK). Those are the lines I've added to /etc/security/limits.conf
@audio - rtprio 99
@audio - memlock unlimited
@audio - nice -19For some reason, the changes don't take effect. I've tried re-logging and rebooting the machine too.
I verified that I'm in the audio group. (using my username doesn't work either)
shavit@home ~ groups
video audio usersI use ulimit -a to show the current limits:
shavit@home ~ ulimit -a
-t: cpu time (seconds) unlimited
-f: file size (blocks) unlimited
-d: data seg size (kbytes) unlimited
-s: stack size (kbytes) 8192
-c: core file size (blocks) unlimited
-m: resident set size (kbytes) unlimited
-u: processes 63185
-n: file descriptors 1024
-l: locked-in-memory size (kbytes) 64
-v: address space (kbytes) unlimited
-x: file locks unlimited
-i: pending signals 63185
-q: bytes in POSIX msg queues 819200
-e: max nice 0
-r: max rt priority 0
-N 15: unlimitedIs there anything I'm missing? Could it be my kernel (linux-ck) that doesn't make my changes work?
Edit: Found out that rtprio's hard/soft limits aren't even being set..
shavit@home ~ ulimit -r 99
ulimit: value exceeds hard limit
✘ shavit@home ~ ulimit -r 1
ulimit: value exceeds hard limitDoes anyone know what's wrong?
Last edited by shavit (2016-12-08 20:23:02)
Offline
I also noticed that if I use `hard`, the limit still doesn't change
Is there a way I could verify that this file is even being read?
Offline
Did you try to boot a vanially kernel to ensure the MuQSS scheduler (or some other ck patch) isn't the cause?
Did you try a different shell (which is it) to ensure it's not a "bug" (incompatibility) in the ulimit implementation?
Offline
I am building linux-rt at the moment, will report results back once I finish. If it doesn't help, I'll just go back to the stock Arch kernel and test there!
And yes! I have tried with both zsh and bash
shavit@home ~ ulimit -a
-t: cpu time (seconds) unlimited
-f: file size (blocks) unlimited
-d: data seg size (kbytes) unlimited
-s: stack size (kbytes) 8192
-c: core file size (blocks) unlimited
-m: resident set size (kbytes) unlimited
-u: processes 63185
-n: file descriptors 1024
-l: locked-in-memory size (kbytes) 64
-v: address space (kbytes) unlimited
-x: file locks unlimited
-i: pending signals 63185
-q: bytes in POSIX msg queues 819200
-e: max nice 0
-r: max rt priority 0
-N 15: unlimited
shavit@home ~ bash
[shavit@home ~]$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 63185
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 63185
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[shavit@home ~]$ Last edited by shavit (2016-12-11 08:07:52)
Offline
Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code and don't post screenshots of text, paste the actual text.
Offline
Can confirm that the new limits applied at the moment I booted into linux-rt!
Offline
can you share your PS1?
Offline
unlimit works here.
~ > groups
lp audio skottish~ > ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 63330
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 99
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 63330
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited~ > cat /etc/security/limits.d/99-audio.conf
@audio - rtprio 99
@audio - memlock unlimited~ > pacman -Fs 99-audio.conf
extra/jack 0.125.0-3
etc/security/limits.d/99-audio.conf
community/jack2 1.9.10-6
etc/security/limits.d/99-audio.conf
community/jack2-dbus 1.9.10-6
etc/security/limits.d/99-audio.confOffline
can you share your PS1?
What do you mean by PS1?
Offline
echo $PS1Welcome to UNIX :-P
Offline
Pages: 1