<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Create 100% CPU Load on Linux System	</title>
	<atom:link href="https://www.ubuntumint.com/create-cpu-load-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ubuntumint.com/create-cpu-load-linux/</link>
	<description>UbuntuMint - Everything About Ubuntu Linux</description>
	<lastBuildDate>Mon, 24 Jul 2023 08:42:52 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>
		By: Mr_Magoo		</title>
		<link>https://www.ubuntumint.com/create-cpu-load-linux/#comment-24095</link>

		<dc:creator><![CDATA[Mr_Magoo]]></dc:creator>
		<pubDate>Tue, 28 Mar 2023 16:29:30 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=1718#comment-24095</guid>

					<description><![CDATA[To impose a load upon all the cores, then use powertop and powerstat to measure the power drawn.
&lt;pre&gt;
$ for i in $(seq $(getconf _NPROCESSORS_ONLN)); do yes &#062; /dev/null &#038; done
&lt;/pre&gt;
Kill that via:
&lt;pre&gt;
$ sudo killall yes
&lt;/pre&gt;
Park cores via:
&lt;pre&gt;
$ for x in /sys/devices/system/cpu/cpu{1..11}/online; do echo 0 &#062;&quot;$x&quot;; done
&lt;/pre&gt;
Unpark cores via:
&lt;pre&gt;
$ for x in /sys/devices/system/cpu/cpu{1..11}/online; do echo 1 &#062;&quot;$x&quot;; done
&lt;/pre&gt;
You&#039;ll note that &lt;strong&gt;Core0&lt;/strong&gt; is not included, Linux cannot park &lt;strong&gt;Core0&lt;/strong&gt; unless you&#039;re using a full no-tick kernel (which most Linux flavors don&#039;t have yet). The best you can do is to use the low-latency kernel and the kernel flags in my comment here: 

https://askubuntu.com/questions/185826/does-ubuntu-support-core-parking

To implement something as close to a full no-tick kernel (as Windows and MacOS use) as is possible under Linux.

On my AMD Ryzen CPU, with all but Core0 parked and with Core0 loaded to 100% (with Turbo Mode turned off), TDP is only ~3.8 W. For normal, everyday usage, I don&#039;t notice all that much more lag than when all cores are running. That&#039;s fantastic compared to the old CPUs that used to have TDPs in the hundreds of watts.]]></description>
			<content:encoded><![CDATA[<p>To impose a load upon all the cores, then use powertop and powerstat to measure the power drawn.</p>
<pre>
$ for i in $(seq $(getconf _NPROCESSORS_ONLN)); do yes &gt; /dev/null &amp; done
</pre>
<p>Kill that via:</p>
<pre>
$ sudo killall yes
</pre>
<p>Park cores via:</p>
<pre>
$ for x in /sys/devices/system/cpu/cpu{1..11}/online; do echo 0 &gt;"$x"; done
</pre>
<p>Unpark cores via:</p>
<pre>
$ for x in /sys/devices/system/cpu/cpu{1..11}/online; do echo 1 &gt;"$x"; done
</pre>
<p>You&#8217;ll note that <strong>Core0</strong> is not included, Linux cannot park <strong>Core0</strong> unless you&#8217;re using a full no-tick kernel (which most Linux flavors don&#8217;t have yet). The best you can do is to use the low-latency kernel and the kernel flags in my comment here: </p>
<p><a href="https://askubuntu.com/questions/185826/does-ubuntu-support-core-parking" rel="nofollow ugc">https://askubuntu.com/questions/185826/does-ubuntu-support-core-parking</a></p>
<p>To implement something as close to a full no-tick kernel (as Windows and MacOS use) as is possible under Linux.</p>
<p>On my AMD Ryzen CPU, with all but Core0 parked and with Core0 loaded to 100% (with Turbo Mode turned off), TDP is only ~3.8 W. For normal, everyday usage, I don&#8217;t notice all that much more lag than when all cores are running. That&#8217;s fantastic compared to the old CPUs that used to have TDPs in the hundreds of watts.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kevin Aquilina		</title>
		<link>https://www.ubuntumint.com/create-cpu-load-linux/#comment-408</link>

		<dc:creator><![CDATA[Kevin Aquilina]]></dc:creator>
		<pubDate>Wed, 16 Jun 2021 08:36:13 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=1718#comment-408</guid>

					<description><![CDATA[In bash:
&lt;pre&gt;
a=1
while true
do
let a=$a+1
done
&lt;/pre&gt;
Result: 100% cpu usage (single core).]]></description>
			<content:encoded><![CDATA[<p>In bash:</p>
<pre>
a=1
while true
do
let a=$a+1
done
</pre>
<p>Result: 100% cpu usage (single core).</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
