Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-25 Thread joris dedieu
2011/8/24 Vitaly Magerya vmage...@gmail.com: the idea to start services concurrently during boot isn't new and the question why FreeBSD doesn't do it has popped up on the forum and mailing list occasionally. So, why not give it a shot? As someone who uses FreeBSD on hist laptop and is

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-24 Thread Vitaly Magerya
the idea to start services concurrently during boot isn't new and the question why FreeBSD doesn't do it has popped up on the forum and mailing list occasionally. So, why not give it a shot? As someone who uses FreeBSD on hist laptop and is constantly annoyed by the lack of suspend-to-disk,

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-24 Thread Dirk-Willem van Gulik
On 24 Aug 2011, at 10:08, Vitaly Magerya wrote: One thing to try is to attach a diagnostics feature that will produce data about rc script dependencies and execution times, which can be used to visualize which scripts take most time, and how to reorganize dependencies to improve boot time

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-24 Thread Buganini
rcexecr generate time table like this: # env ARG0=\? ARG1=start rcexecr /etc/rc.d/* 1 beg /etc/rc.d/dhclient start 1 beg /etc/rc.d/rctl start 1 beg /etc/rc.d/natd start 1 beg /etc/rc.d/ugidfw start 1 beg /etc/rc.d/sysctl start 2 end

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-24 Thread Buganini
Further optimization in rc.d: splitting non-networking DAEMON (eg. moused) Critical issue in rcexecr: stop_boot (in /etc/rc.subr) doesn't stop rcexecr it might need a check before involving /usr/local/etc/rc.d/*, or just kill child processes? --Buganini

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-23 Thread kilian
On Sun, Aug 21, 2011 at 02:54:15PM +0100, Chris Rees wrote: On 21 Aug 2011 13:39, kilian kkli...@uos.de wrote: Hello, the idea to start services concurrently during boot isn't new and the question why FreeBSD doesn't do it has popped up on the forum and mailing list occasionally. So,

Concurrent execution of rc-scripts with rcorder(8)

2011-08-21 Thread kilian
Hello, the idea to start services concurrently during boot isn't new and the question why FreeBSD doesn't do it has popped up on the forum and mailing list occasionally. So, why not give it a shot? rcorder(8) is normally used during boot to bring the rc-scripts into a particular order, so when

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-21 Thread Vitaly Magerya
I haven't done any measurements yet on how large the speedup is, but booting feels a bit faster with it. FWIW, my laptop's boot time (from pressing power to seeing login prompt) is reduced from 44s to 37s (out of which, first 20-25s are kernel booting).

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-21 Thread Buganini
Here is another approach: https://github.com/buganini/rcexecr -- Buganini ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-21 Thread Chris Rees
*** Sorry, emailed from wrong address and it bounced from hackers ***: I might suggest moving this to rc@. I'll try it later, looks interesting. Chris ___ freebsd-hackers@freebsd.org mailing list

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-21 Thread joris dedieu
2011/8/21 kilian kkli...@uos.de: Hello, the idea to start services concurrently during boot isn't new and the question why FreeBSD doesn't do it has popped up on the forum and mailing list occasionally. So, why not give it a shot? rcorder(8) is normally used during boot to bring the

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-21 Thread kilian
On Sun, Aug 21, 2011 at 04:18:10PM +0200, joris dedieu wrote: 2011/8/21 kilian kkli...@uos.de: Hello, the idea to start services concurrently during boot isn't new and the question why FreeBSD doesn't do it has popped up on the forum and mailing list occasionally. So, why not give it a

Re: Concurrent execution of rc-scripts with rcorder(8)

2011-08-21 Thread kilian
On Sun, Aug 21, 2011 at 04:14:02PM +0300, Vitaly Magerya wrote: I haven't done any measurements yet on how large the speedup is, but booting feels a bit faster with it. FWIW, my laptop's boot time (from pressing power to seeing login prompt) is reduced from 44s to 37s (out of which, first