Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 214 Bytes

cpu.md

File metadata and controls

11 lines (8 loc) · 214 Bytes

CPU

用一行代码占满 CPU

# 占满单核
dd if=/dev/zero of=/dev/null

# 占满多核
for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done