title: Eat memory using Python
body: <p>I am trying to create an app that can &quot;Purposely&quot; consume RAM as much as we specify immediately.
  e.g. I want to consume 512 MB RAM, then the app will consume 512 MB directly.</p>
  <p>I have search on the web, most of them are using while loop to fill the ram with variable or data. But I think it is slow way to fill the RAM and might not accurate either.</p>
  <p>I am looking for a library in python about memory management. and came across these <a href="http://docs.python.org/library/mmap.html" rel="noreferrer">http://docs.python.org/library/mmap.html</a>. But can't figure out how to use these library to eat the RAM Space in one shot.</p>
  <p>I ever saw an mem-eater application, but don't know how they were written...</p>
  <p>So, is there any other better suggestion for Fill the RAM with random data immediately?
  Or Should I just use while loop to fill the data manually but with Multi-Threading to make it faster?</p>