SlideShare ist ein Scribd-Unternehmen logo
1 von 58
Downloaden Sie, um offline zu lesen
Tuning systemd for Embedded
Alison Chaiken
alison_chaiken@mentor.com
Mar. 23, 2015
Latest version: http://she-devel.com/ELC_systemd.pdf
Auxiliary files: http://she-devel.com/ELC_auxiliary.tar.bz2
Text in blue is hyperlinked.
Quiz: 
what is the most widely 
used
Linux init system?
?
?
?
?
?? ??
?
Linux needs to keep innovating
LicensedunderCCBY-SA3.0
http://commons.wikimedia.org/wiki/File:Fire-lite-bg-
10.jpg#mediaviewer/File:Fire-lite-bg-10.jpg
“No one has a guaranteed
position in the technology
industry.” -- Bill Gates, Pirates of
Silicon Valley
“The only thing that can ever hurt
Linux is Linux itself.” -- GKH,
Linux Action Show
“Success is a self-correcting
phenomenom.” -- Gary Hamel
Philosophy of systemd
Extract duplicate functionality from daemons and move 
it to systemd core or kernel.
Replace /etc scripts with declarative config files.
Expose newer kernel APIs to userspace via a simple 
interface.
● modular;
● asynchronous and concurrent;
● described by declarative sets of properties;
● bundled with analysis tools and tests;
● features a fully language-agnostic API.
systemd is:
One daemon to rule them all
xinetd: a daemon to lazily launch internet
services when activity is detected on an
AF_INET socket
systemd: a daemon to lazily launch any
system service when activity is detected on
an AF_UNIX socket (oversimplification)
Complexity arising from many similar small units
init.d scripts  systemd units
● Unit's action and parameters: ExecStart=
● Dependencies: Before=, After=, Requires=, Conflicts=
and Wants=.
● Default dependencies:
– Requires= and After= on basic.target;
– Conflicts= and Before= on shutdown.target.
● Conditionals: ConditionPathExists, ConditionPathIsReadWrite!=
● Types of unit files: service, socket, device, mount,
scope, slice, automount, swap, target, path, timer,
snapshot
sysVinit runlevels ≈ systemd targets
● Targets are synchronization points.
● Check /lib/systemd/system/runlevel?.target symlinks:
multi-user.target (runlevel 3 == text session)
graphical.target (runlevel 5 == graphical session)
● Select boot-target :
– via /etc/systemd/system/default.target symlink;
– appending number or systemd.unit=<target> to bootargs.
plus: intuitively exposes kernel interfaces
● Including Capabilities, Watchdog, Cgroups and kdbus
('coming attraction')
● Kernel features configurable via simple ASCII options
in unit files.
● Encourages creation of system policies via unit
templates.
systemd and cgroups
● cgroups are a kernel-level mechanism for allocating resources:
storage, memory, CPU and network.
● slices are groups of daemons whose resources are managed
jointly.
● systemd scopes are resultant groups of user processes.
● Can set BlockIOWeight, IOSchedulingPriority, OOMScoreAdjust,
CPUShares, MemoryLimit …
Demo Example: limiting memory usage of Firefox.
systemd and security:
granular encapsulationvia kernel's capabilities
● CapabilityBoundingSet
● PrivateTmp, PrivateDevices, PrivateNetwork
● JoinNamespaces
● ProtectSystem (/usr and /etc), ProtectHome
● ReadOnlyDirectories, InaccessibleDirectories
● systemd-nspawn: systemd's native containers
Demo Example: limiting privileges of root-initiated program
systemd and watchdogs
● Support for soft or hard watchdogs
● RuntimeWatchdogSec sets a timer for petting the dog
● ShutdownWatchdogSec sets a timer to force reboot if shutdown
hangs
Demo Example: systemd and softdog
resource utilization
● systemd-211 in Poky includes 17 packages = 8 MB.
● systemd-219 builds 90 MB of executables (not all needed).
● minimal build = systemd, udevd and journald.
● Memory (RSS) of fully featured build: ≈9 MB; minimum build ≈5
MB.
● Features added/removed via './configure'.
● Get rid of D-Bus, syslog and bash?
using the systemd journal
● Easily pushed to a remote.
● Can be cryptographically 'sealed'.
● Configurable max size and rotation.
● Log-reading tools are simple:
journalctl -xn
journalctl -p err
journalctl -u cron
journalctl -o json-pretty
systemctl status
systemctl is-failed bluetooth
systemctl --failed
Other embedded-relevant features
● Support for read-only rootfs
● Remote journaling via HTTP requests
● Coredumpctl:
– read last core file
– read stack trace automatically written to journal
● Timesyncd: lightweight network-time daemon
● 'systemctl snapshot' captures state to which the system can be
restored
systemd prevents self-injury!
● Test out new units by trying them:
– in /run
– in *.conf.d directory
– via bootargs
● No need ever to modify files in /lib/systemd.
● Services linked into basic.target.wants (≈runlevel 1) that won't
work until graphical.target (runlevel 5) will start properly if their
dependencies are correctly stated.
systemd and backwards compatibility
system updates
Ye Good Olde Days:
-- update kernel and modules
-- separately update root fs
Newfangled:
-- update kernel and modules
-- update device-tree
-- separately update root fs
Tuning systemd for embedded
New system updates?
Old:
-- update kernel and modules
-- separately update root fs
New:
-- update kernel and modules
-- update device-tree?
-- separately update root fs
Newer:
-- update kernel and modules
-- update device-tree?
-- update systemd?
-- separately update root fs
systemd's 'Interface Portability and Stability Chart'
Deprecated!
developing systemd
● git clone git://anongit.freedesktop.org/systemd/systemd
● systemd-devel list: submit patches or ask questions
● Featureful utility library in src/shared/
#define streq(a,b) (strcmp((a),(b)) == 0)
#define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)
#define strcaseeq(a,b) (strcasecmp((a),(b)) == 0)
#define strncaseeq(a, b, n) (strncasecmp((a), (b), (n)) == 0)
● Complex autotools build system, many dependencies.
● 'Plumbing' dev tools in /lib/systemd, 'porcelain' tools in /bin
Summary
● Systemd has:
– a superior design;
– tight integration with the Linux kernel;
– a vibrant developer community.
● systemd is the less stable part of kernel's ABI.
● Mostly things will 'just work'.
● systemd exemplifies modernization Linux needs to
stay competitive.
photo
courtesy
Jym
Dyer
Thanks
● Vladimir Pantelic, Tom Gundersen, Lennart Poettering, Jeff
Waugh, Ivan Shapovalov, Mantas Mikulènas, Stephanie
Lockwood-Childs and Jon Stanley for corrections and advice.
● Bill Ward, Jym Dyer and Janet Lafleur for use of their images.
Resources
● Man pages are part of systemd git repo.
●
freedesktop.org: systemd mailing list archives and wiki
● Poettering's 0pointer.de blog
● ➟At wayback machine: “Booting up” articles
●
Neil Brown series at LWN
● ➟Fedora's SysVinit to systemd cheatsheet
● Poettering's 'What's new' talk from FOSDEM 2015
●
Josh Triplett's Debconf talk video
● Linux Action Show interviews with Mark Shuttleworth and Lennart Poettering
Leftover
Materials
Understanding dependencies
Try:
systemctl list-dependencies basic.target
systemctl list-dependencies –after tmp.mount
Try:
systemd-analyze dot rescue.target
systemd-analyze dot basic.target > basic.dot
dot -Tsvg basic.dot -o basic.svg
eog basic.svg (or view basic.svg with any web browser)
Understanding dependencies, p. 2
SysV already has a big service manager: bash
[user@localhost]$ ls -l /sbin/init
26k
[user@localhost]$ ls -lh /bin/bash
1008K
[user@localhost]$ ls -lh /lib/systemd/systemd
1.3M
Tuning systemd for embedded
Greg K-H: “Tightly-coupled components”
Originally from https://lwn.net/Articles/494095/
[Socket activation demo with cups and ncat]
systemd and udev
● udev is a kernel facility that handles device events.
– merged into the systemd project.
● Rules are enabled by placement in /lib/udev/rules.d,
unlike systemd unit enablement.
● Rule loading is ordered by numeric filename prefix,
like old sysVinit scripts.
udev is still old-school
Try:
ls /lib/udev/rules.d
cat /lib/udev/rules.d/99-systemd.rules
Hierarchy of unit files for
system and user sessions
● Organized into system and user units
● /lib/systemd/system: systemd upstream defaults for
system-wide services
● /etc/systemd/system: local customizations by override
and extension
● /lib/systemd/user/: systemd's upstream defaults for per-
user services
● $HOME/.local/share/systemd/user/ for user-installed
units
● 'drop-ins' are run-time extensions
X
Upstart
Serial Linked list Fully parallel
Modularity can produce complexity
photo
courtesy
Bill
Ward
systemd and outside projects: CoreOS
● networkd was initially contributed by CoreOS developers.
● CoreOS's fleet “tool that presents your entire cluster as a single init system”
is based on systemd.
– Spin up new containers due to events on sockets.
● CoreOS devs are outside systemd inner circle.
● systemd has many patches from Arch, Intel, Debian . . .
systemd in embedded systems
● systemd is widely adopted in embedded systems
because
– proper allocation of resources is critical;
– fastboot is required;
– customization of boot sequence is common.
● Lack of backward compatibility for older kernels (due
to firmware loading) is a pain point.
● Embedded use cases are not always understood by
systemd devs.
[runlevel demo with Fedora Qemu and Firefox]
Try: 'systemctl isolate multi-user.target'
[warning: KILLS X11]
systemd is easy to use
● systemd utilities:
– Try: apropos systemd | grep ctl
● All-ASCII configuration files: no hidden “registry”.
● Customization is by overriding default files.
● Many choices are controllable via symlinks.
● Bash-completion by default.
● Backwards compatibility with SysVinit
Override your defaults!
photo courtesy
Jym Dyer
● Replace a unit in /lib (upstream)
by creating one of the same name
in /etc (local changes).
● Add services to boot by symlinking
them into
/etc/systemd/system/default.target.wants.
● 'mask' unit with link to /dev/null.
● Best practice: do not change the
files in /lib/systemd.
● Read in-use unit with 'systemctl
cat'.
Extensions: drop-ins
Try: systemd-delta
Try: systemctl cat <list from 1st
command>
Old way New way History
X11 manages graphics
memory
Kernel's drm manages
graphics memory
“Linux Graphics Drivers: an I
ntroduction,”
p. 26
static /dev, then devfs udev
getrlimit, setrlimit cgroups
KDE3 and GNOME2 KDE4 and GNOME3 KDE and GNOME
sysVinit systemd in progress
X11 client-server
model
Wayland compositor
Crux of the problem: Dave Neary
“There is no freedesktop.org process for
proposing standards, identifying those which are
proposals and those which are de facto
implemented, and perhaps more importantly,
there is no process for building consensus around
a specification . . .”
(comment regarding GNOME3)
systemd is . . .
● the basis of Fedora, RHEL, CentOS, OpenSUSE,
Ubuntu, Debian and much embedded.
● praised by Jordan Hubbard of FreeBSD.
● tightly integrated with Linux kernel cgroups.
● the reference implementation for udev and for kdbus
userspace access.
Customizing your installation
● Replace a unit in /lib (upstream) by creating one of the same
name in /etc (local changes).
● Add services to boot by symlinking them into
/etc/systemd/system/default.target.wants.
● Best practice: do not change the files in /lib/systemd
Sequence of targets on a typical system
>$ ls -l /lib/systemd/system/default.target
/lib/systemd/system/default.target -> graphical.target
>$ cat /lib/systemd/system/graphical.target
After=multi-user.target
>$ cat /lib/systemd/system/multi-user.target
After=basic.target
>$ cat /lib/systemd/system/basic.target
After=sysinit.target sockets.target timers.target paths.target
slices.target
Example: set display manager
[user@localhost ~]$ ls -l `locate display-manager.service`
lrwxrwxrwx. 1 root root 35 Dec 11 2013
/etc/systemd/system/display-manager.service ->
/usr/lib/systemd/system/gdm.service
[user@localhost ~]$ cat /usr/lib/systemd/system/gdm.service
[Unit]
Description=GNOME Display Manager
[ . . . ]
[Install]
Alias=display-manager.service
or
WantedBy=graphical.target
sysinit, sockets and multi-user
are composite targets
>$ ls /lib/systemd/system/multi-user.target.wants/
dbus.service@ systemd-ask-password-wall.path@ systemd-
update-utmp-runlevel.service@ getty.target@
>$ ls /lib/systemd/system/sockets.target.wants:
dbus.socket@ systemd-shutdownd.socket@
systemd-initctl.socket@ systemd-udevd-control.socket@
>$ ls /lib/systemd/system/sysinit.target.wants:
cryptsetup.target@ systemd-journald.service@
debian-fixup.service@ systemd-journal-flush.service@
Symlinks replace lines of conditional code in SysVinit scripts.
Example: change the default target
[alison@localhost ~]$ ls /etc/systemd/system/default.target
/etc/systemd/system/default.target ->
/lib/systemd/system/graphical.target
[alison@localhost ~]$ sudo rm /etc/systemd/system/default.target
[alison@localhost ~]$ sudo ln -s /lib/systemd/system/multi-user.target
/etc/systemd/system/default.target
[alison@localhost ~]$ ~/bin/systemd-delta
[ . . . ]
[REDIRECTED] /etc/systemd/system/default.target →
/usr/lib/systemd/system/default.target
problems
● systemd is modular, but:
– interopability with other SW may be inadequately tested.
● Potentially rocky piecemeal transition by distros.
– e.g., Debian installer doesn't warn about a separate /usr
partition.
● Merciless deprecation of features (firmware loading,
readahead . . . ).
● Frequent releases, not particularly stable.
Taxonomy of systemd dependencies
Requires, RequiresOverridable, Requisite, RequisiteOverridable,
Wants, BindsTo, PartOf, Conflicts, Before, After, OnFailure
PropagateReloadsTo, ReloadPropagateFrom,
Brandon Philips at linux.conf.au
Brandon Philips at linux.conf.au
Design

