You are not logged in.

#1 2009-05-06 16:54:55

adriano
Member
From: Italy
Registered: 2008-07-29
Posts: 129
Website

Finit-ARC: boot your system in 4 seconds

Hi people! I present the reimplementation of FAST-INIT for Archlinux.
Fast-init is an original init system written in C from Xandros Linux. I did a reimplementation of fast-init and I called it FINIT-ARC.
Finit-arc can works with all computers and all filesystem types. With it and static kernel I can boot my system in about 3,5 seconds from grub to console login.
X for me take only 5 seconds. Then in 8 seconds I'm fully operative on my desktop.

bootchartd.png

Installation
Actually finit-arc it's in BETA version and it is present in AUR.
1 - http://aur.archlinux.org/packages.php?ID=25159

FOR TESTERS finit-arc-git is avaiable on AUR
http://aur.archlinux.org/packages.php?ID=26314


2 - Insert init=/sbin/finit-arc as kernel parameter in /boot/grub/menu.lst

3 - After installation you must do a boot with traditional init system of Archlinux, and after you can boot with finit-arc. The first boot could be slow.

Important!
Finit-arc doesn't support UUIDs. Then you must replace UUIDs with /dev/sdx devices in /boot/grub/menu.lst and /etc/fstab.


Known Problems
1) Error width pcspkr on kernel -ARCH
do !pcspkr into MODULES of rc.conf

2) Wrong clock time

3) DBUS or other daemon don't start
Before start finit-arc you must do a boot with traditional Archlinux init system

4) Fam and portmap don't stop
You can use GAMIN instead fam

5) Network doesn't work
Insert into MODULES your ethernet module in the first position. Insert into DAEMONS your network daemon (network or net-profiles) in the latest position.



Logging finit-arc with bootchart
Edit /sbin/bootchartd and replace the line init="/sbin/init" with init="/sbin/finit-arc"
Add on your kernel line init=/sbin/bootchartd as parameter (remove init=/sbin/finit-arc)

Bug reports and testers are welcome smile

Last edited by adriano (2009-05-07 20:19:37)


Italian ArchLinux User
My projects on my homepage: www.obliquo.net

Offline

#2 2009-05-06 17:29:11

markp1989
Member
Registered: 2008-10-05
Posts: 431

Re: Finit-ARC: boot your system in 4 seconds

adriano wrote:

Hi people! I present the reimplementation of FAST-INIT for Archlinux.
Fast-init is an original init system written in C from Xandros Linux. I did a reimplementation of fast-init and I called it FINIT-ARC.
Finit-arc can works with all computers and all filesystem types. With it and static kernel I can boot my system in about 3,5 seconds from grub to console login.

http://adrinux.wordpress.com/files/2009 … chartd.png

Installation
Actually finit-arc it's in BETA version and it is present in AUR.
1 - http://aur.archlinux.org/packages.php?ID=25159

2 - Insert init=/sbin/finit-arc as kernel parameter in /boot/grub/menu.lst

3 - After installation you must do a boot with traditional init system of Archlinux, and after you can boot with finit-arc. The first boot could be slow.

Important!
Finit-arc doesn't support UUIDs. Then you must replace UUIDs with /dev/sdx devices in /boot/grub/menu.lst and /etc/fstab.

Logging finit-arc with bootchart
Edit /sbin/bootchartd and replace the line init="/sbin/init" with init="/sbin/finit-arc"


Add on your kernel line init=/sbin/bootchartd as parameter (remove init=/sbin/finit-arc)

Bug reports and testers are welcome smile

that bootchart doesnt really mean anything, because X isnt on it. for all i know, X may take 50 sec before it starts. 

can you delay bootchart stoping, so we can see more information?

Thanks Markp1989

Last edited by markp1989 (2009-05-06 17:30:09)


