Jack2 cannot allocate memory

Hi
I’m running an app which routes with jack, jackdmp ( jack2) is a bit more fussy.
This app runs OK as root but as a user I’m getting this on startup:-

jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
Cannot lock down memory area (Cannot allocate memory)
Cannot lock down memory area (Cannot allocate memory)
Engine profiling activated, beware 247 MBytes are needed to record profiling points…
creating alsa driver … hw:0|hw:1|512|4|48000|0|0|nomon|swmeter|soft-mode|32bit
Using ALSA driver ICE1712 running on card 0 - M Audio Delta 66 at 0xec00, irq 19
configuring for 48000Hz, period = 512 frames (10.7 ms), buffer = 4 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 4 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 4 periods for playback
Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
AcquireSelfRealTime error
> Starting sdr-core…
Succeeded. sdr-core PID is 19342
> Connecting dttsp to jack…
jack_client_new: deprecated
Cannot lock down memory area (Cannot allocate memory)
Cannot lock down memory area (Cannot allocate memory)
Cannot use real-time scheduling (RR/5)(1: Operation not permitted)
AcquireRealTime error

As its a permission thing where should I start looking ?

/etc/security/limits.conf :-
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4

End of file

@audio - rtprio 99
@audio - memlock 250000
@audio - nice -10

And I’m in group audio
OS: OSS11.3x86_64
Thanks

Richard

In my /etc/security/limits.conf I have two additional lines:

@audio   -  rtprio     99
@audio   -  memlock    unlimited

That’s all I need for Jack on 11.3 64bit. Have you tried with “unlimited”?

Mine works fine. The lines I have are:


@audio - rtprio 90
@audio - nice 15
@audio - memlock

Without the minus sign in front of the 15 after nice, and mine works fine. I cut and pasted mine from a forum somewhere, only I deleted the number after memlock because I think it defaults to no restriction. Anyhow it would be super counter intuitive if this fixed it, since -10 would be a much higher priority than 15 if it were passed to the nice command, but hey maybe it’s worth a shot.

IIRC mine came consulting Jack’s website. Two votes for unlimited memlock then. :wink:

Hi

after playing with the limits.conf and making no difference , I found a reference to the lockdown on the ardour site.
I added
@audio /usr/bin/jackd nice=-10 rtprio=95 memlock=250000
this fixed the problem :slight_smile:

Thanks
Richard