Weitere ähnliche Inhalte

Was ist angesagt?

Revisiting CephFS MDS and mClock QoS Scheduler
Revisiting CephFS MDS and mClock QoS SchedulerRevisiting CephFS MDS and mClock QoS Scheduler
Revisiting CephFS MDS and mClock QoS SchedulerYongseok Oh
 
Understanding blue store, Ceph's new storage backend - Tim Serong, SUSE
Understanding blue store, Ceph's new storage backend - Tim Serong, SUSEUnderstanding blue store, Ceph's new storage backend - Tim Serong, SUSE
Understanding blue store, Ceph's new storage backend - Tim Serong, SUSEOpenStack
 
The Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageThe Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageKernel TLV
 
High-Performance Networking Using eBPF, XDP, and io_uring
High-Performance Networking Using eBPF, XDP, and io_uringHigh-Performance Networking Using eBPF, XDP, and io_uring
High-Performance Networking Using eBPF, XDP, and io_uringScyllaDB
 
Linux Initialization Process (1)
Linux Initialization Process (1)Linux Initialization Process (1)
Linux Initialization Process (1)shimosawa
 
Intel DPDK Step by Step instructions
Intel DPDK Step by Step instructionsIntel DPDK Step by Step instructions
Intel DPDK Step by Step instructionsHisaki Ohara
 
Yocto Project : Custom Embedded Linux Distribution
Yocto Project : Custom Embedded Linux DistributionYocto Project : Custom Embedded Linux Distribution
Yocto Project : Custom Embedded Linux Distributionemertxemarketing
 
