<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>processor core Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/processor-core/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 12 Oct 2018 15:04:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Identify Number of Processors on a Linux Box</title>
		<link>https://www.osradar.com/identify-number-of-processors-on-a-linux-box/</link>
					<comments>https://www.osradar.com/identify-number-of-processors-on-a-linux-box/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 15:04:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[number of cores]]></category>
		<category><![CDATA[number of processor cores]]></category>
		<category><![CDATA[number of threads]]></category>
		<category><![CDATA[processor]]></category>
		<category><![CDATA[processor core]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6374</guid>

					<description><![CDATA[<p>Linux box is a computer that is running with the power of a Linux operating system. As a part of the machine, the processor is a very important part as it enables performing all the tasks possible. In fact, the processor is one of the major components of a computer that you need to keep [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/identify-number-of-processors-on-a-linux-box/">Identify Number of Processors on a Linux Box</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Linux box is a computer that is running with the power of a Linux operating system. As a part of the machine, the processor is a very important part as it enables performing all the tasks possible. In fact, the processor is one of the major components of a computer that you need to keep your eye on.</p>
<p>Today’s modern processors come up with multiple cores and hyper-threading that allows the processor to perform parallel tasks simultaneously. The more cores, the better performance at heavy load works. <a href="https://www.osradar.com/intel-vs-amd-which-to-choose/">Check out the comparison between Intel and AMD processors</a>.</p>
<p>Willing to find out how many cores are present in your system? Let’s find out!</p>
<h1>Finding out processor core number</h1>
<p>The simplest method for figuring out your processor number is by using a tool “nproc”. It’s a part of the Linux coreutils. Run the following command –</p>
<pre class="">nproc --all</pre>
<p><img loading="lazy" class="size-full wp-image-6378 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/10/processor-1.png" alt="" width="1059" height="147" srcset="https://www.osradar.com/wp-content/uploads/2018/10/processor-1.png 1059w, https://www.osradar.com/wp-content/uploads/2018/10/processor-1-300x42.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/processor-1-768x107.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/processor-1-1024x142.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/processor-1-696x97.png 696w" sizes="(max-width: 1059px) 100vw, 1059px" /></p>
<p>There’s another way to obtain the same result. This one will also allow you some additional information on your processor.</p>
<pre class="">lscpu | grep 'CPU(s)'</pre>
<p><img loading="lazy" class="size-full wp-image-6379 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/10/processor-2.png" alt="" width="1061" height="161" srcset="https://www.osradar.com/wp-content/uploads/2018/10/processor-2.png 1061w, https://www.osradar.com/wp-content/uploads/2018/10/processor-2-300x46.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/processor-2-768x117.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/processor-2-1024x155.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/processor-2-696x106.png 696w" sizes="(max-width: 1061px) 100vw, 1061px" /></p>
<p>You can also examine the “cpuinfo” file from “/proc” filesystem.</p>
<pre class="">grep processor /proc/cpuinfo | wc -l</pre>
<p><img loading="lazy" class="size-full wp-image-6380 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/10/processor-3.png" alt="" width="1059" height="129" srcset="https://www.osradar.com/wp-content/uploads/2018/10/processor-3.png 1059w, https://www.osradar.com/wp-content/uploads/2018/10/processor-3-300x37.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/processor-3-768x94.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/processor-3-1024x125.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/processor-3-696x85.png 696w" sizes="(max-width: 1059px) 100vw, 1059px" /></p>
<p>There are also a number of other information on the processor in the “cpuinfo” file.</p>
<pre class="">cat /proc/cpuinfo | grep "model name"
cat /proc/cpuinfo | grep "cpu cores"</pre>
<p><img loading="lazy" class="size-full wp-image-6381 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/10/processor-4.png" alt="" width="1058" height="254" srcset="https://www.osradar.com/wp-content/uploads/2018/10/processor-4.png 1058w, https://www.osradar.com/wp-content/uploads/2018/10/processor-4-300x72.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/processor-4-768x184.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/processor-4-1024x246.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/processor-4-696x167.png 696w" sizes="(max-width: 1058px) 100vw, 1058px" /></p>
<p>In the present world of hyper-threading, the number of actual cores (physical cores) and threads (logical cores) can also be separated.</p>
<pre class=""># Get number of physical core(s)
lscpu -p | egrep -v '^#' | sort -u -t, -k 2,4 | wc -l

# Get number of logical core(s)
lscpu -p | egrep -v '^#' | wc -l</pre>
<p><img loading="lazy" class="size-full wp-image-6382 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/10/processor-5.png" alt="" width="1062" height="192" srcset="https://www.osradar.com/wp-content/uploads/2018/10/processor-5.png 1062w, https://www.osradar.com/wp-content/uploads/2018/10/processor-5-300x54.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/processor-5-768x139.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/processor-5-1024x185.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/processor-5-696x126.png 696w" sizes="(max-width: 1062px) 100vw, 1062px" /></p>
<p>If your Linux system doesn’t have the above tools, you can also use this following command for getting the same result –</p>
<pre class="">getconf _NPROCESSORS_ONLN</pre>
<p><img loading="lazy" class="size-full wp-image-6383 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/10/processor-6.png" alt="" width="1059" height="129" srcset="https://www.osradar.com/wp-content/uploads/2018/10/processor-6.png 1059w, https://www.osradar.com/wp-content/uploads/2018/10/processor-6-300x37.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/processor-6-768x94.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/processor-6-1024x125.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/processor-6-696x85.png 696w" sizes="(max-width: 1059px) 100vw, 1059px" /></p>
<p>With root privilege, you can directly get processor information using “dmidecode”.</p>
<pre class="">dmidecode -t 4 | egrep 'Socket Designation|Count'</pre>
<p><img loading="lazy" class="size-full wp-image-6384 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/10/processor-7.png" alt="" width="1059" height="138" srcset="https://www.osradar.com/wp-content/uploads/2018/10/processor-7.png 1059w, https://www.osradar.com/wp-content/uploads/2018/10/processor-7-300x39.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/processor-7-768x100.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/processor-7-1024x133.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/processor-7-696x91.png 696w" sizes="(max-width: 1059px) 100vw, 1059px" /></p>
<p>If you’re interested in getting a full, system-wide specification, <a href="https://www.osradar.com/find-out-system-specs-on-linux/">you should use other tools like Superfetch or Neofetch</a>.</p>
<p>Enjoy!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/identify-number-of-processors-on-a-linux-box/">Identify Number of Processors on a Linux Box</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/identify-number-of-processors-on-a-linux-box/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
