Kris Moore | 4 Jan 2012 23:58
Gravatar

Re: Patch to test fast-booting


Attached is another attempt at the fast-boot option to a GUI. As usual 
place both of these in /etc/rc, and make sure you have a copy of your 
original /etc/rc before doing so.

To enable the fast-boot, add this to /etc/rc.conf:
rcfastgui="YES"

Once you reboot, you can take a look at the log file 
/var/log/rc_delay.log to see what was started in delayed mode, and compare
the start / finish time to get an idea of how many seconds this saves on 
your system. On my netbook it saves 40 second, my desktop 18, so it may 
vary quite a bit :)

Please report back your results / feedback, or any bugs encountered :)

--

-- 
Kris Moore
PC-BSD Software
iXsystems

#!/bin/sh
#
# Copyright (c) 2000-2004  The FreeBSD Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
(Continue reading)

Lars Engels | 5 Jan 2012 12:34

Re: Patch to test fast-booting

On Wed, Jan 04, 2012 at 05:58:44PM -0500, Kris Moore wrote:
> 
> Attached is another attempt at the fast-boot option to a GUI. As usual 
> place both of these in /etc/rc, and make sure you have a copy of your 
> original /etc/rc before doing so.
> 
> To enable the fast-boot, add this to /etc/rc.conf:
> rcfastgui="YES"
> 
> Once you reboot, you can take a look at the log file 
> /var/log/rc_delay.log to see what was started in delayed mode, and compare
> the start / finish time to get an idea of how many seconds this saves on 
> your system. On my netbook it saves 40 second, my desktop 18, so it may 
> vary quite a bit :)
> 
> Please report back your results / feedback, or any bugs encountered :)

Seems to work nicely here.
Boot time before: ~ 1:12 min
Boot time after:  ~ 0:41 min

Measured from hitting "Enter" in the graphical boot loader to the appearance of
the login mask of gdm.

This is running an instance of VirtualBox on Windows. 
The content of the logfile:

> cat rc_delay.log 
Starting delayed services Thu Jan  5 12:27:38 CET 2012
Already done:  /etc/rc.d/sysctl /etc/rc.d/hostid /etc/rc.d/zvol
(Continue reading)


Gmane