Linux Performance Profiling and Monitoring
Linux Performance Profiling and MonitoringLinux Performance Profiling and Monitoring
Linux Performance Profiling and MonitoringGeorg Schönberger
 
Performance optimization for all flash based on aarch64 v2.0
Performance optimization for all flash based on aarch64 v2.0Performance optimization for all flash based on aarch64 v2.0
Performance optimization for all flash based on aarch64 v2.0Ceph Community
 
Apache BookKeeper: A High Performance and Low Latency Storage Service
Apache BookKeeper: A High Performance and Low Latency Storage ServiceApache BookKeeper: A High Performance and Low Latency Storage Service
Apache BookKeeper: A High Performance and Low Latency Storage ServiceSijie Guo
 
Nginx Internals
Nginx InternalsNginx Internals
Nginx InternalsJoshua Zhu
 
Performance tuning in BlueStore & RocksDB - Li Xiaoyan
Performance tuning in BlueStore & RocksDB - Li XiaoyanPerformance tuning in BlueStore & RocksDB - Li Xiaoyan
Performance tuning in BlueStore & RocksDB - Li XiaoyanCeph Community
 
Scaling ScyllaDB Storage Engine with State-of-Art Compaction
Scaling ScyllaDB Storage Engine with State-of-Art CompactionScaling ScyllaDB Storage Engine with State-of-Art Compaction
Scaling ScyllaDB Storage Engine with State-of-Art CompactionScyllaDB
 
Quick and Easy Device Drivers for Embedded Linux Using UIO
Quick and Easy Device Drivers for Embedded Linux Using UIOQuick and Easy Device Drivers for Embedded Linux Using UIO
Quick and Easy Device Drivers for Embedded Linux Using UIOChris Simmonds
 
BlueStore, A New Storage Backend for Ceph, One Year In
BlueStore, A New Storage Backend for Ceph, One Year InBlueStore, A New Storage Backend for Ceph, One Year In
BlueStore, A New Storage Backend for Ceph, One Year InSage Weil
 
Software update for IoT: the current state of play
Software update for IoT: the current state of playSoftware update for IoT: the current state of play
Software update for IoT: the current state of playChris Simmonds
 
Ceph and RocksDB
Ceph and RocksDBCeph and RocksDB
Ceph and RocksDBSage Weil
 

Was ist angesagt? (20)

Revisiting CephFS MDS and mClock QoS Scheduler
Revisiting CephFS MDS and mClock QoS SchedulerRevisiting CephFS MDS and mClock QoS Scheduler
Revisiting CephFS MDS and mClock QoS Scheduler
 
Understanding blue store, Ceph's new storage backend - Tim Serong, SUSE
Understanding blue store, Ceph's new storage backend - Tim Serong, SUSEUnderstanding blue store, Ceph's new storage backend - Tim Serong, SUSE
Understanding blue store, Ceph's new storage backend - Tim Serong, SUSE
 
The Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageThe Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast Storage
 
Understanding DPDK
Understanding DPDKUnderstanding DPDK
Understanding DPDK
 
High-Performance Networking Using eBPF, XDP, and io_uring
High-Performance Networking Using eBPF, XDP, and io_uringHigh-Performance Networking Using eBPF, XDP, and io_uring
High-Performance Networking Using eBPF, XDP, and io_uring
 
Linux Initialization Process (1)
Linux Initialization Process (1)Linux Initialization Process (1)
Linux Initialization Process (1)
 
Intel DPDK Step by Step instructions
Intel DPDK Step by Step instructionsIntel DPDK Step by Step instructions
Intel DPDK Step by Step instructions
 
Yocto Project : Custom Embedded Linux Distribution
Yocto Project : Custom Embedded Linux DistributionYocto Project : Custom Embedded Linux Distribution
Yocto Project : Custom Embedded Linux Distribution
 
Linux Performance Profiling and Monitoring
Linux Performance Profiling and MonitoringLinux Performance Profiling and Monitoring
Linux Performance Profiling and Monitoring
 
Performance optimization for all flash based on aarch64 v2.0
Performance optimization for all flash based on aarch64 v2.0Performance optimization for all flash based on aarch64 v2.0
Performance optimization for all flash based on aarch64 v2.0
 
Linux File System
Linux File SystemLinux File System
Linux File System
 
Apache BookKeeper: A High Performance and Low Latency Storage Service
Apache BookKeeper: A High Performance and Low Latency Storage ServiceApache BookKeeper: A High Performance and Low Latency Storage Service
Apache BookKeeper: A High Performance and Low Latency Storage Service
 
Nginx Internals
Nginx InternalsNginx Internals
Nginx Internals
 
Performance tuning in BlueStore & RocksDB - Li Xiaoyan
Performance tuning in BlueStore & RocksDB - Li XiaoyanPerformance tuning in BlueStore & RocksDB - Li Xiaoyan
Performance tuning in BlueStore & RocksDB - Li Xiaoyan
 
Scaling ScyllaDB Storage Engine with State-of-Art Compaction
Scaling ScyllaDB Storage Engine with State-of-Art CompactionScaling ScyllaDB Storage Engine with State-of-Art Compaction
Scaling ScyllaDB Storage Engine with State-of-Art Compaction
 
Quick and Easy Device Drivers for Embedded Linux Using UIO
Quick and Easy Device Drivers for Embedded Linux Using UIOQuick and Easy Device Drivers for Embedded Linux Using UIO
Quick and Easy Device Drivers for Embedded Linux Using UIO
 
BlueStore, A New Storage Backend for Ceph, One Year In
BlueStore, A New Storage Backend for Ceph, One Year InBlueStore, A New Storage Backend for Ceph, One Year In
BlueStore, A New Storage Backend for Ceph, One Year In
 
Software update for IoT: the current state of play
Software update for IoT: the current state of playSoftware update for IoT: the current state of play
Software update for IoT: the current state of play
 
Ceph and RocksDB
Ceph and RocksDBCeph and RocksDB
Ceph and RocksDB
 
DPDK In Depth
DPDK In DepthDPDK In Depth
DPDK In Depth
 

Andere mochten auch

IRQs: the Hard, the Soft, the Threaded and the Preemptible
IRQs: the Hard, the Soft, the Threaded and the PreemptibleIRQs: the Hard, the Soft, the Threaded and the Preemptible
IRQs: the Hard, the Soft, the Threaded and the PreemptibleAlison Chaiken
 
Oracle Performance On Linux X86 systems
Oracle  Performance On Linux  X86 systems Oracle  Performance On Linux  X86 systems
Oracle Performance On Linux X86 systems Baruch Osoveskiy
 
LISA15: systemd, the Next-Generation Linux System Manager
LISA15: systemd, the Next-Generation Linux System Manager LISA15: systemd, the Next-Generation Linux System Manager
LISA15: systemd, the Next-Generation Linux System Manager Alison Chaiken
 
Comparing file system performance: Red Hat Enterprise Linux 6 vs. Microsoft W...
Comparing file system performance: Red Hat Enterprise Linux 6 vs. Microsoft W...Comparing file system performance: Red Hat Enterprise Linux 6 vs. Microsoft W...
Comparing file system performance: Red Hat Enterprise Linux 6 vs. Microsoft W...Principled Technologies
 
CPN302 your-linux-ami-optimization-and-performance
CPN302 your-linux-ami-optimization-and-performanceCPN302 your-linux-ami-optimization-and-performance
CPN302 your-linux-ami-optimization-and-performanceCoburn Watson
 
Boost UDP Transaction Performance
Boost UDP Transaction PerformanceBoost UDP Transaction Performance
Boost UDP Transaction PerformanceLF Events
 
Improving Hadoop Performance via Linux
Improving Hadoop Performance via LinuxImproving Hadoop Performance via Linux
Improving Hadoop Performance via LinuxAlex Moundalexis
 
