{"id":44609,"date":"2023-10-29T14:36:50","date_gmt":"2023-10-29T14:36:50","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=44609"},"modified":"2024-06-10T03:17:48","modified_gmt":"2024-06-10T03:17:48","slug":"stress-test-cpu-ubuntu-debian","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/10\/stress-test-cpu-ubuntu-debian\/","title":{"rendered":"How to Perform Stress Test on Your CPU in Ubuntu \/ Debian"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-44610\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/cpu-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/cpu-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/cpu-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/cpu-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/cpu-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/cpu-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>This simple tutorial shows how to do stress test on your CPU in Ubuntu or Debian Linux, either Desktop or Server.<\/p>\n<p>Got a new CPU \/CPU cooler, or changed your computer environment? You can perform a stress test to find out if it&#8217;s working good! And, here&#8217;s how to do the trick in Debian, Ubuntu, and their based systems.<\/p>\n<h3>Step 1: Install stress\/stress-ng &amp; s-tui<\/h3>\n<p>In all current <b>Ubuntu (20.04, 22.04, 24.04)<\/b> and <b>Debian<\/b> releases, there are few command line and TUI tools to do the job.<\/p>\n<p>First, open terminal either from start\/application menu or by pressing <b>Ctrl+Alt+T<\/b> on keyboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-38555\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/terminal-jammy-300x172.png\" alt=\"\" width=\"300\" height=\"172\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/terminal-jammy-300x172.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/terminal-jammy.png 522w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\nWhen it opens, run command:<\/p>\n<pre>sudo apt install --install-suggests s-tui<\/pre>\n<p><i>Type user password (no asterisk feedback) for sudo authentication and hit Enter.<\/i><\/p>\n<p>The command will install <code>s-tui<\/code>, with TUI interface to start, stop, configure stress test, and monitor your CPU status in terminal.<\/p>\n<p>With <code>--install-suggests<\/code> option, it also installs the <code>stress<\/code> or <code>stress-ng<\/code> package as the backend for the testing.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/apt-stui.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44611\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/apt-stui-600x278.webp\" alt=\"\" width=\"600\" height=\"278\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/apt-stui-600x278.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/apt-stui-300x139.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/apt-stui-768x356.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/apt-stui.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Step 2: Perform Stress Test<\/h3>\n<p>After installing the tool, simply run the command below in terminal to start s-tui:<\/p>\n<pre>s-tui<\/pre>\n<p>Then, you&#8217;ll see something look like the screenshot below shows you.<\/p>\n<p>In left, it shows some options, as well as summaries of core temperatures, and frequencies. In right, it shows information about the temperature, utilization rate,etc in graphs.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/s-tui.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44612\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/s-tui-600x377.webp\" alt=\"\" width=\"600\" height=\"377\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/s-tui-600x377.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/s-tui-300x189.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/s-tui-768x483.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/s-tui-1320x830.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/s-tui.webp 1506w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>To start stress test, just left click on <b>( )Stress<\/b> in the top-left corner of terminal, or use arrow key to highlight it and hit Enter. To stop it, just click to switch back <b>( )Monitor<\/b>.<\/p>\n<p>By clicking <b>Stress Options<\/b> in left, it will show you option to set a timeout to automatically stop stress testing in given seconds. You can also change Sqrt() worker count and Sync() worker count to specify how many cores to run for stress test.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/stress-options.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-44613\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/stress-options.webp\" alt=\"\" width=\"592\" height=\"509\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/stress-options.webp 592w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/stress-options-300x258.webp 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/a><\/p>\n<p><b>Tips 1 :<\/b> For GNOME, Ubuntu&#8217;s default desktop environment, open &#8220;<b>Power<\/b>&#8221; settings and change CPU power mode to &#8216;Performance&#8217; before performing stress test, or your CPU may not run in full speed.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/ubuntu-setperformance.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44614\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/ubuntu-setperformance-600x415.webp\" alt=\"\" width=\"600\" height=\"415\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/ubuntu-setperformance-600x415.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/ubuntu-setperformance-300x207.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/ubuntu-setperformance-768x531.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/ubuntu-setperformance.webp 1102w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>Tips 2<\/b>: While stress testing, you may also monitor the temperature of other devices (e.g., SSD) in your machine. To do so, you may install &#8216;hardinfo&#8217; by running command in terminal:<\/p>\n<pre>sudo apt install hardinfo<\/pre>\n<p>Then open it and navigate to &#8216;sensors&#8217; tab in left.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/hardinfo-sensors.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44615\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/hardinfo-sensors-600x335.webp\" alt=\"\" width=\"600\" height=\"335\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/hardinfo-sensors-600x335.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/hardinfo-sensors-300x168.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/hardinfo-sensors-768x429.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/hardinfo-sensors.webp 1027w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>That&#8217;s all. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows how to do stress test on your CPU in Ubuntu or Debian Linux, either Desktop or Server. Got a new CPU \/CPU cooler, or changed your computer environment? You can perform a stress test to find out if it&#8217;s working good! And, here&#8217;s how to do the trick in Debian, Ubuntu, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":44610,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2088],"class_list":["post-44609","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-power"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=44609"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44609\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/44610"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=44609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=44609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=44609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}