Linux: How to put a load on system memory?

后端 未结 12 2072
清酒与你
清酒与你 2021-02-10 07:54

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

12条回答
  •  [愿得一人]
    2021-02-10 08:41

    mark@localhost$ time pi 1048576 | egrep '.*total$'
    

    Is a simple benchmarking command that will give your cpu a rousting, post your times :D

提交回复
热议问题