2 Linux Container and Docker
2 Linux Container and Docker2 Linux Container and Docker
2 Linux Container and DockerFabio Fumarola
 
Improving Hadoop Cluster Performance via Linux Configuration
Improving Hadoop Cluster Performance via Linux ConfigurationImproving Hadoop Cluster Performance via Linux Configuration
Improving Hadoop Cluster Performance via Linux ConfigurationAlex Moundalexis
 
Docker in the Oracle Universe / WebLogic 12c / OFM 12c
Docker in the Oracle Universe / WebLogic 12c / OFM 12cDocker in the Oracle Universe / WebLogic 12c / OFM 12c
Docker in the Oracle Universe / WebLogic 12c / OFM 12cFrank Munz
 
NVMe Over Fabrics Support in Linux
NVMe Over Fabrics Support in LinuxNVMe Over Fabrics Support in Linux
NVMe Over Fabrics Support in LinuxLF Events
 
SR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and ImprovementSR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and ImprovementLF Events
 
WebLogic im Docker Container
WebLogic im Docker ContainerWebLogic im Docker Container
WebLogic im Docker ContainerAndreas Koop
 
Container Landscape in 2017
Container Landscape in 2017Container Landscape in 2017
Container Landscape in 2017Arun Gupta
 
Advanced troubleshooting linux performance
Advanced troubleshooting linux performanceAdvanced troubleshooting linux performance
Advanced troubleshooting linux performanceForthscale
 
Feature rich BTRFS is Getting Richer with Encryption
Feature rich BTRFS is Getting Richer with EncryptionFeature rich BTRFS is Getting Richer with Encryption
Feature rich BTRFS is Getting Richer with EncryptionLF Events
 
Container Storage Best Practices in 2017
Container Storage Best Practices in 2017Container Storage Best Practices in 2017
Container Storage Best Practices in 2017Keith Resar
 
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratchjoshuasoundcloud
 

Andere mochten auch (20)

IRQs: the Hard, the Soft, the Threaded and the Preemptible
IRQs: the Hard, the Soft, the Threaded and the PreemptibleIRQs: the Hard, the Soft, the Threaded and the Preemptible
IRQs: the Hard, the Soft, the Threaded and the Preemptible
 
Centos7 systemd
Centos7 systemdCentos7 systemd
Centos7 systemd
 
Oracle Performance On Linux X86 systems
Oracle  Performance On Linux  X86 systems Oracle  Performance On Linux  X86 systems
Oracle Performance On Linux X86 systems
 
LISA15: systemd, the Next-Generation Linux System Manager
LISA15: systemd, the Next-Generation Linux System Manager LISA15: systemd, the Next-Generation Linux System Manager
LISA15: systemd, the Next-Generation Linux System Manager
 
Comparing file system performance: Red Hat Enterprise Linux 6 vs. Microsoft W...
Comparing file system performance: Red Hat Enterprise Linux 6 vs. Microsoft W...Comparing file system performance: Red Hat Enterprise Linux 6 vs. Microsoft W...
Comparing file system performance: Red Hat Enterprise Linux 6 vs. Microsoft W...
 
CPN302 your-linux-ami-optimization-and-performance
CPN302 your-linux-ami-optimization-and-performanceCPN302 your-linux-ami-optimization-and-performance
CPN302 your-linux-ami-optimization-and-performance
 
Docker, LinuX Container
Docker, LinuX ContainerDocker, LinuX Container
Docker, LinuX Container
 
Boost UDP Transaction Performance
Boost UDP Transaction PerformanceBoost UDP Transaction Performance
Boost UDP Transaction Performance
 
Improving Hadoop Performance via Linux
Improving Hadoop Performance via LinuxImproving Hadoop Performance via Linux
Improving Hadoop Performance via Linux
 
2 Linux Container and Docker
2 Linux Container and Docker2 Linux Container and Docker
2 Linux Container and Docker
 
Improving Hadoop Cluster Performance via Linux Configuration
Improving Hadoop Cluster Performance via Linux ConfigurationImproving Hadoop Cluster Performance via Linux Configuration
Improving Hadoop Cluster Performance via Linux Configuration
 
Docker in the Oracle Universe / WebLogic 12c / OFM 12c
Docker in the Oracle Universe / WebLogic 12c / OFM 12cDocker in the Oracle Universe / WebLogic 12c / OFM 12c
Docker in the Oracle Universe / WebLogic 12c / OFM 12c
 
NVMe Over Fabrics Support in Linux
NVMe Over Fabrics Support in LinuxNVMe Over Fabrics Support in Linux
NVMe Over Fabrics Support in Linux
 
SR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and ImprovementSR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and Improvement
 
WebLogic im Docker Container
WebLogic im Docker ContainerWebLogic im Docker Container
WebLogic im Docker Container
 
Container Landscape in 2017
Container Landscape in 2017Container Landscape in 2017
Container Landscape in 2017
 
Advanced troubleshooting linux performance
Advanced troubleshooting linux performanceAdvanced troubleshooting linux performance
Advanced troubleshooting linux performance
 
Feature rich BTRFS is Getting Richer with Encryption
Feature rich BTRFS is Getting Richer with EncryptionFeature rich BTRFS is Getting Richer with Encryption
Feature rich BTRFS is Getting Richer with Encryption
 
Container Storage Best Practices in 2017
Container Storage Best Practices in 2017Container Storage Best Practices in 2017
Container Storage Best Practices in 2017
 
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratch
 

Ähnlich wie Tuning systemd for embedded

Systemd for developers
Systemd for developersSystemd for developers
Systemd for developersAlison Chaiken
 
Automotive Grade Linux and systemd
Automotive Grade Linux and systemdAutomotive Grade Linux and systemd
Automotive Grade Linux and systemdAlison Chaiken
 
Linux Kernel Development
Linux Kernel DevelopmentLinux Kernel Development
Linux Kernel DevelopmentPriyank Kapadia
 
Grub and dracut ii
Grub and dracut iiGrub and dracut ii
Grub and dracut iiplarsen67
 
the NML project
the NML projectthe NML project
the NML projectLei Yang
 
Systemd evolution revolution_regression
Systemd evolution revolution_regressionSystemd evolution revolution_regression
Systemd evolution revolution_regressionSusant Sahani
 
Linux 开源操作系统发展新趋势
Linux 开源操作系统发展新趋势Linux 开源操作系统发展新趋势
Linux 开源操作系统发展新趋势Anthony Wong
 
Android for Embedded Linux Developers
Android for Embedded Linux DevelopersAndroid for Embedded Linux Developers
Android for Embedded Linux DevelopersOpersys inc.
 
A3Sec Advanced Deployment System
A3Sec Advanced Deployment SystemA3Sec Advanced Deployment System
A3Sec Advanced Deployment Systema3sec
 
Lightweight Virtualization in Linux
Lightweight Virtualization in LinuxLightweight Virtualization in Linux
Lightweight Virtualization in LinuxSadegh Dorri N.
 
Securing Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container PlatformSecuring Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container PlatformAll Things Open
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawnGábor Nyers
 
Securing Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container PlatformSecuring Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container PlatformAll Things Open
 
Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!All Things Open
 
Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5Carlos Eduardo
 
embedded-linux-120203.pdf
embedded-linux-120203.pdfembedded-linux-120203.pdf
embedded-linux-120203.pdftwtester
 

Ähnlich wie Tuning systemd for embedded (20)

Systemd for developers
Systemd for developersSystemd for developers
Systemd for developers
 
Automotive Grade Linux and systemd
Automotive Grade Linux and systemdAutomotive Grade Linux and systemd
Automotive Grade Linux and systemd
 
Linux Kernel Development
Linux Kernel DevelopmentLinux Kernel Development
Linux Kernel Development
 
Grub and dracut ii
Grub and dracut iiGrub and dracut ii
Grub and dracut ii
 
An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
the NML project
the NML projectthe NML project
the NML project
 
First steps on CentOs7
First steps on CentOs7First steps on CentOs7
First steps on CentOs7
 
