You are not logged in.
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.
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
Last edited by adriano (2009-05-07 20:19:37)
Italian ArchLinux User
My projects on my homepage: www.obliquo.net
Offline
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=251592 - 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
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
I wrote 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
I took the time manually
It is impossible to make really bootchart with Xorg-server loaded, becouse X starts in background before the daemons.
EDIT: bootchart lyar
Without grey area I'm just on desktop
Last edited by adriano (2009-05-06 17:52:43)
Italian ArchLinux User
My projects on my homepage: www.obliquo.net
Offline
Tested it right now. I've managed to go down from 26s to 14s while booting to text console
But when booting to GDM (tested with watch, not bootchart ) the difference isn't big - 34s with Finit, 39s without
(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
Written list of known errors in the first topic
I will work for hardware clock
Italian ArchLinux User
My projects on my homepage: www.obliquo.net
Offline
ohhhhhhhh yeaah |-.-|
yet another kernel panic
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
takedown can you post your fstab?
Italian ArchLinux User
My projects on my homepage: www.obliquo.net
Offline
edited the first topic
Offline
Has this been tested with lvm and/or encryption? I am guessing, since it replaces init, that those won't work with this.
Offline
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
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
So is this a rewrite of arch rc.sysinit and init in c?
Offline
yes Zariel
Italian ArchLinux User
My projects on my homepage: www.obliquo.net
Offline
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
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
I'm using glibc 2.9-4 and it works fine ...mmm
Italian ArchLinux User
My projects on my homepage: www.obliquo.net
Offline
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
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
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 "
Offline
Didn't noticed it earlier - I will try it
Proud ex-maintainer of firefox-pgo
Offline
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
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
My latest bootchart. You can't see udev and daemons becouse they start after bootchart logging, but this not causes any problem.
Last edited by adriano (2009-05-07 14:09:54)
Italian ArchLinux User
My projects on my homepage: www.obliquo.net
Offline
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 "
Offline
Wow! Perhaps if you can get encryption and lvm supported, then this will be revolutionary!
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
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)
//github/
Offline
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