Basic Kernel Management
Nov 17, 2025
Managing Kernel Modules
lsmodlists kernel moduleslspci -klist kernel modules that are loaded for the PCI devicesudevadm monitordynamically trace loading of kernel modulesmodprobeloads kernel modules manuallymodprobe -runload a kernel modulemodinfolists kernel parameters while loading modulesdmesglists kernel messages, use it to verify that a module was loaded
Exploring the /proc filesystem
-
man 5 procto get information about kernel parameters -
For more information, install the kernel documentation, kernel-doc, and access it through /usr/shar/doc/kernel-doc
Using sysctl
sysctlcan be used to make /proc settings persistentsysctl -alists an overview of parameters- Parameters shown are filenames relative to /proc/sys
- To change settings, add the parameter to /etc/sysctl.d
Updating the Kernel
dnf update kernel
Knowledge Check
- What does ICMP stand for?
- When tuned and sysctl parameters are in conflict, how can you determine which setting will be applied?
- What does PCI stand for?
- What process dynamically loads kernel modules when triggered by hardware events?
- How can you influence how modules and related parameters are loaded?
- How can you load a kernel module with its parameters automatically?
Answers
- Internet Control Message Protocol - a network protocol used to send error messages and operational information to diagnose issues with network communication
- The reapply_sysctl parameter in /etc/tuned/tuned-main.conf
- Peripheral Component Interconnect - a high-speed interface standard for connecting expansion cards to a computer’s motherboard
- systemd-udevd
- Modify/add rules in /usr/lib/udev/rules.d and /etc/udev/rules.d
- Use a configuration file in /etc/modprobe.d
Lab Exercise
- Find the appropriate parameter to disable answers to
pingrequests. - Test if it works by using
ping localhost
Solution
sysctl --write net.ipv4.icmp_echo_ignore_all=0
sysctl --write net.ipv6.icmp.echo_ignore_all=0
- Clint Jordan