5kits zhao

test cpu load

Contents

[ hide ]


    this command is used to increase the cpu load for testing purpose

     

    yes > /dev/null &
    

    Repeat the command N times, where N is the number of CPUs. In my case, I have to execute it four times.

    you can get the number of cpu by running the following command cat /proc/cpuinfo or nproc

    reference http://knowledge.alzwea.com/wp-admin/post.php?post=1191&action=edit

    Leave a Reply