Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.netbsd.tech.userlevel > #11847

Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result

From "Simon J. Gerraty" <sjg@crufty.net>
Newsgroups muc.lists.netbsd.tech.userlevel
Subject Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result
Date 2026-08-19 14:07 -0700
Organization Newsgate at muc.de e.V.
Message-ID <34935.1787173643@beast.crufty.net> (permalink)
References <> <aoUyNv1xQN3sl7EZ@netbsd.org>

Show all headers | View raw


On Wed, 19 Aug 2026 04:33:58 +0000, David Holland writes:
>On Tue, Aug 18, 2026 at 09:51:44AM -0400, Mouse wrote:
> > > - the barrier scripts (e.g. LOGIN)
> > 
> > > The barrier scripts are needed only for ordering, [...]
> > 
> > If this really bothers someone, perhaps there could be a way for a
> > script to declare itself a barrier script?  Perhaps something a la
> > make's .PHONY, perhaps a naming convention, perhaps something else.
>
>Is there any reason for the barrier scripts to physically exist?

Can they do their job otherwise?

A possibly extreme example (perhaps only relevant as FreeBSD borrowed
rc.subr et al from NetBSD), in Junos we have to run rcorder a few times
during boot.  The software is provided via packages which contain
filesystem images which must be verified and mounted.  An /etc/rc.d/*
script does not exist until its package has been mounted.

When the system first boots the kernel's rootfs mounts only a core
runtime and libs packages, so only a small subset of /etc/rc.d/* can be
considered when rcorder is first run.
The barrier EARLY appears after the rc.d script which mounts the bulk of
the core packages, so rcorder needs to be recomputed at that point.
There are two other barriers LATE and LATER which also cause rcorder to
need to be recomputed.

Anyway; I favor leaving the barriers alone ;-)


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.netbsd.tech.userlevel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-17 21:46 -0700
  Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Edgar Fuß <ef@math.uni-bonn.de> - 2026-08-18 11:07 +0200
    Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-18 06:07 -0700
  Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Greg Troxel <gdt@lexort.com> - 2026-08-18 06:41 -0400
    Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-18 06:44 -0700
      Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Mouse <mouse@Rodents-Montreal.ORG> - 2026-08-18 09:51 -0400
        Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-18 06:58 -0700
        Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result David Holland <dholland-tech@netbsd.org> - 2026-08-19 04:33 +0000
          barrier scripts (was: Improving the performance of system boot by eliding unused rc.d scripts and caching the result) Edgar Fuß <ef@math.uni-bonn.de> - 2026-08-19 11:20 +0200
          Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Greg Troxel <gdt@lexort.com> - 2026-08-19 06:43 -0400
            Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-19 06:16 -0700
            Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result David Holland <dholland-tech@netbsd.org> - 2026-08-20 16:03 +0000
              Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Greg Troxel <gdt@lexort.com> - 2026-08-20 12:35 -0400
                Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-20 09:51 -0700
                Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result David Holland <dholland-tech@netbsd.org> - 2026-08-20 21:09 +0000
          Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result "Simon J. Gerraty" <sjg@crufty.net> - 2026-08-19 14:07 -0700
      Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Greg Troxel <gdt@lexort.com> - 2026-08-19 07:07 -0400
        Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-19 08:47 -0700
          Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Robert Elz <kre@munnari.OZ.AU> - 2026-08-20 10:43 +0700
            Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-19 23:27 -0700
              Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Robert Elz <kre@munnari.OZ.AU> - 2026-08-21 04:37 +0700
            Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Edgar Fuß <ef@math.uni-bonn.de> - 2026-08-20 10:12 +0200
              Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-20 06:40 -0700
            Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Valery Ushakov <uwe@stderr.spb.ru> - 2026-08-20 12:38 +0300
              Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Robert Elz <kre@munnari.OZ.AU> - 2026-08-21 02:17 +0700
    Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Martin Neitzel <neitzel@hackett.marshlabs.gaertner.de> - 2026-08-21 01:38 +0200
  Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Robert Elz <kre@munnari.OZ.AU> - 2026-08-19 02:07 +0700
    "good" editors [was Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result] Mouse <mouse@Rodents-Montreal.ORG> - 2026-08-18 15:19 -0400
    Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Jason Thorpe <thorpej@me.com> - 2026-08-18 14:24 -0700
      Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result Robert Elz <kre@munnari.OZ.AU> - 2026-08-19 08:08 +0700
        shell quoting (was: Improving the performance of system boot by eliding unused rc.d scripts and caching the result) Edgar Fuß <ef@math.uni-bonn.de> - 2026-08-19 11:17 +0200
          Re: shell quoting (was: Improving the performance of system boot by eliding unused rc.d scripts and caching the result) David Holland <dholland-tech@netbsd.org> - 2026-08-20 16:16 +0000
            Re: shell quoting (was: Improving the performance of system boot by eliding unused rc.d scripts and caching the result) Ken Hornstein <kenh@pobox.com> - 2026-08-20 12:36 -0400
          Re: shell quoting (was: Improving the performance of system boot by eliding unused rc.d scripts and caching the result) Robert Elz <kre@munnari.OZ.AU> - 2026-08-21 12:37 +0700
            Re: shell quoting Jarle Greipsland <jarle.greipsland@norid.no> - 2026-09-09 08:36 +0200
              Re: shell quoting Edgar Fuß <ef@math.uni-bonn.de> - 2026-09-09 10:28 +0200
                Re: shell quoting Robert Elz <kre@munnari.OZ.AU> - 2026-09-09 18:42 +0700
                Re: shell quoting Edgar Fuß <ef@math.uni-bonn.de> - 2026-09-09 14:42 +0200
                Re: shell quoting kre@munnari.OZ.AU - 2026-09-09 20:03 +0700
                Re: shell quoting Robert Elz <kre@munnari.OZ.AU> - 2026-09-09 20:21 +0700
              Re: shell quoting Robert Elz <kre@munnari.OZ.AU> - 2026-09-09 18:36 +0700
                Re: shell quoting Edgar Fuß <ef@math.uni-bonn.de> - 2026-09-09 17:28 +0200
                Re: shell quoting Edgar Fuß <ef@math.uni-bonn.de> - 2026-09-09 17:31 +0200
                Re: shell quoting Robert Elz <kre@munnari.OZ.AU> - 2026-09-10 08:12 +0700
                Re: shell quoting Mouse <mouse@Rodents-Montreal.ORG> - 2026-09-09 21:38 -0400
                Re: shell quoting Robert Elz <kre@munnari.OZ.AU> - 2026-09-10 10:10 +0700
                Re: shell quoting Jarle Greipsland <jarle.greipsland@norid.no> - 2026-09-09 18:56 +0200
                Re: shell quoting Robert Elz <kre@munnari.OZ.AU> - 2026-09-10 08:51 +0700

csiph-web