title: Linux: How to put a load on system memory?
body: <p>I'm working on a small function, that gives my users a picture of how occupied the CPU is.</p>
  
  <p>I'm using <code>cat /proc/loadavg</code>, which returns the well known 3 numbers.</p>
  
  <p>My problem is that the CPU doesn't do anything, right now, while I'm developing.</p>
  
  <p>Is there a good way to generate some load on the CPU, I was thinking something like <code>makecpudosomething 30</code>, for a load of 0.3 or similar. Does an application like this exist?</p>
  
  <p>Also, are there any way to eat up RAM in a controlled fashion?</p>