Systemd evolution revolution_regression
Systemd evolution revolution_regressionSystemd evolution revolution_regression
Systemd evolution revolution_regression
 
App container rkt
App container rktApp container rkt
App container rkt
 
Linux 开源操作系统发展新趋势
Linux 开源操作系统发展新趋势Linux 开源操作系统发展新趋势
Linux 开源操作系统发展新趋势
 
Android for Embedded Linux Developers
Android for Embedded Linux DevelopersAndroid for Embedded Linux Developers
Android for Embedded Linux Developers
 
A3Sec Advanced Deployment System
A3Sec Advanced Deployment SystemA3Sec Advanced Deployment System
A3Sec Advanced Deployment System
 
Lightweight Virtualization in Linux
Lightweight Virtualization in LinuxLightweight Virtualization in Linux
Lightweight Virtualization in Linux
 
Securing Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container PlatformSecuring Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container Platform
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawn
 
Securing Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container PlatformSecuring Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container Platform
 
SystemV vs systemd
SystemV vs systemdSystemV vs systemd
SystemV vs systemd
 
Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!
 
Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5
 
embedded-linux-120203.pdf
embedded-linux-120203.pdfembedded-linux-120203.pdf
embedded-linux-120203.pdf
 

Mehr von Alison Chaiken

Not breaking userspace: the evolving Linux ABI
Not breaking userspace: the evolving Linux ABINot breaking userspace: the evolving Linux ABI
Not breaking userspace: the evolving Linux ABIAlison Chaiken
 
Supporting SW Update via u-boot and GPT/EFI
Supporting SW Update via u-boot and GPT/EFISupporting SW Update via u-boot and GPT/EFI
Supporting SW Update via u-boot and GPT/EFIAlison Chaiken
 
Two C++ Tools: Compiler Explorer and Cpp Insights
Two C++ Tools: Compiler Explorer and Cpp InsightsTwo C++ Tools: Compiler Explorer and Cpp Insights
Two C++ Tools: Compiler Explorer and Cpp InsightsAlison Chaiken
 
V2X Communications: Getting our Cars Talking
V2X Communications: Getting our Cars TalkingV2X Communications: Getting our Cars Talking
V2X Communications: Getting our Cars TalkingAlison Chaiken
 
Practical Challenges to Deploying Highly Automated Vehicles
Practical Challenges to Deploying Highly Automated VehiclesPractical Challenges to Deploying Highly Automated Vehicles
Practical Challenges to Deploying Highly Automated VehiclesAlison Chaiken
 
Linux: the first second
Linux: the first secondLinux: the first second
Linux: the first secondAlison Chaiken
 
Functional AI and Pervasive Networking in Automotive
 Functional AI and Pervasive Networking in Automotive Functional AI and Pervasive Networking in Automotive
Functional AI and Pervasive Networking in AutomotiveAlison Chaiken
 
Flash in Vehicles: an End-User's Perspective
Flash in Vehicles: an End-User's PerspectiveFlash in Vehicles: an End-User's Perspective
Flash in Vehicles: an End-User's PerspectiveAlison Chaiken
 
Linux: the first second
Linux: the first secondLinux: the first second
Linux: the first secondAlison Chaiken
 
Automotive Linux, Cybersecurity and Transparency
Automotive Linux, Cybersecurity and TransparencyAutomotive Linux, Cybersecurity and Transparency
Automotive Linux, Cybersecurity and TransparencyAlison Chaiken
 
Developing Automotive Linux
Developing Automotive LinuxDeveloping Automotive Linux
Developing Automotive LinuxAlison Chaiken
 
Technology, Business and Regulation of the Connected Car
Technology, Business and Regulation of the Connected CarTechnology, Business and Regulation of the Connected Car
Technology, Business and Regulation of the Connected CarAlison Chaiken
 
Best practices for long-term support and security of the device-tree
Best practices for long-term support and security of the device-treeBest practices for long-term support and security of the device-tree
Best practices for long-term support and security of the device-treeAlison Chaiken
 
The “Telematics Horizon” V2V and V2I Networking
The “Telematics Horizon” V2V and V2I NetworkingThe “Telematics Horizon” V2V and V2I Networking
The “Telematics Horizon” V2V and V2I NetworkingAlison Chaiken
 
Developing automotive Linux
Developing automotive LinuxDeveloping automotive Linux
Developing automotive LinuxAlison Chaiken
 
Automotive Free Software 2013: "Right to Repair" and Privacy
Automotive Free Software 2013: "Right to Repair" and PrivacyAutomotive Free Software 2013: "Right to Repair" and Privacy
Automotive Free Software 2013: "Right to Repair" and PrivacyAlison Chaiken
 
Addressing the hard problems of automotive Linux: networking and IPC
Addressing the hard problems of automotive Linux: networking and IPCAddressing the hard problems of automotive Linux: networking and IPC
Addressing the hard problems of automotive Linux: networking and IPCAlison Chaiken
 
Tier X and the Coming of the Whitebox Car
Tier X and the Coming of the Whitebox CarTier X and the Coming of the Whitebox Car
Tier X and the Coming of the Whitebox CarAlison Chaiken
 
Booth content from Maker Faire Bay Area 2012
Booth content from Maker Faire Bay Area 2012Booth content from Maker Faire Bay Area 2012
Booth content from Maker Faire Bay Area 2012Alison Chaiken
 
From Driver Distraction to Driver Augmentation: Open Source in Cars
From Driver Distraction to Driver Augmentation: Open Source in CarsFrom Driver Distraction to Driver Augmentation: Open Source in Cars
From Driver Distraction to Driver Augmentation: Open Source in CarsAlison Chaiken
 

Mehr von Alison Chaiken (20)

Not breaking userspace: the evolving Linux ABI
Not breaking userspace: the evolving Linux ABINot breaking userspace: the evolving Linux ABI
Not breaking userspace: the evolving Linux ABI
 
Supporting SW Update via u-boot and GPT/EFI
Supporting SW Update via u-boot and GPT/EFISupporting SW Update via u-boot and GPT/EFI
Supporting SW Update via u-boot and GPT/EFI
 
Two C++ Tools: Compiler Explorer and Cpp Insights
Two C++ Tools: Compiler Explorer and Cpp InsightsTwo C++ Tools: Compiler Explorer and Cpp Insights
Two C++ Tools: Compiler Explorer and Cpp Insights
 
V2X Communications: Getting our Cars Talking
V2X Communications: Getting our Cars TalkingV2X Communications: Getting our Cars Talking
V2X Communications: Getting our Cars Talking
 
Practical Challenges to Deploying Highly Automated Vehicles
Practical Challenges to Deploying Highly Automated VehiclesPractical Challenges to Deploying Highly Automated Vehicles
Practical Challenges to Deploying Highly Automated Vehicles
 
Linux: the first second
Linux: the first secondLinux: the first second
Linux: the first second
 
Functional AI and Pervasive Networking in Automotive
 Functional AI and Pervasive Networking in Automotive Functional AI and Pervasive Networking in Automotive
Functional AI and Pervasive Networking in Automotive
 
Flash in Vehicles: an End-User's Perspective
Flash in Vehicles: an End-User's PerspectiveFlash in Vehicles: an End-User's Perspective
Flash in Vehicles: an End-User's Perspective
 
Linux: the first second
Linux: the first secondLinux: the first second
Linux: the first second
 
Automotive Linux, Cybersecurity and Transparency
Automotive Linux, Cybersecurity and TransparencyAutomotive Linux, Cybersecurity and Transparency
Automotive Linux, Cybersecurity and Transparency
 
Developing Automotive Linux
Developing Automotive LinuxDeveloping Automotive Linux
Developing Automotive Linux
 
Technology, Business and Regulation of the Connected Car
Technology, Business and Regulation of the Connected CarTechnology, Business and Regulation of the Connected Car
Technology, Business and Regulation of the Connected Car
 
