<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">renice has nothing to do with realtime scheduling and is of no use or importance in tuning scheduling of realtime applications.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 9, 2017 at 4:09 PM, Bill Purvis <span dir="ltr"><<a href="mailto:bill@billp.org" target="_blank">bill@billp.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><div><div class="h5">
    <div class="m_3252994353945717598moz-cite-prefix">On 09/10/17 19:15, Athanasios Silis
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi there,<br>
                </div>
                I have setup an audio system around jackd based on
                ubuntu studio (14.04 LTS). I have written various
                scripts to setup jackd and clients. It is tested and up
                running. Now I would like to add a cmd in rc.local in
                order for the whole system to be brought up at boot.<br>
                <br>
              </div>
              I tried<br>
              <br>
            </div>
            <div>#set limits<br>
            </div>
            <div>su - nass -c "ulimit -r 95 -l unlimited" 2>&1 |
              tee -a  /tmp/audio.log<br>
              <br>
            </div>
            <div>#verify limits<br>
            </div>
            <div>su - nass -c "ulimit -r -l" 2>&1 | tee -a 
              /tmp/audio.log<br>
              <br>
            </div>
            <div>#boot audio stuff<br>
            </div>
            <div>su - nass -c "cd /home/nass/audio_setup/scripts ; bash
              ./cmdaudio start" 2>&1 | tee -a  /tmp/audio.log<br>
              <br>
            </div>
            However the ulimit "set" command fails with message<br>
            ulimit: real-time priority: cannot modify limit: Operation
            not permitted<br>
            <br>
          </div>
          I read that ulimits are not ready yet at this time. Is there a
          way to forcefully "bring them up" in order to have them set
          for the user "nass" before starting the audio scripts ??<br>
          <br>
        </div>
        Thank you<br>
      </div>
      <br>
      <fieldset class="m_3252994353945717598mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Linux-audio-user mailing list
<a class="m_3252994353945717598moz-txt-link-abbreviated" href="mailto:Linux-audio-user@lists.linuxaudio.org" target="_blank">Linux-audio-user@lists.<wbr>linuxaudio.org</a>
<a class="m_3252994353945717598moz-txt-link-freetext" href="https://lists.linuxaudio.org/listinfo/linux-audio-user" target="_blank">https://lists.linuxaudio.org/<wbr>listinfo/linux-audio-user</a>
</pre>
    </blockquote>
    <tt>ulimit is built-in to the command shell program. I'd suggest you
      encase your commands in a shell script<br>
      with the ulimit at the start, and invoke that, via su, from
      rc.local.<br>
      <br>
      However, I suspect that will still reject the request. I'd suggest
      you look at starting the programs,<br>
      then use the renice command (see man renice) to alter the priority
      once they are running.<br>
      You need to be root to raise the priority of a process above
      normal.<span class="HOEnZb"><font color="#888888"><br>
      <br>
      Bill</font></span></tt><span class="HOEnZb"><font color="#888888"><br>
    <pre class="m_3252994353945717598moz-signature" cols="72">-- 
+-----------------------------<wbr>-----------+
| Bill Purvis                            |
| email: <a class="m_3252994353945717598moz-txt-link-abbreviated" href="mailto:bill@billp.org" target="_blank">bill@billp.org</a>                  |
+-----------------------------<wbr>-----------+
</pre>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.<wbr>linuxaudio.org</a><br>
<a href="https://lists.linuxaudio.org/listinfo/linux-audio-user" rel="noreferrer" target="_blank">https://lists.linuxaudio.org/<wbr>listinfo/linux-audio-user</a><br>
<br></blockquote></div><br></div>