Desktop: E8400@4ghz - DFI Lanparty JR P45-T2RS - 4gb ddr2 800 - 30gb OCZ Vertex - Geforce 8800 GTS - 2*19" LCD
Server/Media Zotac GeForce 9300-ITX I-E - E5200 - 4gb Ram - 2* ecogreen F2 1.5tb - 1* wd green 500gb - PicoPSU 150xt - rtorrent - xbmc - ipazzport remote - 42" LCD

Offline

#3 2009-05-06 17:35:12

adriano
Member
From: Italy
Registered: 2008-07-29
Posts: 129
Website

Re: Finit-ARC: boot your system in 4 seconds

I wrote 3,5 seconds from grub to console login wink
X for me take only 5 seconds. Then in 8 seconds I'm fully operative on my desktop smile
I took the time manually wink
It is impossible to make really bootchart with Xorg-server loaded, becouse X starts in background before the daemons.

EDIT: bootchart lyar smile
Without grey area I'm just on desktop


bootcharti.png

Last edited by adriano (2009-05-06 17:52:43)


Italian ArchLinux User
My projects on my homepage: www.obliquo.net

Offline

#4 2009-05-06 18:00:06

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Finit-ARC: boot your system in 4 seconds

Tested it right now. I've managed to go down from 26s to 14s while booting to text console smile
But when booting to GDM (tested with watch, not bootchart tongue ) the difference isn't big - 34s with Finit, 39s without wink (ps. Bootchard with 0.14 startup times has xorg and gdm process on it, but it display nothing but blank screen til 34th second...)

BTW. I've encountered strange problem - every startup with finit make time on my laptop change by +2 hours...

Last edited by blasse (2009-05-06 18:04:03)


Proud ex-maintainer of firefox-pgo

Offline

#5 2009-05-06 18:08:50

adriano
Member
From: Italy
Registered: 2008-07-29
Posts: 129
Website

Re: Finit-ARC: boot your system in 4 seconds

Written list of known errors in the first topic wink
I will work for hardware clock


Italian ArchLinux User
My projects on my homepage: www.obliquo.net

Offline

#6 2009-05-06 18:46:02

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: Finit-ARC: boot your system in 4 seconds

ohhhhhhhh yeaah |-.-|
yet another kernel panic big_smile

Kinit: Mounted root (ext4 filesystem) read only
Finit-ARC - beta 0.2
finit-arc[1] general protection ip:7fd5a36c0706 sp: 7fffabbb67e8 error:0 in libc-2.9.50[7fd5a3646000+14a000]
kernel panic - not syncing: Attempted to kill init!

I install via yaourt finit-arc, after modified my /boot/grub/menu.lst adding the second entry like this:

# (0) Arch Linux
title  Arch Linux
root   (hd0,6)
kernel /vmlinuz26 root=/dev/disk/by-uuid/a20131af-7d82-4b29-b0b8-6d23022659c6 ro vga=795
initrd /kernel26.img

# (1) Arch Linux without UUID
title  Arch Linux with FINIT-ARC
root   (hd0,6)
kernel /vmlinuz26 root=/dev/sda9 ro init=/sbin/finit-arc vga=795
initrd /kernel26.img

Entry 0 for my normal boot, and entry 1 for finit-arc.

Next delete all UUID from menu.lst and fstab:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/sda9    /              ext4      defaults 0 1
/dev/sda10   /home          ext4      defaults 0 1
/dev/sda7    /boot          ext2      defaults 0 1
/dev/sda8    swap           swap      defaults 0 0
/dev/sda6    /mnt/data      ext4      defaults 0 2

# USB en virtualbox
none /proc/bus/usb usbfs auto,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0

and editing /etc/finittab to start kdm:

#Command that you want execute after boot
#uncomment it for X login
#you must set YOURUSERNAME

#level:/bin/su YOURUSERNAME -l -c "/bin/bash --login -c xinit >/dev/null 2>&1"
#level:/usr/sbin/gdm --nodaemon
#level:/usr/bin/xdm -nodaemon
level:/usr/bin/kdm -nodaemon
#level:/usr/bin/slim

After all, reboot my system with the entry 0 from grub and after reboot with entry 1...

Sorry to repeat, but excuse my poor English

