1、获取总的cpu信息
# cat /proc/stat
cpu 161911 2406 35826 1860803 14982 685 3810 0
cpu0 161911 2406 35826 1860803 14982 685 381 0 0
intr 3304665 0 0 0 0 0 0 0 0 0 0 0 1102551 181196 0 0 0 0 0 0 0 0 143065 0 0 0 1
62502 149 0 0 0 0 0 0 0 0 22822 0 998265 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 400
64 17 330 0 0 31 0 0 0 0 0 0 0 0 0 0 242 0 0 0 0 4768 80 0 0 0 0 3793 0 0 315776
0 0 0 0 0 88608 88570 3778 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19
706 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 89 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 113887 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0 0 0 0 0 0 14249 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0