<?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>I Can Has Linux? &#187; grub</title>
	<atom:link href="http://icanhaslinux.com/category/grub/feed/" rel="self" type="application/rss+xml" />
	<link>http://icanhaslinux.com</link>
	<description>Invisible Patent Infringement!</description>
	<lastBuildDate>Tue, 08 Jun 2010 23:47:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Making Ubuntu boot in 19 seconds, pt2</title>
		<link>http://icanhaslinux.com/2007/09/14/making-ubuntu-boot-in-19-seconds-pt2/</link>
		<comments>http://icanhaslinux.com/2007/09/14/making-ubuntu-boot-in-19-seconds-pt2/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 17:24:52 +0000</pubDate>
		<dc:creator>LightningCrash</dc:creator>
				<category><![CDATA[boot]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://icanhaslinux.com/2007/09/14/making-ubuntu-boot-in-19-seconds-pt2/</guid>
		<description><![CDATA[I wrote before about my experiments in Ubuntu boot times and mentioned doing a fresh install and just disabling the dhcp and network manager. I got a lot of good input and wanted to expand upon that. Setup My secondary workstation is a Dell GX270 with a 3.0GHz P4 processor, 1GB of RAM and a [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote before about my <a href="http://icanhaslinux.com/2007/08/28/making-ubuntu-boot-in-19-seconds/">experiments in Ubuntu boot times</a> and mentioned doing a fresh install and just disabling the dhcp and network manager. I got a lot of good input and wanted to expand upon that.</p>
<p><span style="font-weight: bold; color: #000000; font-size: 130%">Setup</span><br />
My secondary workstation is a Dell GX270 with a 3.0GHz P4 processor, 1GB of RAM and a 40GB Seagate ST340014A hard drive. I blew away the existing install <strong>again</strong>, reinstalled Feisty with the default settings, specified my static IP, and updated via apt-get. The current kernel version is 2.6.20-16-generic i686.</p>
<p><span style="font-weight: bold; color: #000000; font-size: 130%">Getting started</span><br />
I installed bootchart via <code>sudo apt-get install bootchart</code> and rebooted. My boot time was 29 seconds.<br />
My /etc/network/interfaces file again contained entries for eth1, eth2, ath0 and wlan0. I deleted all of these.<br />
Again, the if-up, if-down, and pre and post-up had entries for wireless and avahi stuff i didn&#8217;t want, so I removed the following<br />
<code>sudo -s<br />
rm /etc/network/if-down.d/avahi-autoipd<br />
rm /etc/network/if-post-down.d/wireless-tools<br />
rm /etc/network/if-pre-up.d/wireless-tools<br />
rm /etc/network/if-up.d/avahi-autoipd<br />
rm /etc/network/if-up.d/avahi-daemon<br />
exit<br />
</code></p>
<p>I rebooted and checked my boot time again</p>
<p>I <a href="http://ubuntuforums.org/showthread.php?t=254263">reprofiled my boot sequence</a>, then rebooted: 23 seconds.</p>
<p><span style="font-weight: bold; color: #000000; font-size: 130%">Sysv-rc-conf</span><br />
At this point I installed and fired up sysv-rc-conf   (sudo apt-get install sysv-rc-conf)<br />
I disabled the following:</p>
<blockquote><p> bluetooth<br />
cupsys<br />
hotkey-setup<br />
hplip<br />
powernowd<br />
rsync<br />
wpa-ifupdown</p></blockquote>
<p>Boot time after removing the services: 22 seconds</p>
<p>At this point, bootchart seems to be limited by a few particular processes:<br />
Disk-related:<br />
khubd<br />
scsi_eh 1<br />
modprobe<br />
rc</p>
<p>CPU Related:<br />
udevd<br />
ckbcomp<br />
hald<br />
Xorg</p>
<p>It looks like udevd is still loading wacom junk<br />
<code>sudo find /etc -name '*wacom*' -type f -delete</code><br />
hehe, took care of that.<br />
I also <a href="http://tvease.net/wiki/index.php?title=Tweak_ubuntu_for_speed#Concurrent_Booting">enabled concurrent shell scripts</a> while I was at it.<br />
Still at 22 seconds.<br />
I cleaned up /etc/acpi, as there were a ton of modules loaded that I didn&#8217;t use: 22 seconds.<br />
I installed prelinking and then rebooted: 22 seconds.<br />
I blacklisted ipv6 and a handful of other modules that were loaded for no reason whatsoever: 22 seconds.<br />
I reprofiled and rebooted: 20 seconds.<br />
At this point it looks like readahead itself takes up about 5 seconds of uninterruptable I/O.</p>
<p>Now to try out some of the stuff that my readers posted.<br />
mgarces said to try initNG. So I grabbed the deb files for initng and the initng ifiles from initng.org and did a dpkg -i initng*.deb<br />
But it didn&#8217;t boot&#8230;&#8230;so I googled and ran <a href="http://ubuntuforums.org/showthread.php?t=80423&amp;highlight=modules">across this page</a>. I followed the directions there and got it to boot. HAL is complaining and I don&#8217;t feel like troubleshooting it right now.<br />
But wait, bootchart isn&#8217;t working either. Crap.<br />
Oh, even better, eth0 didn&#8217;t come up.<br />
sudo dpkg -r initng<br />
sudo dpkg -r initng-ifiles<br />
Bye-bye initng!</p>
<p>So I figured, why not play with the schedulers?<br />
CFQ=22 seconds<br />
deadline=23 seconds<br />
noop=23 seconds<br />
as=23 seconds</p>
<p>So, even now, nothing really helps.</p>
<p>Well, I&#8217;m really getting burned out, maybe there will be a part 3 for this sometime.</p>
<p>Until next time!<br />
-LightningCrash</p>
]]></content:encoded>
			<wfw:commentRss>http://icanhaslinux.com/2007/09/14/making-ubuntu-boot-in-19-seconds-pt2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
