title: mlockall(): cannot allocate memory
body: <p>I am getting the error:
  mlockall failed: Cannot allocate memory
  when calling the function mlockall():</p>
  
  <pre><code>if(mlockall(MCL_CURRENT|MCL_FUTURE) == -1) {
              printf("mlockall failed: %m\n");
              exit(-2);
      }
  </code></pre>
  
  <p>IDE used: Eclipse
  OS: Ubuntu 16.04
  Real time extension using : 4.11.12 rt-15 (preempt patch)
  Note : I am trying to so a UDP CONNECTION in realtime (using intel i210 ethernet controller).</p>
  
  <p>When i debug the same in eclipse this is what is showing:</p>
  
  <p>Can't find a source file at "/build/glibc-bfm8X4/glibc-2.23/misc/../sysdeps/unix/syscall-template.S" 
  Locate the file or edit the source lookup path to include its location.</p>
  
  <p>How to solve this?</p>