<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I've found a piece of code that can be responsible for this:<br><br>#<span class="">define</span> <span class="">MAX_SHM_ID</span> <span class="">256</span> <span class=""><br><br></span></div><span class="">This is used to determine size of the registry.<br><br></span></div><span class="">What is rationale for hardcoding this like this?<br><br></span></div><span class="">m.<br></span></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-09 12:02 GMT+02:00 <a href="mailto:marcin@saepia.net">marcin@saepia.net</a> <span dir="ltr"><<a href="mailto:marcin@saepia.net" target="_blank">marcin@saepia.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello,<br><br>at some point I am getting the following errors from JACK<br><br>Jun  9 11:57:19 001-can1-plumber jackd[21110]: shm registry full<br>Jun  9 11:57:19 001-can1-plumber jackd[21110]: Cannot create shared memory segment of size = 422<br>Jun  9 11:57:19 001-can1-plumber jackd[21110]: JackShmMem::new bad alloc<br>Jun  9 11:57:19 001-can1-plumber jackd[21110]: Cannot open client<br>Jun  9 11:57:19 001-can1-plumber jackd[21110]: Cannot create new client<br><br></div>Max locked memory for this process is set to 134217728 while launching JACK via systemd.<br><br></div>It effectively causes JACK to hang.<br><br></div><div>I am using 1.9.10 (commit 1ed50c92) on ubuntu 16.04.<br></div><div><br></div><div>The configure flags are --clients=500 --ports-per-application=4 (I am not reaching 500 clients limit when that occurs, they are around 250).<br></div><div><br></div><div>JACK is started with dummy driver, and --port-max set to 2000.<br><br></div>What is the reason for hitting SHM limit? Can I overcome this in any way?<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">m.<br></font></span></div>
</blockquote></div><br></div>