rcorder(8) with concurrent execution of rc-scripts
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with kil:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README
current.diff
ealloc.c
ealloc.h
hash.c
hash.h
rc.diff
rc.trampoline
rcorder.8
rcorder.c
sprite.h
test.sh
upsecs.c

README

rcorder(8) with concurrent rc-script execution
==============================================

Testing
=======
If you build rcorder with -DDEBUG (default), you can test that it works
correctly by running rcorder with the -d flag (it will not actually execute
any rc scripts with -d):

./rcorder -d -T ./rc.trampoline -r -s nostart /etc/rc.d/* /usr/local/etc/rc.d/*

A complete patch against current is in current.diff


Install
=======
1. Build this rcorder
2. Make sure it works (see Testing)
3. install new manpage (optional)
4. cp rc.trampoline /etc/rc.trampoline
5. chmod 555 /etc/rc.trampoline
6. Install rcorder to /sbin
7. Patch /etc/rc


Time spend in /etc/rc
=====================
The values below are "time before exit" minus "time of start" (the utility
used to get the time is included as upsecs.c):

My computer:

x concurrent_rcorder
+ traditional
+------------------------------------------------------------+
| x   x                                          +       ++  |
||MA_|                                           |_____A_M__||
+------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x   3     12.407667     12.719797      12.42672     12.518061    0.17496775
+   3     16.151403     16.935099     16.817023     16.634508     0.4225264
Difference at 95.0% confidence
	4.11645 +/- 0.732959
	32.8841% +/- 5.85521%
	(Student's t, pooled s = 0.323375)


1 core VirtualBox, default 8.2 install
dhcp, sshd:

x traditional
+ concurrent
+------------------------------------------------------------+
|x   x  x                                          +    ++  +|
| |__A__|                                           |___AM__||
+------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x   4      2.257153      2.301959      2.280774     2.2799435   0.018301019
+   4       2.56839      2.625687      2.605807     2.6001423   0.023756568
Difference at 95.0% confidence
	0.320199 +/- 0.0366908
	14.0442% +/- 1.60928%
	(Student's t, pooled s = 0.021205)


1 core VirtualBox, default 8.2 install
dhcp, sshd, moused, ftpd, inetd, ntpd:
x traditional
+ concurrent
+------------------------------------------------------------+
|+              +   +    x                          x x      |
| |_________A___M_____|     |_______________A_______M_______||
+------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x   3      2.593638      2.717906      2.709764     2.6737693   0.069515077
+   3      2.489138      2.569741      2.553724     2.5375343   0.042670715
Difference at 95.0% confidence
	-0.136235 +/- 0.130729
	-5.09524% +/- 4.88932%
	(Student's t, pooled s = 0.0576764)


2 core VirtualBox, default 8.2 install
dhcp, sshd, moused, ftpd, inetd, ntpd:

x traditional
+ concurrent
+------------------------------------------------------------+
|  + +            +                            x  x         x|
||___M___A_______|                           |____M_A______| |
+------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x   3      3.168023       3.49342      3.232705     3.2980493    0.17225915
+   3      2.067178      2.442309      2.115453     2.2083133    0.20407866
Difference at 95.0% confidence
	-1.08974 +/- 0.428024
	-33.0418% +/- 12.9781%
	(Student's t, pooled s = 0.18884)