[systemd-devel] experiments with 'minimal build'
arvidjaar at gmail.com
Thu Mar 19 11:01:00 PDT 2015
В Thu, 19 Mar 2015 08:39:18 -0700
Alison Chaiken <alison at she-devel.com> пишет:
> I ran systemd 219 with most recent patches and
> -PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP
> -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS
> +KMOD -IDN
> and, to compare, with
> +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP
> +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS
> +KMOD +IDN
> Checking memory RSS usage with 'sudo pmap -x -p 1' as suggested by
> Mantas, the former case uses about 5 MB, while the later consumes
> close to 9 MB. I'm sure that with statically compiled kernel and
> appropriate fstab that KMOD and BLKID are not needed either, but I
> doubt that they affect memory usage much.
> http://freedesktop.org/wiki/Software/systemd/MinimalBuilds/ says that
> the minimum requirements are udev and journald. I wonder if udev is
> really needed if the kernel is completely statically compiled and
> module loading is disabled? That is a common use case for many
> embedded devices.
Systemd enumerates devices using udev, so any dependency on device
won't work. May be it is not that important for embedded world, just
something to keep in mind.
More information about the systemd-devel