-g-2zq
Last Updated: August 04, 2018
·
4.559K
· creaktive

Burn your CPU for fun & profit

Some men just want to watch their processor core burn.

Maybe you need to benchmark your system, check if the alarm you set up actually triggers, or simply want to heat your lap on a cold rainy day.
This is a quick & dirty trick I use:

(xz -6c /dev/urandom > /dev/null) &

Run twice to overload two cores.
Run kill %1 %2 ... to beg mercy.
Each process consumes ~100MB of RAM, so running enough xz processes will also check how reliable your RAM is.

How/why does this work?
xz implements a very CPU-intensive LZMA2 compression algorithm.
Feeding it with a random byte stream simulates the worst case data, driving L1/L2 caches insane.

3 Responses
Add your response

6606

It's like mining bitcoins without the bubble!

over 1 year ago ·
7123

I use:

yes | wc -l &

to full load a core.

over 1 year ago ·
30281

I don't know how do i find my computer in windows 10 system, then my friend is suggest this http://mycomputerwindows10.com tutorial. after using this platform easily control my all device saved content and manage your desktop.

4 months ago ·
Filed Under