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