Kernel Modules & Tuning
Manage kernel modules and runtime tunables safely, and change kernel behaviour only with a measured, reversible justification.
3 objectives 5 steps about 115 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Load, configure, blacklist and persist kernel modules with modprobe and /etc/modprobe.d, inspect module parameters under /sys/module, and explain how DKMS rebuilds out-of-tree modules and why Secure Boot requires them to be signed.
- Read and change kernel tunables with sysctl, persist them in /etc/sysctl.d, and explain the effect and risk of commonly changed settings such as vm.swappiness, dirty-page ratios, vm.max_map_count, net.core.somaxconn and inotify and file-handle limits.
- Justify a tuning change with a hypothesis, a before-and-after benchmark and a rollback plan, and apply or compare tuned profiles instead of copying settings from the internet.
Lesson plan
5 steps, about 115 min · 0 of 4 lessons available so far
- The kernel's adjustable surface: modules, parameters and /proc/sys Concept · 20 min · coming later
- Lab: load, configure, blacklist and persist a module, then rebuild one with DKMS Lab · 25 min · coming later
- Worked example: tunables worth knowing - memory, writeback, file handles and network queues Worked example · 25 min · coming later
- Lab: one tuning change with a hypothesis, a benchmark, a tuned profile and a rollback Lab · 30 min · coming later
- Check: review tuning proposals and module problems Knowledge check · 6 questions
Practise it
On a lab VM, blacklist one module and load another with a non-default parameter that survives a reboot, then build and load a provided out-of-tree module with DKMS. Next take one complaint from a provided workload (for example connection drops under burst load or slow bulk writes), write a hypothesis that names the tunable, measure before and after with a repeatable benchmark, compare against a tuned profile, persist the winning change in /etc/sysctl.d and document the rollback. Report a null result honestly if the change does not help.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.