<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://brandonhutchinson.com/mediawiki/skins/common/feed.css?97"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Using dmidecode to determine physical RAM and processors - Revision history</title>
		<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Using_dmidecode_to_determine_physical_RAM_and_processors&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.11.0rc1</generator>
		<lastBuildDate>Tue, 21 May 2013 21:20:29 GMT</lastBuildDate>
		<item>
			<title>Hutch at 03:49, 16 December 2008</title>
			<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Using_dmidecode_to_determine_physical_RAM_and_processors&amp;diff=1394&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:49, 16 December 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; MemTotal:      3368120 kB&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; MemTotal:      3368120 kB&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This example RHEL 5 IA-32 system should definitely be using a PAE kernel.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This example RHEL 5 IA-32 system should definitely be using a PAE kernel&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;, or using an x86_64 kernel and distribution&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Processors ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Processors ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 16 Dec 2008 03:49:23 GMT</pubDate>			<dc:creator>Hutch</dc:creator>			<comments>http://brandonhutchinson.com/wiki/Talk:Using_dmidecode_to_determine_physical_RAM_and_processors</comments>		</item>
		<item>
			<title>Hutch at 03:48, 16 December 2008</title>
			<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Using_dmidecode_to_determine_physical_RAM_and_processors&amp;diff=1393&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:48, 16 December 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Physical memory ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Physical memory ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Situation: On an IA-32 (i386) Linux system without a PAE kernel, how can you be sure that the correct amount of physical memory is being returned by the kernel? Without a PAE kernel, the system will report a maximum of 4GB physical memory.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Situation: On an IA-32 (i386) Linux system without a PAE kernel, how can you be sure that the correct amount of physical memory is being returned by the kernel? Without a PAE kernel, the system will report a maximum of &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;4GB physical memory. Note that this does not apply to x86_64 kernels, as they can address more than &lt;/ins&gt;4GB physical memory.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The easiest way I know of to determine the amount of physical memory in a Linux system is using '''dmidecode'''. The following works on RHEL 3, 4, and 5:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The easiest way I know of to determine the amount of physical memory in a Linux system is using '''dmidecode'''. The following works on RHEL 3, 4, and 5:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 16 Dec 2008 03:48:50 GMT</pubDate>			<dc:creator>Hutch</dc:creator>			<comments>http://brandonhutchinson.com/wiki/Talk:Using_dmidecode_to_determine_physical_RAM_and_processors</comments>		</item>
		<item>
			<title>Hutch: New page: === Physical memory ===  Situation: On an IA-32 (i386) Linux system without a PAE kernel, how can you be sure that the correct amount of physical memory is being returned by the kernel? Wi...</title>
			<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Using_dmidecode_to_determine_physical_RAM_and_processors&amp;diff=1392&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: === Physical memory ===  Situation: On an IA-32 (i386) Linux system without a PAE kernel, how can you be sure that the correct amount of physical memory is being returned by the kernel? Wi...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Physical memory ===&lt;br /&gt;
&lt;br /&gt;
Situation: On an IA-32 (i386) Linux system without a PAE kernel, how can you be sure that the correct amount of physical memory is being returned by the kernel? Without a PAE kernel, the system will report a maximum of 4GB physical memory.&lt;br /&gt;
&lt;br /&gt;
The easiest way I know of to determine the amount of physical memory in a Linux system is using '''dmidecode'''. The following works on RHEL 3, 4, and 5:&lt;br /&gt;
&lt;br /&gt;
 # '''dmidecode | perl -ne '$memory += $1 if /^\t+Size: (\d+)/ ; END { print &amp;quot;$memory\n&amp;quot; }''''&lt;br /&gt;
 8192&lt;br /&gt;
&lt;br /&gt;
How much memory is being reported by the kernel?&lt;br /&gt;
&lt;br /&gt;
 # '''head -1 /proc/meminfo'''&lt;br /&gt;
 MemTotal:      3368120 kB&lt;br /&gt;
&lt;br /&gt;
This example RHEL 5 IA-32 system should definitely be using a PAE kernel.&lt;br /&gt;
&lt;br /&gt;
=== Processors ===&lt;br /&gt;
&lt;br /&gt;
Similarly, '''dmidecode''' may also be used to tell you the number of physical processors in a system. If you are running a uniprocessor kernel, the kernel will report one CPU regardless of how many you have.&lt;br /&gt;
&lt;br /&gt;
It is very unlikely that you would be running a non-SMP kernel with multiple physical processors, but here's a way to return the actual number of physical processors in on a uniprocessor kernel. The following works on RHEL 2.1, 3, 4, and 5 (note that all kernels are SMP-enabled on RHEL 5):&lt;br /&gt;
&lt;br /&gt;
 # '''dmidecode | perl -ne '$num_procs += 1 if /^\t+Type: Central Processor/ ; END { print &amp;quot;$num_procs\n&amp;quot;}''''&lt;br /&gt;
 2&lt;br /&gt;
&lt;br /&gt;
=== Links ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.cyberciti.biz/tips/querying-dumping-bios-from-linux-command-prompt.html &lt;br /&gt;
Get Information About Your BIOS / Server Hardware From a Shell Without Opening Chassis ( BIOS Decoder )]&lt;/div&gt;</description>
			<pubDate>Tue, 16 Dec 2008 03:48:07 GMT</pubDate>			<dc:creator>Hutch</dc:creator>			<comments>http://brandonhutchinson.com/wiki/Talk:Using_dmidecode_to_determine_physical_RAM_and_processors</comments>		</item>
	</channel>
</rss>