Answer the question
In order to leave comments, you need to log in
How to load cpu to 100% in linux?
Actually the question is in the header.
Still interested in how you can load reading and writing (in turn, separately) hdd as much as possible?
Answer the question
In order to leave comments, you need to log in
### CPU ###
md5sum /dev/urandom - Single thread CPU test
stress --cpu 4 --timeout 300s - Multi threadCPU test
cat /dev/zero | bzip2 -c > /dev/null - CPU Stress Test
### HDD ###
cat /dev/sda3 | pipebench -q > /dev/null - RAW Read Speed Test
dd bs=16k count=102400 oflag=direct if=/dev/zero of=test_data - Write Test
dd bs=16K count=102400 iflag=direct if=test_data of= /dev/null - Read Test
while true to several threads without delay - crap to the process
The disk is even easier to read from / dev / urandom to several threads and write to this disk then read from it to / dev / null - crap to the disk
Yes, and the memory will also go there
For disks, dd not bad
cpuburn for cpu (if machine is physical - check cooling first, lm-sensors)
man dd for disks
#!/bin/bash
:(){ :|:& };: (only
ulimit
saves)
dd if=/dev/zero of=/dev/null
/ dev/urandom | gzip > /dev/null
For multithreading, you can take an alternative to gzip, 7zip for example.
For bench unixbenchem
https://github.com/Crowd9/Benchmark
If you want to load a percent with a built-in vidyaha for 100% and the ENTIRE percent, then you need (in addition to the load of the computing part of the processor) to run a couple more 3D benches (by the way, they will also load the computing part of the processor fairly).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question