You are not logged in.

#1 2008-05-26 13:59:46

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Too fast!

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

#2 2008-05-26 14:24:19

Kane
Member
Registered: 2006-10-08
Posts: 220

Re: Too fast!

Care to expand on what you have removed etc? im interested tongue

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

#3 2008-05-26 14:55:29

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Too fast!

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

#4 2008-05-26 20:22:06

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: Too fast!

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 tongue

Offline

#5 2008-05-26 21:01:36

ornitorrincos
Forum Fellow
From: Bilbao, spain
Registered: 2006-11-20
Posts: 198

Re: Too fast!

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

#6 2008-05-26 21:54:35

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: Too fast!

Can you post your file?


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#7 2008-05-27 07:54:53

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Too fast!

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

#8 2008-05-27 08:51:10

droog
Member
Registered: 2004-11-18
Posts: 877

Re: Too fast!

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

#9 2008-05-28 14:45:16

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Too fast!

Kane wrote:

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

#10 2008-05-28 22:40:05

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Too fast!

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

#11 2008-05-29 00:43:15

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Too fast!

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

#12 2008-05-30 00:13:32

Shadowmeph
Member
From: West Coast Canada
Registered: 2008-05-19
Posts: 208

Re: Too fast!

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

#13 2008-05-30 07:24:47

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Too fast!

shazeal wrote:

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 tongue

Could you elaborate? What do you mean by sending the libraries to /dev/null?

Offline

#14 2008-06-26 14:56:22

senjin
Member
Registered: 2006-09-15
Posts: 181
Website

Re: Too fast!

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

#15 2008-06-26 19:05:51

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Too fast!

^ 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

#16 2008-07-28 05:40:09

ilikenwf
Member
Registered: 2008-06-23
Posts: 42
Website

Re: Too fast!

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:

http://img257.imageshack.us/img257/7908 … entkf6.png

Offline

#17 2008-07-28 16:22:33

TigTex
Member
From: Portugal
Registered: 2008-06-19
Posts: 301

Re: Too fast!

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

Board footer

Powered by FluxBB