<?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: Howto display the number of processors in Linux</title>
	<atom:link href="http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Thu, 19 Nov 2009 13:24:32 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tracy Phillips</title>
		<link>http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html/comment-page-1#comment-2875</link>
		<dc:creator>Tracy Phillips</dc:creator>
		<pubDate>Sun, 03 May 2009 19:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html#comment-2875</guid>
		<description>You can run the command below and you will see number of physical processors in the server:

&lt;code&gt;[server][root][~]# grep &quot;^physical is&quot; /proc/cpuinfo &#124; awk &#039;{print $NF}&#039; &#124; uniq &#124; wc -l
1&lt;/code&gt;

Now lets determine how many cores we have:

&lt;code&gt;[server][root][~]# cat /proc/cpuinfo  &#124; grep processor &#124; wc -l
4&lt;/code&gt;

So from the above, we are able to determine that we have a single CPU quad core chip.</description>
		<content:encoded><![CDATA[<p>You can run the command below and you will see number of physical processors in the server:</p>
<p><code>[server][root][~]# grep "^physical is" /proc/cpuinfo | awk '{print $NF}' | uniq | wc -l<br />
1</code></p>
<p>Now lets determine how many cores we have:</p>
<p><code>[server][root][~]# cat /proc/cpuinfo  | grep processor | wc -l<br />
4</code></p>
<p>So from the above, we are able to determine that we have a single CPU quad core chip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cbn</title>
		<link>http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html/comment-page-1#comment-2184</link>
		<dc:creator>cbn</dc:creator>
		<pubDate>Thu, 08 Jan 2009 22:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html#comment-2184</guid>
		<description>you say: how to display the _number_ :)
$ grep -c processor /proc/cpuinfo
2</description>
		<content:encoded><![CDATA[<p>you say: how to display the _number_ <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
$ grep -c processor /proc/cpuinfo<br />
2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall</title>
		<link>http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html/comment-page-1#comment-1853</link>
		<dc:creator>Randall</dc:creator>
		<pubDate>Wed, 19 Sep 2007 20:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html#comment-1853</guid>
		<description>If your kernel does not have SMP support compiled in, `cat /proc/cpuinfo` will only show one processor, even if you have more than one cpu.</description>
		<content:encoded><![CDATA[<p>If your kernel does not have SMP support compiled in, `cat /proc/cpuinfo` will only show one processor, even if you have more than one cpu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bubax</title>
		<link>http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html/comment-page-1#comment-1852</link>
		<dc:creator>Bubax</dc:creator>
		<pubDate>Mon, 03 Sep 2007 07:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html#comment-1852</guid>
		<description>Your script is broken:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/debianad/public_html/wp-content/plugins/SK2/sk2_second_chance.php:2) in /home/debianad/public_html/wp-content/plugins/pxsmail.php on line 1

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/debianad/public_html/wp-content/plugins/SK2/sk2_second_chance.php:2) in /home/debianad/public_html/wp-content/plugins/pxsmail.php on line 1
Thank you. Your comment has been approved.</description>
		<content:encoded><![CDATA[<p>Your script is broken:</p>
<p>Warning: session_start() [function.session-start]: Cannot send session cookie &#8211; headers already sent by (output started at /home/debianad/public_html/wp-content/plugins/SK2/sk2_second_chance.php:2) in /home/debianad/public_html/wp-content/plugins/pxsmail.php on line 1</p>
<p>Warning: session_start() [function.session-start]: Cannot send session cache limiter &#8211; headers already sent (output started at /home/debianad/public_html/wp-content/plugins/SK2/sk2_second_chance.php:2) in /home/debianad/public_html/wp-content/plugins/pxsmail.php on line 1<br />
Thank you. Your comment has been approved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bubax</title>
		<link>http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html/comment-page-1#comment-1851</link>
		<dc:creator>Bubax</dc:creator>
		<pubDate>Mon, 03 Sep 2007 07:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html#comment-1851</guid>
		<description>&gt; Simply issue the following command as root

*Not* as root, because:
# ls -l /proc/cpuinfo
-r--r--r-- 1 root root 0 2007-09-03 15:49 /proc/cpuinfo

(Unless your system uses other permissions than mine, but I don&#039;t see why it should do that.)

Misuse of cat:
&gt; # cat /proc/cpuinfo &#124; grep processor

Simply use:
# grep processor /proc/cpuinfo</description>
		<content:encoded><![CDATA[<p>&gt; Simply issue the following command as root</p>
<p>*Not* as root, because:<br />
# ls -l /proc/cpuinfo<br />
-r&#8211;r&#8211;r&#8211; 1 root root 0 2007-09-03 15:49 /proc/cpuinfo</p>
<p>(Unless your system uses other permissions than mine, but I don&#8217;t see why it should do that.)</p>
<p>Misuse of cat:<br />
&gt; # cat /proc/cpuinfo | grep processor</p>
<p>Simply use:<br />
# grep processor /proc/cpuinfo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor</title>
		<link>http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html/comment-page-1#comment-1850</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Mon, 03 Sep 2007 01:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html#comment-1850</guid>
		<description>There is a lot simpler solution.  Just type  &#039;top&#039; at the command prompt and then press &#039;1&#039;  (number one).
You will see the ACTUAL CPUs listed on the top of the page</description>
		<content:encoded><![CDATA[<p>There is a lot simpler solution.  Just type  &#8216;top&#8217; at the command prompt and then press &#8216;1&#8242;  (number one).<br />
You will see the ACTUAL CPUs listed on the top of the page</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie303</title>
		<link>http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html/comment-page-1#comment-1849</link>
		<dc:creator>Eddie303</dc:creator>
		<pubDate>Sun, 02 Sep 2007 10:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html#comment-1849</guid>
		<description>Lev: I once ate that with some proliant server, it had only one CPU, and because of HyperThreading, I thought there are 2...</description>
		<content:encoded><![CDATA[<p>Lev: I once ate that with some proliant server, it had only one CPU, and because of HyperThreading, I thought there are 2&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lev</title>
		<link>http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html/comment-page-1#comment-1848</link>
		<dc:creator>Lev</dc:creator>
		<pubDate>Fri, 24 Aug 2007 13:10:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/howto-display-the-number-of-processors-in-linux.html#comment-1848</guid>
		<description>Ever heard of hyperthreading?  If it&#039;s on in the BIOS, it&#039;ll incorrectly double the number...</description>
		<content:encoded><![CDATA[<p>Ever heard of hyperthreading?  If it&#8217;s on in the BIOS, it&#8217;ll incorrectly double the number&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
