[PC-BSD Testing] Patch to test fast-booting

Lars Engels lars.engels at 0x20.net
Thu Jan 5 03:34:35 PST 2012


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
/etc/rc.d/dumpon /etc/rc.d/ddb /etc/rc.d/initrandom /etc/rc.d/geli
/etc/rc.d/gbde /etc/rc.d/encswap /etc/rc.d/ccd /etc/rc.d/swap1
/etc/rc.d/fsck /etc/rc.d/root /etc/rc.d/mdconfig /etc/rc.d/hostid_save
/etc/rc.d/mountcritlocal /etc/rc.d/zfs /etc/rc.d/FILESYSTEMS
/etc/rc.d/hostname /etc/rc.d/random /etc/rc.d/adjkerntz
/etc/rc.d/cleanvar /etc/rc.d/hostid /etc/rc.d/ldconfig /etc/rc.d/zfs
/etc/rc.d/zvol /etc/rc.d/cleartmp /usr/local/etc/rc.d/hald
/usr/local/etc/rc.d/dbus /usr/local/etc/rc.d/gdm 
Loading kernel modules:
Starting Network: lo0 vtnet0 em0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=c03ba<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,LINKSTATE>
	ether 08:00:27:ee:9a:99
	inet6 fe80::a00:27ff:feee:9a99%vtnet0 prefixlen 64 tentative scopeid 0x1 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	media: Ethernet 1000baseT <full-duplex>
	status: active
em0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
	ether 08:00:27:fe:19:28
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
Starting devd.
Starting Network: usbus0.
Starting Network: em0.
em0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
	ether 08:00:27:fe:19:28
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
Starting Network: usbus1.
Enabling pf.
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
add net fe80::: gateway ::1
add net ff02::: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
Additional ABI support: linux.
Starting vboxservice.
VBoxService: 4.0.14_OSE r74382 started. Verbose level = 0
Starting swapexd.
Starting local daemons:.
Updating motd:.
Starting Port Jail...
Loaded sound module: snd_ich.
Starting pbid...
Starting avahi-daemon.
Starting default moused.
Configuring syscons: keymap blanktime.
Starting denyhosts.
Starting cupsd.
Starting cron.
Starting background file system checks in 60 seconds.
Finished starting delayed services Thu Jan  5 12:28:10 CET 2012

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.pcbsd.org/pipermail/testing/attachments/20120105/be71ee3c/attachment.bin>


More information about the Testing mailing list