[PATCH] vars.sh: remove unnecessary fork to speedup boot/upgrades

Thorsten Glaser t.glaser at tarent.de
Mon Aug 31 20:48:28 BST 2020


On Mon, 31 Aug 2020, Trek wrote:

> however reading from /proc/cmdline should be well tested in Debian, for

Indeed, this issue doesn’t affect /proc/cmdline… but on the other hand,
people like to copy/paste and therefore I’d prefer if files in Linux
procfs (other OS’ are okay) are not read other than by cat.

> right, reading one byte at time is slower than reading a memory page at
> once, but the clone+execve syscalls are even slower

True.

> the default shell, /bin/dash, does not have cat as builtin and this
> results in 10% more time needed to execute the script

Perhaps, but that’s not so relevant because Unix systems aren’t booted
all that often (unless using systemd…) and parallel booting is the
default anyway. I’d rather have some reliability.

bye,
//mirabilos
-- 
Sometimes they [people] care too much: pretty printers [and syntax highligh-
ting, d.A.] mechanically produce pretty output that accentuates irrelevant
detail in the program, which is as sensible as putting all the prepositions
in English text in bold font.	-- Rob Pike in "Notes on Programming in C"



More information about the Debian-init-diversity mailing list