无意间在51首页上看到一篇关于“通过命令行制造CPU负载或压力”的文章,感觉不错,先记录下来,为将来的使用做好笔记记录!很简单,就一个命令:#cat/dev/urandom|md5sum然后通过top观察,cpu的值果然很高,说明测试成功!有图有真相^_^
分类:
其他好文 时间:
2014-06-26 06:27:02
阅读次数:
546
BACKGROUNDMany processors include a time stamp count (TSC) counter which is typically implemented as a counter that increments at a fixed rate. Some k...
分类:
其他好文 时间:
2014-06-18 22:19:29
阅读次数:
233
The semaphore module can be used as an arbiter to ensure mutual exclusivity when sharing resources over multiple cores in a multicore device. It provides up to 64 independent semaphores that can be ac...
分类:
其他好文 时间:
2014-05-21 16:26:59
阅读次数:
234
从内核观点看,进程的目的就是担当分配系统资源(CPU)...
分类:
其他好文 时间:
2014-05-12 14:05:22
阅读次数:
228
1、查看物理cpu个数
cat /proc/cupinfo |grep 'physical id'|sort|uniq|wc -l
2、查看一个cpu的物理核数
cat /proc/cupinfo |grep 'core id'|sort|uniq -c|wc -l
或
cat /proc/cupinfo |grep 'cpu cores'|uniq|awk -F ":" '{print...
分类:
系统相关 时间:
2014-05-08 04:07:55
阅读次数:
483