<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 10, 2016 at 11:13 AM, Marcin Lewandowski <span dir="ltr"><<a href="mailto:marcin@saepia.net" target="_blank">marcin@saepia.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Hello,</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">if MAX_SHM_ID is an OS constant, why is it defined in JACK source code then?</div></div></blockquote><div><br></div><div>oops, my mistake ... misread my own grep output. sorry about that.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">I understand issues with context switching. But I am designing system that can easily split into multiple machines, so instead of having 1 huge JACK with 100 clients I can have 10 x 10 etc. </div></div></blockquote><div><br></div><div>that won't help. <br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">But still, I need to know what is the limit, and it seem to be quite unknown… I can obviously do crash testing, but I would prefer to rely on certain design principles, no luck that I won’t encounter some hardcoded limits...</div></div></blockquote><div><br></div><div>well, as mentioned, you can't put things on the command line that have be constant across the server and library. so there are some constants that are going to be hard-coded whether you like it or not. <br><br></div><div>there is no "hard limit". the number of clients before there is so little time left for the process cycle() depends on (a) what each client does (b) how much time each client takes for its context switch (which is partially a function of what it does) (c) the period size<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"> <div><br></div>Any advice how to compute max number of clients?</div></blockquote><div><br></div><div>as noted above, you cannot compute this number. it will vary dramatically depending on the condition.<br></div><div> <br></div></div></div></div>