title: Setting system memory for a process in linux
body: <p>I need to limit the system memory free -- available for a process to 8GB. So, do I need to set </p>
  
  <pre><code>ulimit -S -m 8388608
  </code></pre>
  
  <p>or do I need to set:</p>
  
  <pre><code>ulimit -S -v 8388608
  </code></pre>
  
  <p>I am a non root user therefore I can change only soft limit. How can I raise the memory limit to unlimited again. I tried </p>
  
  <pre><code>ulimit -S -v ulimited
  </code></pre>
  
  <p>but it gives me:</p>
  
  <pre><code> bash: ulimit: ulimited: invalid number
  </code></pre>