You are not logged in.

#1 2009-11-13 08:24:12

corsakh
Member
Registered: 2009-11-08
Posts: 104

[SOLVED] Boot speed

Sup,

I have just installed the system. I heard that Arch is supposed to boot very quickly, but after installing just Gnome it was actually starting slower than fully bloated Ubuntu. I changed the daemons a little, and its now significantly faster but still over 30 seconds (Ubuntu on minimal install takes about 25 seconds on my machine).

This is the order I am using:

@gdm @syslog-ng @alsa @network hal @crond @fam

Its probably totally wrong. What can I improve and what are other effective methods to speed the boot up?

Last edited by corsakh (2009-11-15 06:31:26)

Offline

#2 2009-11-13 09:01:11

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: [SOLVED] Boot speed

http://wiki.archlinux.org/index.php/Cat … _(English)

Last edited by Duologic (2009-11-13 09:01:31)

Offline

#3 2009-11-13 11:37:14

Knives
Member
Registered: 2008-12-26
Posts: 25

Offline

#4 2009-11-13 12:10:22

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [SOLVED] Boot speed

A few thoughts from my end:
Remove gdm from daemons and don't background syslog-ng. Put dbus and then hal after syslog-ng. Remove fam and install gamin. If you want gdm to start automatically edit /etc/inittab and change to init5 and then x session at the bottom to gdm instead of xdm.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#5 2009-11-13 13:12:56

DarkVenger
Member
Registered: 2008-11-24
Posts: 35

Re: [SOLVED] Boot speed

I backup sHyLoCk thoughts with the minor change that, because HAL launches dbus you just need to put HAL and preferably right after syslog-ng

Offline

#6 2009-11-13 22:39:54

corsakh
Member
Registered: 2009-11-08
Posts: 104

Re: [SOLVED] Boot speed

Can I background hal?

Offline

#7 2009-11-13 23:45:31

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] Boot speed

corsakh wrote:

Can I background hal?

Usually: No. It is responsible for proper hardware setup and must have finished its work before othe modules can use the hardware.


To know or not to know ...
... the questions remain forever.

Offline

#8 2009-11-14 00:21:22

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [SOLVED] Boot speed

Check out the quick-init script in AUR


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#9 2009-11-14 13:09:16

corsakh
Member
Registered: 2009-11-08
Posts: 104

Re: [SOLVED] Boot speed

Ok, good news: I boot in 15 seconds big_smile
Bad news: Boot up crashes 3 out of 4 times big_smile

Ok, a little preamble. I have two disks, one with windows, one with arch. For some reason, different programs at different times may read them as different devices, ie one program would read disk 1 as sda, another would read it as sdb. So when I boot up and it checks the file systems, half the time it reads it correctly and half the time not - every time it does not read it correctly, I crash. So I changed fstab by UUID and it works great, no crashes. Now quick init for some reason does not like this UUID and at the end I receive a noswap message saying dev with this swap UUID can not be found. Ok, so I go to fstab and change UUID to /dev/ format, and the quick init works. But now I crash half the time when the file system is checked. And half the time at the end of the boot, before the graphical interface starts. So effectively I crash 75% of the time smile Can I use fstab with UUID and quick init at the same time? Should I replace /dev/ format with UUID= format in that paste fragment?

Offline

#10 2009-11-14 13:27:23

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [SOLVED] Boot speed

You must ask adriano. Come to the quick init discussion. But anyway it is no way related to Arch since its a 3rd party script.

Last edited by sHyLoCk (2009-11-14 13:27:44)


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#11 2009-11-14 15:06:58

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: [SOLVED] Boot speed

just curious
whats the most efficient order for my daemons ?

syslog-ng network netfs crond hal @alsa @sshd @httpd @fail2ban @mysqld @svnserve @cups

Last edited by murfMan (2009-11-14 15:07:15)

Offline

#12 2009-11-14 15:11:44

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [SOLVED] Boot speed

murfMan wrote:

just curious
whats the most efficient order for my daemons ?

syslog-ng network netfs crond hal @alsa @sshd @httpd @fail2ban @mysqld @svnserve @cups

Just a thought:

syslog-ng hal @crond @network @netfs @sshd @httpd @fail2ban @mysqld @svnserve @alsa @cups


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#13 2009-11-14 15:30:47

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: [SOLVED] Boot speed

oh god.  i tried the quick init script and it broke something sad
so i uninstalled, and replaced my original inittab. it and now i can't boot into runlevel5 anymore.
here is my inittab

# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)       Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >& /dev/null

# End of file

if i login on runlevel 3 and do startx ... everything starts normally .

Last edited by murfMan (2009-11-14 15:35:22)

Offline

#14 2009-11-14 15:34:24

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [SOLVED] Boot speed

murfMan wrote:

i tried the quick init script and it broke something sad
so i uninstalled, and replaced my original inittab. it and now i can't boot into runlevel5 anymore.
i have id:5:initdefault uncommented in inittab

Copy paste your inittab here.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#15 2009-11-14 15:35:44

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: [SOLVED] Boot speed

i edited my post above tongue


i tried to catch some of the output from the boot process but it was going too fast.  it said something like failed run level 5 reverting to run level 3
i don't know if this helps


is there a way to pause the output?

Last edited by murfMan (2009-11-14 15:40:43)

Offline

#16 2009-11-14 15:40:13

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [SOLVED] Boot speed

# Example lines for starting a login manager
x:5:respawn:/usr/bin/xdm -nodaemon

And who will change this line ? tongue


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#17 2009-11-14 15:41:40

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: [SOLVED] Boot speed

LOL

thanks man.

Offline

#18 2009-11-14 21:07:28

corsakh
Member
Registered: 2009-11-08
Posts: 104

Re: [SOLVED] Boot speed

I think its working fine now after setting normal partitions by UUID and spaw by /dev/ in fstab.

12 seconds, much better.

Last edited by corsakh (2009-11-14 21:08:11)

Offline

#19 2009-11-17 22:00:12

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: [SOLVED] Boot speed

12 seconds from grub to ??? (using bootchartd?)

please consider reading this post: http://bbs.archlinux.org/viewtopic.php? … 05#p657505

Offline

#20 2009-11-20 16:19:34

lustikus
Member
Registered: 2009-11-10
Posts: 262

Re: [SOLVED] Boot speed

Is it safe to background network?

I have a SSD drive and my boot process is very fast, the only thing that takes forever ist network. When I don't have my ethernet cable plugged and only wlan is up, it takes even longer.
I also have privoxy in my daemon list, so I'm not sure.

Offline

#21 2009-11-20 17:32:33

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] Boot speed

lustikus wrote:

Is it safe to background network?

I have a SSD drive and my boot process is very fast, the only thing that takes forever ist network. When I don't have my ethernet cable plugged and only wlan is up, it takes even longer.
I also have privoxy in my daemon list, so I'm not sure.

I avoided that issue by using netcfg and removing network from the daemon list altogether. See netcfg in the wiki for details.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

Board footer

Powered by FluxBB