Best practices for long-term support and security of the device-tree
Best practices for long-term support and security of the device-treeBest practices for long-term support and security of the device-tree
Best practices for long-term support and security of the device-tree
 
The “Telematics Horizon” V2V and V2I Networking
The “Telematics Horizon” V2V and V2I NetworkingThe “Telematics Horizon” V2V and V2I Networking
The “Telematics Horizon” V2V and V2I Networking
 
Developing automotive Linux
Developing automotive LinuxDeveloping automotive Linux
Developing automotive Linux
 
Automotive Free Software 2013: "Right to Repair" and Privacy
Automotive Free Software 2013: "Right to Repair" and PrivacyAutomotive Free Software 2013: "Right to Repair" and Privacy
Automotive Free Software 2013: "Right to Repair" and Privacy
 
Addressing the hard problems of automotive Linux: networking and IPC
Addressing the hard problems of automotive Linux: networking and IPCAddressing the hard problems of automotive Linux: networking and IPC
Addressing the hard problems of automotive Linux: networking and IPC
 
Tier X and the Coming of the Whitebox Car
Tier X and the Coming of the Whitebox CarTier X and the Coming of the Whitebox Car
Tier X and the Coming of the Whitebox Car
 
Booth content from Maker Faire Bay Area 2012
Booth content from Maker Faire Bay Area 2012Booth content from Maker Faire Bay Area 2012
Booth content from Maker Faire Bay Area 2012
 
From Driver Distraction to Driver Augmentation: Open Source in Cars
From Driver Distraction to Driver Augmentation: Open Source in CarsFrom Driver Distraction to Driver Augmentation: Open Source in Cars
From Driver Distraction to Driver Augmentation: Open Source in Cars
 

Kürzlich hochgeladen

دليل تجارب الاسفلت المختبرية - Asphalt Experiments Guide Laboratory
دليل تجارب الاسفلت المختبرية - Asphalt Experiments Guide Laboratoryدليل تجارب الاسفلت المختبرية - Asphalt Experiments Guide Laboratory
دليل تجارب الاسفلت المختبرية - Asphalt Experiments Guide LaboratoryBahzad5
 
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchrohitcse52
 
Best-NO1 Best Rohani Amil In Lahore Kala Ilam In Lahore Kala Jadu Amil In Lah...
Best-NO1 Best Rohani Amil In Lahore Kala Ilam In Lahore Kala Jadu Amil In Lah...Best-NO1 Best Rohani Amil In Lahore Kala Ilam In Lahore Kala Jadu Amil In Lah...
Best-NO1 Best Rohani Amil In Lahore Kala Ilam In Lahore Kala Jadu Amil In Lah...Amil baba
 
Phase noise transfer functions.pptx
Phase noise transfer      functions.pptxPhase noise transfer      functions.pptx
Phase noise transfer functions.pptxSaiGouthamSunkara
 
Dev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingDev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingMarian Marinov
 
Lecture 1: Basics of trigonometry (surveying)
Lecture 1: Basics of trigonometry (surveying)Lecture 1: Basics of trigonometry (surveying)
Lecture 1: Basics of trigonometry (surveying)Bahzad5
 
Popular-NO1 Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialis...
Popular-NO1 Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialis...Popular-NO1 Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialis...
Popular-NO1 Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialis...Amil baba
 
sdfsadopkjpiosufoiasdoifjasldkjfl a asldkjflaskdjflkjsdsdf
sdfsadopkjpiosufoiasdoifjasldkjfl a asldkjflaskdjflkjsdsdfsdfsadopkjpiosufoiasdoifjasldkjfl a asldkjflaskdjflkjsdsdf
sdfsadopkjpiosufoiasdoifjasldkjfl a asldkjflaskdjflkjsdsdfJulia Kaye
 
Multicomponent Spiral Wound Membrane Separation Model.pdf
Multicomponent Spiral Wound Membrane Separation Model.pdfMulticomponent Spiral Wound Membrane Separation Model.pdf
Multicomponent Spiral Wound Membrane Separation Model.pdfGiovanaGhasary1
 
Landsman converter for power factor improvement
Landsman converter for power factor improvementLandsman converter for power factor improvement
Landsman converter for power factor improvementVijayMuni2
 
Power System electrical and electronics .pptx
Power System electrical and electronics .pptxPower System electrical and electronics .pptx
Power System electrical and electronics .pptxMUKULKUMAR210
 
UNIT4_ESD_wfffffggggggggggggith_ARM.pptx
UNIT4_ESD_wfffffggggggggggggith_ARM.pptxUNIT4_ESD_wfffffggggggggggggith_ARM.pptx
UNIT4_ESD_wfffffggggggggggggith_ARM.pptxrealme6igamerr
 
A Seminar on Electric Vehicle Software Simulation
A Seminar on Electric Vehicle Software SimulationA Seminar on Electric Vehicle Software Simulation
A Seminar on Electric Vehicle Software SimulationMohsinKhanA
 
Clutches and brkesSelect any 3 position random motion out of real world and d...
Clutches and brkesSelect any 3 position random motion out of real world and d...Clutches and brkesSelect any 3 position random motion out of real world and d...
Clutches and brkesSelect any 3 position random motion out of real world and d...sahb78428
 
Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...
Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...
Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...Sean Meyn
 
EPE3163_Hydro power stations_Unit2_Lect2.pptx
EPE3163_Hydro power stations_Unit2_Lect2.pptxEPE3163_Hydro power stations_Unit2_Lect2.pptx
EPE3163_Hydro power stations_Unit2_Lect2.pptxJoseeMusabyimana
 
The relationship between iot and communication technology
The relationship between iot and communication technologyThe relationship between iot and communication technology
The relationship between iot and communication technologyabdulkadirmukarram03
 

Kürzlich hochgeladen (20)

دليل تجارب الاسفلت المختبرية - Asphalt Experiments Guide Laboratory
دليل تجارب الاسفلت المختبرية - Asphalt Experiments Guide Laboratoryدليل تجارب الاسفلت المختبرية - Asphalt Experiments Guide Laboratory
دليل تجارب الاسفلت المختبرية - Asphalt Experiments Guide Laboratory
 
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
 
Best-NO1 Best Rohani Amil In Lahore Kala Ilam In Lahore Kala Jadu Amil In Lah...
Best-NO1 Best Rohani Amil In Lahore Kala Ilam In Lahore Kala Jadu Amil In Lah...Best-NO1 Best Rohani Amil In Lahore Kala Ilam In Lahore Kala Jadu Amil In Lah...
Best-NO1 Best Rohani Amil In Lahore Kala Ilam In Lahore Kala Jadu Amil In Lah...
 
Lecture 4 .pdf
Lecture 4                              .pdfLecture 4                              .pdf
Lecture 4 .pdf
 
Phase noise transfer functions.pptx
Phase noise transfer      functions.pptxPhase noise transfer      functions.pptx
Phase noise transfer functions.pptx
 
Dev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingDev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & Logging
 
Lecture 1: Basics of trigonometry (surveying)
Lecture 1: Basics of trigonometry (surveying)Lecture 1: Basics of trigonometry (surveying)
Lecture 1: Basics of trigonometry (surveying)
 
Lecture 2 .pptx
Lecture 2                            .pptxLecture 2                            .pptx
Lecture 2 .pptx
 
Présentation IIRB 2024 Chloe Dufrane.pdf
Présentation IIRB 2024 Chloe Dufrane.pdfPrésentation IIRB 2024 Chloe Dufrane.pdf
Présentation IIRB 2024 Chloe Dufrane.pdf
 
Popular-NO1 Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialis...
Popular-NO1 Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialis...Popular-NO1 Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialis...
Popular-NO1 Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialis...
 
