You are not logged in.
Pages: 1
I just stripped down /etc/rc.sysinit by about 200 lines and booting is even faster! I haven't timed it, but it seems very fast. I'm just trying to think of a way around my 'daemon problem', I have two daemons that must start before two other daemons can start - so naturally these (and syslog) are the only daemons which are not backgrounded, slowing booting a bit.
I seem to have a thing for making my computer boot faster... It's only a matter of time before I compile my own optimized kernel.
Offline
Care to expand on what you have removed etc? im interested
I compile my own kernel to remove everything not used, for no other reason than just because i can lol
I've only managed to get my boot time down to 20s (from about 28 i think), mainly reducing the udev time from around 7s to around 1.7s
Offline
I just went through and removed everything that I had no use for, such as:
* Everything to do with encrypted filesystems (this was a BIG chunk)
* Checking the timezone of the hardware clock
* Checking whether utf8 was in use
* Everything with a comment above it saying it was obsolete, but was still there for some reason
* Various other if-statements that I knew the result of, and the result would never change.
Offline
Lol, you could try sending all the librarys you are going to be loading to /dev/null I seem to remember some mad gentooer doing just that so that all the librarys were cached before loading, seemed to meet some success in reducing load time, but gentoo is slow as compared to Arch
Offline
following it more or less I reduced my boot time in two seconds(at least that says bootchart)
-$: file /dev/zero
/dev/zero: symbolic link to '/dev/brain'
Offline
Can you post your file?
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline
Here you go: http://pastebin.com/m2535ebc9
Of course, keep a backup of your original rc.sysinit before trying this, and you'll almost certainly need to change some things in it.
Offline
Not sure if you've seen kmandelas blog but he has alot of info about reducing boot time in arch
heres a link http://kmandla.wordpress.com/howtos/ check the arch section mainly this one
http://kmandla.wordpress.com/2007/01/27 … toloading/
Offline
I compile my own kernel to remove everything not used, for no other reason than just because i can lol
I just compiled a kernel for the first successful time, and got my boot time from 33s to 27s, which isn't bad for a first successful attempt.
Offline
Would your rc.sysinit file work in my machine?
Core 2 duo, 64 bit OS, ext3 partition, ntfs non-root partition
Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.
Offline
I tried your file. First I tried my file with the raid/encryption parts removed
59 sec grub to gnome, 30 to X
your file:
1min, 4 sec to gnome
Original time:
59 sec
Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.
Offline
how do I figure out what I need and what I don't need in this my rc.sysinit file because I can pretty much start my machine and go make a cup of coffee and come back and it still is loading especially when it gets to checking files. my pc is a intel 2core e8500 with two gigs of ram it isn't a slouch but my boot time seems very slow to me
Offline
Lol, you could try sending all the librarys you are going to be loading to /dev/null I seem to remember some mad gentooer doing just that so that all the librarys were cached before loading, seemed to meet some success in reducing load time, but gentoo is slow as compared to Arch
Could you elaborate? What do you mean by sending the libraries to /dev/null?
Offline
I guess he means doing "cat file > /dev/null" so it get's cached in RAM and it's loaded faster next time... but how could it speed up the boot? You'd need to find moments during the boot where the hdd isn't used and cache the files in background during that time.
Offline
^ It would speed up the initial responce of programs once boot has finished, but otherwise, yeah, can't see that helping the boot process.
Offline
Thanks for the tips...I went extreme. I don't use mod autoload or anything like that, and I'm trying to find a way to get rid of udev...and may try a different init system (einit) when it's done being rewritten...anyway...
I did some of this, but have totally tweaked nearly every part of my boot process, and am running a custom Xserver, (see the xserver-gentoo-onesecondx in AUR), as well as the Zen kernel (see AUR), which is pretty well stripped except for what I need. Boot time for me is 13sec. It'd be faster if I didn't use KDE and rely on dbus and hal....that said, KDM takes a bit to start even when the Xserver has started, and post isn't counted....alongside that, I think one or two seconds discrepancy could be tacked on from time to time if not all the time, as bootchart doesn't seem to be super accurate....here's my bootchart:
3 Simple Steps to Font Perfection in Linux(My personal Site)
Free Stuff
Offline
I only have the "base" hook in mkinitcpio.conf, 2 daemons not backgrounded, custom kernel, rc.sysinit tweaked, modautoload off, and some mods in startkde. My pentium4 1.5 (256mb ram, hdd 40gb ) boots to full working kdemod3 in less then 25secs (post beep to kde)... and uses only 29mb of ram (without caches...)
Last edited by TigTex (2008-07-28 16:24:43)
.::. TigTex @ Portugal .::.
Offline
Pages: 1