GNU/LinuxDay in Vorarlberg - am 26. Sept. 2026 sowie Downloads und Vorträge.
Spruch an der Wand:
KuKuK - Kurz und Knackig und Kompakt
OSS in der Industrie, Wirtschaftskammer Vorarlberg
Kontakt Dipl. Ing. Dr. Roland Alton von fairkom
Uli Kleemann (CISO)
René Jochum
incus-compose: docker-compose für IncusRobert Scheck
SSL: TLS wäre richtiger!
Validation < 47 Tage ➜ Automatisierung!
Wildcard Certificate? Aber gleicher Schlüssel! :-(
Certbot mit Hooks!
Folien: hier
Richard Weinberger
Linux: 4 k Pages (min.)
$ free -m: free ist falsch!
/proc/vmstat ➜ 198 Metriken (185)
/proc/meminfo ➜ 60 Metriken (55)
anonymous = RAM
top - table of process
RSS / RSZ ➜ im RAM, Applikations-Memory
VSZ / VSS ➜ Grösse des Addressraums
PSZ / PSS ➜ RSS + (Shared Objects * 1/n)
TRS-CODE ➜ Programm Code
SHZ / SHM ➜ Shared Memory
/proc/zoneinfo ➜ Counter klein ➜ OoM
Buddy Allocator: /proc/budyinfo ➜ Fragmentierung
SLAB Allocator: /proc/slabinfo (braucht root) ➜ Welcher Prozess Speicherprobleme hat
SLAB / SLOB ➜ alt
SLIB ➜ neu
free -m ➜ available ➜ Monitoring
PSS: cat /proc/<PID>/smaps_rollup | grep ^Pss ➜ nur User Space
Pss: 6463 kB
Pss_Dirty: 6192 kB
Pss_Anon: 6192 kB
Pss_File: 271 kB
Pss_Shmem: 0 kB
cgroup ➜ User + memory space
$ systemd-cgtop
$ systemd-cgls
/sys/fs/cgroups memory.current in bytes
cat /sys/fs/cgroup/system.slice/system-postgresql.slice/memory.current
34983936
kann man einschalten
kein messbarer Performance overhead
Kernel leaks:
/proc/meminfo: Slab und VmallocUsed
CMAtotal + CMAused
/proc/slabinfo: num_objs x objsize
$ cat /proc/slabinfo
slabinfo - version: 2.1
# name <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab> : tunables <limit> <batchcount> <sharedfactor> : slabdata <active_slabs> <num_slabs> <sharedavail>
nf_conntrack_expect 0 0 232 35 2 : tunables 0 0 0 : slabdata 0 0 0
nf_conntrack 1792 1920 256 32 2 : tunables 0 0 0 : slabdata 60 60 0
QIPCRTR 2 78 832 39 8 : tunables 0 0 0 : slabdata 2 2 0
AF_VSOCK 1 25 1280 25 8 : tunables 0 0 0 : slabdata 1 1 0
fat_inode_cache 4 287 784 41 8 : tunables 0 0 0 : slabdata 7 7 0
...
Bei wichtigen Workloads ausschalten?
sysctl vm.overcommit_memory
vm.overcommit_memory = 0
What you should know about Linux memory overcommit in PostgreSQL
➜ What about MariaDB???
Gutes Tool fürs Montoring: collectd
Folien: hier
Linux Kernel: Concepts overview
Andreas B. Mundt
strace – mein schweizer Taschenmesser zum analysieren, debuggen, monitorenHarald König
$ strace echo hallo
$ strace time echo hallo
$ strace -s 99 pwd # max string size len
$ type -a echo # all variants of echo available
$ strace -o # to file
$ strace -f # follow child
$ strace -ff -o # 1 file pro PID
$ strace -t # timestamp
$ strace -tt #
$ strace -r #relative timestamps
$ strace -tttr #
$ strace -T #Kernel-Zeit
$ ... | sort -t -k2n # separator key numeric
$ strace -v # verbose
$ strace -x # hex
$ strace -e # filtern z.B. nach open/close
Folien: hier