sdfsadopkjpiosufoiasdoifjasldkjfl a asldkjflaskdjflkjsdsdf
sdfsadopkjpiosufoiasdoifjasldkjfl a asldkjflaskdjflkjsdsdfsdfsadopkjpiosufoiasdoifjasldkjfl a asldkjflaskdjflkjsdsdf
sdfsadopkjpiosufoiasdoifjasldkjfl a asldkjflaskdjflkjsdsdf
 
Multicomponent Spiral Wound Membrane Separation Model.pdf
Multicomponent Spiral Wound Membrane Separation Model.pdfMulticomponent Spiral Wound Membrane Separation Model.pdf
Multicomponent Spiral Wound Membrane Separation Model.pdf
 
Landsman converter for power factor improvement
Landsman converter for power factor improvementLandsman converter for power factor improvement
Landsman converter for power factor improvement
 
Power System electrical and electronics .pptx
Power System electrical and electronics .pptxPower System electrical and electronics .pptx
Power System electrical and electronics .pptx
 
UNIT4_ESD_wfffffggggggggggggith_ARM.pptx
UNIT4_ESD_wfffffggggggggggggith_ARM.pptxUNIT4_ESD_wfffffggggggggggggith_ARM.pptx
UNIT4_ESD_wfffffggggggggggggith_ARM.pptx
 
A Seminar on Electric Vehicle Software Simulation
A Seminar on Electric Vehicle Software SimulationA Seminar on Electric Vehicle Software Simulation
A Seminar on Electric Vehicle Software Simulation
 
Clutches and brkesSelect any 3 position random motion out of real world and d...
Clutches and brkesSelect any 3 position random motion out of real world and d...Clutches and brkesSelect any 3 position random motion out of real world and d...
Clutches and brkesSelect any 3 position random motion out of real world and d...
 
Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...
Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...
Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...
 
EPE3163_Hydro power stations_Unit2_Lect2.pptx
EPE3163_Hydro power stations_Unit2_Lect2.pptxEPE3163_Hydro power stations_Unit2_Lect2.pptx
EPE3163_Hydro power stations_Unit2_Lect2.pptx
 
The relationship between iot and communication technology
The relationship between iot and communication technologyThe relationship between iot and communication technology
The relationship between iot and communication technology
 

