diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-04-28 05:53:53 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-04-28 05:53:53 +0000 |
| commit | affccf34a5fa6571d5e08908364e817abcef6fe1 (patch) | |
| tree | 889f59406cdd543a89cb0301900350cd65976767 /doc | |
| parent | 2106106e8f0aa882a10f224c01847b3144c74b79 (diff) | |
| download | mdevd-affccf34a5fa6571d5e08908364e817abcef6fe1.tar.gz | |
Move to new system
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/index.html | 10 | ||||
| -rw-r--r-- | doc/upgrade.html | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/index.html b/doc/index.html index ffa184f..4743ca0 100644 --- a/doc/index.html +++ b/doc/index.html @@ -59,8 +59,8 @@ uncontrollable log file growth). By contrast, mdevd logs to stderr and its messages can be handled by any log infrastructure such as the one provided by a supervision suite. </li> <li> Better memory efficiency: <tt>mdev -d</tt> uses its own environment -(via <a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/putenv.html">putenv()</a> -and <a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/unsetenv.html">unsetenv()</a>) +(via <a href="https://pubs.opengroup.org/onlinepubs/9799919799/functions/putenv.html">putenv()</a> +and <a href="https://pubs.opengroup.org/onlinepubs/9799919799/functions/unsetenv.html">unsetenv()</a>) to store uevent data for each event. This implies repeated allocations of heap memory. By contrast, mdevd does not use its own environment - it only uses heap memory to compile its regular expressions, which only happens @@ -69,14 +69,14 @@ memory it uses is committed in the stack, and it will never require more. mdevd cannot fail due to lack of memory while it is processing events. </li> <li> Better speed: <tt>mdev -d</tt> parses its config file for every event it receives, and has to perform expensive operations such as -<a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpwnam.html">getpwnam()</a> +<a href="https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpwnam.html">getpwnam()</a> every time it receives an event (which can add up to hundreds of times at boot!). By contrast, mdevd only parses its config file when it starts - or when it is told to read it again by a SIGHUP; the event processing is streamlined, it does not involve any parsing or any kind of expensive operation - so it is significantly faster. Additionally, unlike mdev, mdevd does not fork its helper scripts — it uses -<a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawn.html">posix_spawn</a> +<a href="https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_spawn.html">posix_spawn</a> instead, which is a lot faster. </li> <li> Independence from busybox: <tt>mdev</tt> is part of the <a href="https://busybox.net/">busybox</a> software. It is an advantage @@ -106,7 +106,7 @@ The Linux kernel must be 2.6.10 or later. </li> requirement if you link against the shared version of the skalibs library. </li> <li> Optionally: <a href="//skarnet.org/software/execline/">nsss</a> -version 0.2.0.6 or later. It's a build-time and run-time requirement, if +version 0.2.1.0 or later. It's a build-time and run-time requirement, if you use the <tt>--enable-nsss</tt> option to configure; but you would only do that if you're replacing nsswitch on your whole system, and most people are not. </li> diff --git a/doc/upgrade.html b/doc/upgrade.html index 1ef4bf7..3cb49a5 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -24,7 +24,7 @@ <li> <a href="//skarnet.org/software/skalibs/">skalibs</a> dependency bumped to 2.14.4.0. </li> <li> <a href="//skarnet.org/software/nsss/">nsss</a> -optional dependency bumped to 0.2.0.6. </li> +optional dependency bumped to 0.2.1.0. </li> <li> <a href="//skarnet.org/software/execline/">execline</a> optional dependency bumped to 2.9.7.0. </li> </ul> |
