<?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>Tech4Him - Technology with Integrity &#187; 386</title>
	<atom:link href="http://blog.tech4him.com/tags/386/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tech4him.com</link>
	<description>A Christian technology chaos wrangler and his thoughts</description>
	<lastBuildDate>Wed, 24 Mar 2010 23:15:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 6.06 Server LTS &#8211; Adding support for SMP</title>
		<link>http://blog.tech4him.com/2008/01/ubuntu-6-06-server-lts-adding-support-for-smp/</link>
		<comments>http://blog.tech4him.com/2008/01/ubuntu-6-06-server-lts-adding-support-for-smp/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 22:29:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[386]]></category>
		<category><![CDATA[686]]></category>
		<category><![CDATA[smp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 6.06]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>
Now that we have had our server working well following our previous instructions, it is now time to tweak some more. Actually, many folks probably thinks this is more thank a tweak and really a necessity. I'd agree with that. Why? Well you just purchased a dual, quad core Xeon server to be fast. Fast is alot of things but certainly processing power is one of those key pieces. 
</p>
<p>
Go to the shell prompt on your server and run the following command:
</p>
<p>
<i>cat /proc/cpuinfo &#124; grep '^processor' &#124; wc -l</i>
</p>]]></description>
			<content:encoded><![CDATA[<p>
Now that we have had our server working well following our previous instructions, it is now time to tweak some more. Actually, many folks probably thinks this is more thank a tweak and really a necessity. I&#8217;d agree with that. Why? Well you just purchased a dual, quad core Xeon server to be fast. Fast is alot of things but certainly processing power is one of those key pieces.
</p>
<p>
Go to the shell prompt on your server and run the following command:
</p>
<p>
<i>cat /proc/cpuinfo | grep &#8216;^processor&#8217; | wc -l</i>
</p>
<p>
Now, what number did you get back. Was it 1? Well the number you get back from that command is the number or processors the system currently sees. Yes, that&#8217;s right. In our example here, our server was only seeing a single core out of a possibility of 8 (dual, quad core, xeon processors). So you&#8217;re telling me that we are wasting 7/8 of our processing power? Essentially, YES!
</p>
<p>
Well don&#8217;t fear. There is a relatively simple way to fix this. Now, there are a few caveats but we&#8217;ll show you how we did it.
</p>
<p>
<b>NOTE</b>: If you compiled any source for any applications since your initial installation of Ubuntu, be prepared to re-compile. We are about to change the kernel and therefore your going to need to recompile against that new kernel.
</p>
<p>
From a shell prompt we need to be sure our repository information is up to date so&#8230;:
</p>
<p>
<i>sudo apt-get update</i>
</p>
<p>
Next, let&#8217;s get the 686 package which will allow our system to see more than the single processor as it does in the 386 version.
</p>
<p>
<i>sudo apt-get install linux-686</i>
</p>
<p>
Great! That was easy. You may have noticed that the installation made changes to the /boot/grub/menu.lst file. If you recalled from our previous article, this is the file that defines how grub will boot your system. With Ubuntu 6.06Server LTS and the PERC5/i controller in our box we had to make some modifications to that menu.lst file before. Well, unfortunately our work was just overwritten by the installation of the linux-686 package.
</p>
<p>
No problem, we&#8217;ll just update it again.
</p>
<p>
sudo vi /boot/grub/menu.lst
</p>
<p>
Now in this file towards the bottom are the boot menu options just like before. Change to &quot;root&quot; entries from something like hd(4,0) to hd(0,0). You are just changing that 4 to a 0 in each of the 4-6 menu option entries.
</p>
<p>
Next, the 686 kernel seems to correct the issue of how the raid array is detected and therefore named. Still in the menu.lst file, find the &quot;kernel&quot; entries for each menu option. Notice that there is something like root=/dev/sde1 in the line. Well, now the array is seen as sda not sde. So change all the sde1 pieces to sda1.
</p>
<p>
<i>/boot/vmlinuz-2.6.15-29-686 root=/dev/sde1 ro quiet splash</i>
</p>
<p>
is changed to
</p>
<p>
<i>/boot/vmlinuz-2.6.15-29-686 root=/dev/sda1 ro quiet splash</i>
</p>
<p>
Be sure you make those changes to all the entrie and then save your work.
</p>
<p>
Now all you have to do is reboot the server, but, be sure to do it form the console because you won&#8217;t have network connectivity when you reboot if you are on a Dell Poweredge 2950 like we are.
</p>
<p>
<i>sudo shutdown -r now</i>
</p>
<p>
Okay, after the reboot, log into your server at the console.
</p>
<p>
<i>sudo /etc/init.d/networking restart </i>
</p>
<p>
This should get your networking going again. There is an issue with the bnx2 / Broadcom driver in the 686 kernel that is odd but a simple restart of networking resolves the issue. This is how we came up with this temporary workaround until we find the real solution.
</p>
<p>
<i>sudo vi /etc/init.d/rc</i>
</p>
<p>
Now in this rc file, near the end add the following line which will force the networking restart after reboot.
</p>
<p>
<i># temporary resolution to networking issue under 686 kernel<br />
/etc/init.d/networking restart</i>
</p>
<p>
Then save your file.
</p>
<p>
That&#8217;s it. Now try that processor count again. Hmmmm&#8230;. we actually see 8 processors now. Now we are being good stewards of what has been provided.</p>
<img src="http://blog.tech4him.com/?ak_action=api_record_view&id=10&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.tech4him.com/2008/01/ubuntu-6-06-server-lts-adding-support-for-smp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