Last edited by takedown (2009-05-06 19:04:15)

Offline

#7 2009-05-06 18:47:37

adriano
Member
From: Italy
Registered: 2008-07-29
Posts: 129
Website

Re: Finit-ARC: boot your system in 4 seconds

takedown can you post your fstab?


Italian ArchLinux User
My projects on my homepage: www.obliquo.net

Offline

#8 2009-05-06 19:04:32

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: Finit-ARC: boot your system in 4 seconds

edited the first topic

Offline

#9 2009-05-06 19:23:23

smartboyathome
Member
From: $HOME
Registered: 2007-12-23
Posts: 334
Website

Re: Finit-ARC: boot your system in 4 seconds

Has this been tested with lvm and/or encryption? I am guessing, since it replaces init, that those won't work with this. sad

Offline

#10 2009-05-06 19:44:51

adriano
Member
From: Italy
Registered: 2008-07-29
Posts: 129
Website

Re: Finit-ARC: boot your system in 4 seconds

lvm it is not supported for now

Last edited by adriano (2009-05-06 19:45:14)


Italian ArchLinux User
My projects on my homepage: www.obliquo.net

Offline

#11 2009-05-06 21:49:31

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: Finit-ARC: boot your system in 4 seconds

Wow. This program is amazing.

One little problem though. When I get to X, the first virtual terminal is still the boot-up text.
Any way to change it back to a virtual terminal?

Offline

#12 2009-05-06 22:07:01

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: Finit-ARC: boot your system in 4 seconds

So is this a rewrite of arch rc.sysinit and init in c?

Offline

#13 2009-05-06 23:01:26

adriano
Member
From: Italy
Registered: 2008-07-29
Posts: 129
Website

Re: Finit-ARC: boot your system in 4 seconds

yes Zariel smile


Italian ArchLinux User
My projects on my homepage: www.obliquo.net

Offline

#14 2009-05-07 00:29:45

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: Finit-ARC: boot your system in 4 seconds

Sweet!  I'm a bit of a boot time freak, so this is awesome.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#15 2009-05-07 00:30:42

msdark
Member
From: Chile
Registered: 2008-08-17
Posts: 49
Website

Re: Finit-ARC: boot your system in 4 seconds

i'm still hava a segfault in the startup... the problem is with libc.
I comment this in the other thread.

I have glibc 2.9-4


www.msdarkici.wordpress.com (Spanish) All what i Do in the linux world!!!
Arch User... Feel Free... Feel Speed....

Offline

#16 2009-05-07 00:37:40

adriano
Member
From: Italy
Registered: 2008-07-29
Posts: 129
Website

Re: Finit-ARC: boot your system in 4 seconds

I'm using glibc 2.9-4 and it works fine ...mmm


Italian ArchLinux User
My projects on my homepage: www.obliquo.net

Offline

#17 2009-05-07 00:40:10

capnmoney
Member
From: ~
Registered: 2008-10-17
Posts: 108
Website

Re: Finit-ARC: boot your system in 4 seconds

My system booted so fast I travelled 2 hrs into the future!  Seriously though, this is awesome, thanks for all your work.  Are you doing anything else to get your boot time so low?  I've done a few obvious things like backgrounding most of my daemons, but I'm no where near 4 seconds.

Offline

#18 2009-05-07 02:04:25

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: Finit-ARC: boot your system in 4 seconds

msdark wrote:

i'm still hava a segfault in the startup... the problem is with libc.
I comment this in the other thread.

I have glibc 2.9-4

same problem...
http://bbs.archlinux.org/viewtopic.php? … 20#p549020

Offline

#19 2009-05-07 07:34:14

lejonet
Member
Registered: 2008-10-27
Posts: 80

Re: Finit-ARC: boot your system in 4 seconds

I have tested it and I got my boot-time down from 38s down to 12-10s (bootchart time) and to fully functional Xfce its more like 15s, but still its a vaste improvement over the 45s it took to xfce before.

