CVS commit: src

"Jason R Thorpe" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	thorpej
Date:		Thu Aug 20 14:43:32 UTC 2026

Modified Files:
	src/distrib/sets/lists/etc: mi
	src/etc: rc rc.subr
	src/etc/defaults: rc.conf
	src/etc/rc.d: Makefile
Added Files:
	src/etc/rc.d: rcorder_cache

Log Message:
Add an optional mechanism, enabled by setting rcorder_cache=YES in
/etc/rc.conf, to precompute and cache the list of rc.d scripts that
will actually result in useful boot-time work.  This cached list is
then consulted on subsequent boots to reduce the number of scripts
run during boot.  This can have a huge impact on boot time on machines
with slow CPUs and/or highly constrained I/O.  On the machine that
inspired this change, it reduced the number of scripts visited during
boot from 130 to 45 and reduced the boot time from 13 minutes to 7.

PR bin/60607


To generate a diff of this commit:
cvs rdiff -u -r1.278 -r1.279 src/distrib/sets/lists/etc/mi
cvs rdiff -u -r1.175 -r1.176 src/etc/rc
cvs rdiff -u -r1.111 -r1.112 src/etc/rc.subr
cvs rdiff -u -r1.169 -r1.170 src/etc/defaults/rc.conf
cvs rdiff -u -r1.119 -r1.120 src/etc/rc.d/Makefile
cvs rdiff -u -r0 -r1.1 src/etc/rc.d/rcorder_cache

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.