Tuning systemd for embedded

  • 1. Tuning systemd for Embedded Alison Chaiken alison_chaiken@mentor.com Mar. 23, 2015 Latest version: http://she-devel.com/ELC_systemd.pdf Auxiliary files: http://she-devel.com/ELC_auxiliary.tar.bz2 Text in blue is hyperlinked.
  • 3. Linux needs to keep innovating LicensedunderCCBY-SA3.0 http://commons.wikimedia.org/wiki/File:Fire-lite-bg- 10.jpg#mediaviewer/File:Fire-lite-bg-10.jpg “No one has a guaranteed position in the technology industry.” -- Bill Gates, Pirates of Silicon Valley “The only thing that can ever hurt Linux is Linux itself.” -- GKH, Linux Action Show “Success is a self-correcting phenomenom.” -- Gary Hamel
  • 5. ● modular; ● asynchronous and concurrent; ● described by declarative sets of properties; ● bundled with analysis tools and tests; ● features a fully language-agnostic API. systemd is:
  • 6. One daemon to rule them all xinetd: a daemon to lazily launch internet services when activity is detected on an AF_INET socket systemd: a daemon to lazily launch any system service when activity is detected on an AF_UNIX socket (oversimplification)
  • 7. Complexity arising from many similar small units
  • 8. init.d scripts  systemd units ● Unit's action and parameters: ExecStart= ● Dependencies: Before=, After=, Requires=, Conflicts= and Wants=. ● Default dependencies: – Requires= and After= on basic.target; – Conflicts= and Before= on shutdown.target. ● Conditionals: ConditionPathExists, ConditionPathIsReadWrite!= ● Types of unit files: service, socket, device, mount, scope, slice, automount, swap, target, path, timer, snapshot
  • 9. sysVinit runlevels ≈ systemd targets ● Targets are synchronization points. ● Check /lib/systemd/system/runlevel?.target symlinks: multi-user.target (runlevel 3 == text session) graphical.target (runlevel 5 == graphical session) ● Select boot-target : – via /etc/systemd/system/default.target symlink; – appending number or systemd.unit=<target> to bootargs.
  • 10. plus: intuitively exposes kernel interfaces ● Including Capabilities, Watchdog, Cgroups and kdbus ('coming attraction') ● Kernel features configurable via simple ASCII options in unit files. ● Encourages creation of system policies via unit templates.
  • 11. systemd and cgroups ● cgroups are a kernel-level mechanism for allocating resources: storage, memory, CPU and network. ● slices are groups of daemons whose resources are managed jointly. ● systemd scopes are resultant groups of user processes. ● Can set BlockIOWeight, IOSchedulingPriority, OOMScoreAdjust, CPUShares, MemoryLimit … Demo Example: limiting memory usage of Firefox.
  • 12. systemd and security: granular encapsulationvia kernel's capabilities ● CapabilityBoundingSet ● PrivateTmp, PrivateDevices, PrivateNetwork ● JoinNamespaces ● ProtectSystem (/usr and /etc), ProtectHome ● ReadOnlyDirectories, InaccessibleDirectories ● systemd-nspawn: systemd's native containers Demo Example: limiting privileges of root-initiated program
  • 13. systemd and watchdogs ● Support for soft or hard watchdogs ● RuntimeWatchdogSec sets a timer for petting the dog ● ShutdownWatchdogSec sets a timer to force reboot if shutdown hangs Demo Example: systemd and softdog
  • 14. resource utilization ● systemd-211 in Poky includes 17 packages = 8 MB. ● systemd-219 builds 90 MB of executables (not all needed). ● minimal build = systemd, udevd and journald. ● Memory (RSS) of fully featured build: ≈9 MB; minimum build ≈5 MB. ● Features added/removed via './configure'. ● Get rid of D-Bus, syslog and bash?
  • 15. using the systemd journal ● Easily pushed to a remote. ● Can be cryptographically 'sealed'. ● Configurable max size and rotation. ● Log-reading tools are simple: journalctl -xn journalctl -p err journalctl -u cron journalctl -o json-pretty systemctl status systemctl is-failed bluetooth systemctl --failed
  • 16. Other embedded-relevant features ● Support for read-only rootfs ● Remote journaling via HTTP requests ● Coredumpctl: – read last core file – read stack trace automatically written to journal ● Timesyncd: lightweight network-time daemon ● 'systemctl snapshot' captures state to which the system can be restored
  • 17. systemd prevents self-injury! ● Test out new units by trying them: – in /run – in *.conf.d directory – via bootargs ● No need ever to modify files in /lib/systemd. ● Services linked into basic.target.wants (≈runlevel 1) that won't work until graphical.target (runlevel 5) will start properly if their dependencies are correctly stated.
  • 18. systemd and backwards compatibility
  • 19. system updates Ye Good Olde Days: -- update kernel and modules -- separately update root fs Newfangled: -- update kernel and modules -- update device-tree -- separately update root fs
  • 21. New system updates? Old: -- update kernel and modules -- separately update root fs New: -- update kernel and modules -- update device-tree? -- separately update root fs Newer: -- update kernel and modules -- update device-tree? -- update systemd? -- separately update root fs
  • 22. systemd's 'Interface Portability and Stability Chart' Deprecated!
  • 23. developing systemd ● git clone git://anongit.freedesktop.org/systemd/systemd ● systemd-devel list: submit patches or ask questions ● Featureful utility library in src/shared/ #define streq(a,b) (strcmp((a),(b)) == 0) #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0) #define strcaseeq(a,b) (strcasecmp((a),(b)) == 0) #define strncaseeq(a, b, n) (strncasecmp((a), (b), (n)) == 0) ● Complex autotools build system, many dependencies. ● 'Plumbing' dev tools in /lib/systemd, 'porcelain' tools in /bin
  • 24. Summary ● Systemd has: – a superior design; – tight integration with the Linux kernel; – a vibrant developer community. ● systemd is the less stable part of kernel's ABI. ● Mostly things will 'just work'. ● systemd exemplifies modernization Linux needs to stay competitive.
  • 26. Thanks ● Vladimir Pantelic, Tom Gundersen, Lennart Poettering, Jeff Waugh, Ivan Shapovalov, Mantas Mikulènas, Stephanie Lockwood-Childs and Jon Stanley for corrections and advice. ● Bill Ward, Jym Dyer and Janet Lafleur for use of their images.
  • 27. Resources ● Man pages are part of systemd git repo. ● freedesktop.org: systemd mailing list archives and wiki ● Poettering's 0pointer.de blog ● ➟At wayback machine: “Booting up” articles ● Neil Brown series at LWN ● ➟Fedora's SysVinit to systemd cheatsheet ● Poettering's 'What's new' talk from FOSDEM 2015 ● Josh Triplett's Debconf talk video ● Linux Action Show interviews with Mark Shuttleworth and Lennart Poettering
  • 29. Understanding dependencies Try: systemctl list-dependencies basic.target systemctl list-dependencies –after tmp.mount
  • 30. Try: systemd-analyze dot rescue.target systemd-analyze dot basic.target > basic.dot dot -Tsvg basic.dot -o basic.svg eog basic.svg (or view basic.svg with any web browser) Understanding dependencies, p. 2
  • 31. SysV already has a big service manager: bash [user@localhost]$ ls -l /sbin/init 26k [user@localhost]$ ls -lh /bin/bash 1008K [user@localhost]$ ls -lh /lib/systemd/systemd 1.3M
  • 33. Greg K-H: “Tightly-coupled components” Originally from https://lwn.net/Articles/494095/
  • 34. [Socket activation demo with cups and ncat]
  • 35. systemd and udev ● udev is a kernel facility that handles device events. – merged into the systemd project. ● Rules are enabled by placement in /lib/udev/rules.d, unlike systemd unit enablement. ● Rule loading is ordered by numeric filename prefix, like old sysVinit scripts.
  • 36. udev is still old-school Try: ls /lib/udev/rules.d cat /lib/udev/rules.d/99-systemd.rules
  • 37. Hierarchy of unit files for system and user sessions ● Organized into system and user units ● /lib/systemd/system: systemd upstream defaults for system-wide services ● /etc/systemd/system: local customizations by override and extension ● /lib/systemd/user/: systemd's upstream defaults for per- user services ● $HOME/.local/share/systemd/user/ for user-installed units ● 'drop-ins' are run-time extensions
  • 39. Modularity can produce complexity photo courtesy Bill Ward
  • 40. systemd and outside projects: CoreOS ● networkd was initially contributed by CoreOS developers. ● CoreOS's fleet “tool that presents your entire cluster as a single init system” is based on systemd. – Spin up new containers due to events on sockets. ● CoreOS devs are outside systemd inner circle. ● systemd has many patches from Arch, Intel, Debian . . .
  • 41. systemd in embedded systems ● systemd is widely adopted in embedded systems because – proper allocation of resources is critical; – fastboot is required; – customization of boot sequence is common. ● Lack of backward compatibility for older kernels (due to firmware loading) is a pain point. ● Embedded use cases are not always understood by systemd devs.
  • 42. [runlevel demo with Fedora Qemu and Firefox] Try: 'systemctl isolate multi-user.target' [warning: KILLS X11]
  • 43. systemd is easy to use ● systemd utilities: – Try: apropos systemd | grep ctl ● All-ASCII configuration files: no hidden “registry”. ● Customization is by overriding default files. ● Many choices are controllable via symlinks. ● Bash-completion by default. ● Backwards compatibility with SysVinit
  • 44. Override your defaults! photo courtesy Jym Dyer ● Replace a unit in /lib (upstream) by creating one of the same name in /etc (local changes). ● Add services to boot by symlinking them into /etc/systemd/system/default.target.wants. ● 'mask' unit with link to /dev/null. ● Best practice: do not change the files in /lib/systemd. ● Read in-use unit with 'systemctl cat'.
  • 45. Extensions: drop-ins Try: systemd-delta Try: systemctl cat <list from 1st command>
  • 46. Old way New way History X11 manages graphics memory Kernel's drm manages graphics memory “Linux Graphics Drivers: an I ntroduction,” p. 26 static /dev, then devfs udev getrlimit, setrlimit cgroups KDE3 and GNOME2 KDE4 and GNOME3 KDE and GNOME sysVinit systemd in progress X11 client-server model Wayland compositor
  • 47. Crux of the problem: Dave Neary “There is no freedesktop.org process for proposing standards, identifying those which are proposals and those which are de facto implemented, and perhaps more importantly, there is no process for building consensus around a specification . . .” (comment regarding GNOME3)
  • 48. systemd is . . . ● the basis of Fedora, RHEL, CentOS, OpenSUSE, Ubuntu, Debian and much embedded. ● praised by Jordan Hubbard of FreeBSD. ● tightly integrated with Linux kernel cgroups. ● the reference implementation for udev and for kdbus userspace access.
  • 49. Customizing your installation ● Replace a unit in /lib (upstream) by creating one of the same name in /etc (local changes). ● Add services to boot by symlinking them into /etc/systemd/system/default.target.wants. ● Best practice: do not change the files in /lib/systemd
  • 50. Sequence of targets on a typical system >$ ls -l /lib/systemd/system/default.target /lib/systemd/system/default.target -> graphical.target >$ cat /lib/systemd/system/graphical.target After=multi-user.target >$ cat /lib/systemd/system/multi-user.target After=basic.target >$ cat /lib/systemd/system/basic.target After=sysinit.target sockets.target timers.target paths.target slices.target
  • 51. Example: set display manager [user@localhost ~]$ ls -l `locate display-manager.service` lrwxrwxrwx. 1 root root 35 Dec 11 2013 /etc/systemd/system/display-manager.service -> /usr/lib/systemd/system/gdm.service [user@localhost ~]$ cat /usr/lib/systemd/system/gdm.service [Unit] Description=GNOME Display Manager [ . . . ] [Install] Alias=display-manager.service or WantedBy=graphical.target
  • 52. sysinit, sockets and multi-user are composite targets >$ ls /lib/systemd/system/multi-user.target.wants/ dbus.service@ systemd-ask-password-wall.path@ systemd- update-utmp-runlevel.service@ getty.target@ >$ ls /lib/systemd/system/sockets.target.wants: dbus.socket@ systemd-shutdownd.socket@ systemd-initctl.socket@ systemd-udevd-control.socket@ >$ ls /lib/systemd/system/sysinit.target.wants: cryptsetup.target@ systemd-journald.service@ debian-fixup.service@ systemd-journal-flush.service@ Symlinks replace lines of conditional code in SysVinit scripts.
  • 53. Example: change the default target [alison@localhost ~]$ ls /etc/systemd/system/default.target /etc/systemd/system/default.target -> /lib/systemd/system/graphical.target [alison@localhost ~]$ sudo rm /etc/systemd/system/default.target [alison@localhost ~]$ sudo ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target [alison@localhost ~]$ ~/bin/systemd-delta [ . . . ] [REDIRECTED] /etc/systemd/system/default.target → /usr/lib/systemd/system/default.target
  • 54. problems ● systemd is modular, but: – interopability with other SW may be inadequately tested. ● Potentially rocky piecemeal transition by distros. – e.g., Debian installer doesn't warn about a separate /usr partition. ● Merciless deprecation of features (firmware loading, readahead . . . ). ● Frequent releases, not particularly stable.
  • 55. Taxonomy of systemd dependencies Requires, RequiresOverridable, Requisite, RequisiteOverridable, Wants, BindsTo, PartOf, Conflicts, Before, After, OnFailure PropagateReloadsTo, ReloadPropagateFrom,
  • 56. Brandon Philips at linux.conf.au
  • 57. Brandon Philips at linux.conf.au