@blasse
Have you tried adding sleep 3 to ur entry in finittab? Like it said in the other thread, you might have to delay the start of ur login manager (for me level:sleep 1.5 && /usr/bin/slim >& /dev/null worked, but you'll have to test which sleep value works best for you)

Last edited by lejonet (2009-05-07 07:35:11)


Like I say everytime someone looks at me in a weird way "Hey, im a computer technician, I am allowed to open up everything I can and take a peek inside tongue"

Offline

#20 2009-05-07 08:29:15

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Finit-ARC: boot your system in 4 seconds

Didn't noticed it earlier - I will try it smile


Proud ex-maintainer of firefox-pgo

Offline

#21 2009-05-07 14:00:38

adriano
Member
From: Italy
Registered: 2008-07-29
Posts: 129
Website

Re: Finit-ARC: boot your system in 4 seconds

Hi people. I'm working to start X fastest, then I'm revolutionizing FINIT-ARC for this reason.

Udev, udevadm, swapon and daemons will start after Xorg in background. The solution it isn't the parallel processes but asyncronous processes wink

Now without patch Xserver, Udev, or HAL. (the intel engineers patched this apps in moblin for startX fast)

I'm in 10 seconds from grub to X without any patch, only with FINIT-ARC. This feature will be present in the next 0.3 BETA version that I will publish. I'm working on it currently smile

My latest bootchart. You can't see udev and daemons becouse they start after bootchart logging, but this not causes any problem.

bootchart.png

Last edited by adriano (2009-05-07 14:09:54)


Italian ArchLinux User
My projects on my homepage: www.obliquo.net

Offline

#22 2009-05-07 14:15:15

lejonet
Member
Registered: 2008-10-27
Posts: 80

Re: Finit-ARC: boot your system in 4 seconds

Cool, nice that ur making progress with finit-arc, just give me a shout if you need a beta-tester, me and my trusty eee 901 is willing to help ^^


Like I say everytime someone looks at me in a weird way "Hey, im a computer technician, I am allowed to open up everything I can and take a peek inside tongue"

Offline

#23 2009-05-07 16:25:00

smartboyathome
Member
From: $HOME
Registered: 2007-12-23
Posts: 334
Website

Re: Finit-ARC: boot your system in 4 seconds

Wow! Perhaps if you can get encryption and lvm supported, then this will be revolutionary! big_smile

How hard would it be to get encryption and LVM support for this? Would it even be possible?

Last edited by smartboyathome (2009-05-07 16:25:32)

Offline

#24 2009-05-07 16:35:43

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Finit-ARC: boot your system in 4 seconds

hey, new version fixed it so i don't need the sleep command in /etc/finittab anymore which is awesome.  however something's buggy with acpid (i think).  either way, battery information is not being reported correctly (both to conky and the eee hardware)

i started getting all the bells and whistles of a dead battery after about 5 minutes of use (conky showed 0%, red led on eee pc started blinking).  i left it like that for another half hour then shutdown to go to bed.

i have to test this further this weekend.

eee pc 900
using apic-eeepc-generic from aur
using the latest finit-arc aur version

edit: oh also, if i do a normal boot after a finit-arc shutdown i get "mount time in future.. FIXED" and other filesystem errors at boot and sometimes a reboot is forced.  just an FYI.

Last edited by brisbin33 (2009-05-07 16:56:32)

Offline

#25 2009-05-07 16:48:25

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

Re: Finit-ARC: boot your system in 4 seconds

yikes impressive... I'm out of comments

My sistem booted realy fast. I usualy tweak rc.sysinit... but this.... wow.

I use a pen drive to boot into diferent pc's models... is this going to give me any trouble?
-> at least, I have 1 problem. Since network modules have to be manualy added, I cant get network automatically configured in every computer. (without finit, works fine).

I would like to know more about this code. What does it do? Is is possible to configure? etc etc (reading sources now)

Last edited by TigTex (2009-05-07 17:10:52)


.::. TigTex @ Portugal .::.

Offline

Board footer

Powered by FluxBB