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 num
cat /proc/loadavg
Very simple actually: install stress tool and do:
stress --vm X --vm-bytes YM
malloc()
Example:
stress --vm 2 --vm-bytes 128M