Use it to decide whether a problem is in the application, a library, the kernel or the hardware.
Linux Architecture
Linux architecture has three layers: hardware; the kernel, which schedules processes and manages memory, devices, filesystems and networking; and user space, where libraries, shells, services and applications run. Programs ask the kernel for anything privileged through system calls.
1. Read the exact error from the application or journalctl -u <service>.
2. strace -f <cmd> 2>&1 | tail — which system call fails, with which errno?
3. ENOENT → missing file/path; EACCES → permissions/SELinux; ENODEV → driver/hardware.
4. dmesg -T | tail — kernel messages at the same time?
5. Fix the layer that returned the error.
application → library → system call → kernel subsystem → driver → hardware
For Linux Fundamentals → Linux Architecture, continue with the first unproven Topic check: Identify architecture, process, privilege context and the kernel/user-space boundary relevant to the observation. If that boundary is healthy, advance to the adjacent check: Trace the resource through library/runtime, system call or virtual-filesystem interface rather than inferring kernel state from an application error alone. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
hardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible result
Healthy evidence: the failing operation is mapped to a specific process, interface and kernel/user-space boundary with matching architecture and resource evidence.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Identify architecture, process, privilege context and the kernel/user-space boundary relevant to the observation.
- Trace the resource through library/runtime, system call or virtual-filesystem interface rather than inferring kernel state from an application error alone.
- Separate kernel capability, loaded driver/module state, configuration and actual device/resource availability.
- Verify the consumer-visible operation after proving the responsible layer instead of stopping at component presence.
Verification chain. hardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible result
Step 3 Commands Verify boundary
uname -a
ps -o pid,comm -p 1
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: privileged user space is confused with kernel mode, component presence is treated as functionality, or an application message is used to infer a kernel root cause without interface evidence.
Step 5 Common mistakes Narrow the fault
- Confusing kernel version with distribution version.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
User-space programs cannot touch hardware directly; errors such as "Permission denied" or "No such device" are the kernel's answer to a system call. strace shows those calls and their errors, which often explains a vague application message.
uname -a— kernel version and architecturestrace -f -e trace=file <cmd>— system calls the program makes and their errorsldd <binary>— shared libraries a program usesdmesg -T | tail— recent kernel messages
ReferenceWhat it is1 section · depth on demand
Core model
Start with the CPU/memory/device architecture, identify the booted kernel and loaded interfaces, then follow a user-space process through libraries or direct system calls into kernel services such as scheduling, memory management, filesystems, networking and drivers. Keep privilege identity separate from CPU execution mode.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Architecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use.
In depth
Linux architecture: hardware, kernel, user space
A Linux system is layered. The hardware sits at the bottom, and the kernel runs directly on it in a privileged mode. Everything else, from init to the shell to web servers, runs in user space, with no direct hardware access.
The boundary between the layers is the system call interface. The intro(2) manual page describes it:
- A system call is the entry point into the kernel.
- Programs usually don't make system calls directly. They call wrapper functions in the C library (glibc or musl), which do the work of entering the kernel.
- When a call fails, the wrapper typically returns -1 and sets
errnoto say why.
The layers
| Layer | Contents | Examples |
|---|---|---|
| Hardware | CPU, memory, disks, NICs, firmware | UEFI, ACPI tables |
| Kernel | Scheduler, memory management, file systems, network stack, drivers, security modules | vmlinuz, modules in /lib/modules |
| System call interface | Several hundred entry points | openat, read, write, clone, execve, mmap |
| C library | Wrappers and higher-level functions | glibc, musl |
| System services | init, logging, networking, scheduling | systemd, journald, sshd |
| Tools and applications | Shells, utilities, servers | bash, coreutils, nginx |
The kernel's main subsystems
| Subsystem | Responsible for | Visible through |
|---|---|---|
| Process management and scheduler | Creating processes, sharing CPU time | ps, /proc/<pid> |
| Memory management | Virtual memory, page cache, swap | free, /proc/meminfo |
| VFS and file systems | A single file tree over many file system types | mount, findmnt |
| Network stack | Interfaces, routing, TCP/IP, filtering | ip, ss, nft |
| Device drivers | Hardware support | lsmod, /sys |
| Security | Permissions, capabilities, namespaces, LSMs | id, getpcaps, SELinux and AppArmor tools |
Seeing the boundary
strace shows the system calls a program makes. That's the clearest way to see where user space ends and the kernel begins.
host$ strace -f -e trace=openat,read,write cat /etc/hostname 2>&1 | tail -4
openat(AT_FDCWD, "/etc/hostname", O_RDONLY) = 3
read(3, "srv1\n", 131072) = 5
write(1, "srv1\n", 5srv1
) = 5
host$ strace -c ls / > /dev/null
host$ strace -e trace=openat cat /etc/shadow 2>&1 | grep shadow
openat(AT_FDCWD, "/etc/shadow", O_RDONLY) = -1 EACCES (Permission denied)
Reading the last trace
The cat program never reads /etc/shadow itself. It asks the kernel with openat, and the kernel checks the permissions and refuses with EACCES. That's what "Permission denied" means at this level: a system call returned an error, and the C library passed it on through errno.
Documented example, not captured output.
How it works at runtime
Linux Architecture is part of Linux Fundamentals → Linux Architecture. Linux Architecture describes the practical boundary between hardware, the Linux kernel and user-space processes, with system calls, device drivers, virtual filesystems and libraries acting as interfaces rather than one undifferentiated operating-system layer.
Topic-specific state model. Linux Architecture describes the practical boundary between hardware, the Linux kernel and user-space processes, with system calls, device drivers, virtual filesystems and libraries acting as interfaces rather than one undifferentiated operating-system layer.
Interpretation rule. - User ID 0 ≠ kernel execution mode.
- A libc or runtime API call ≠ one specific system call in every implementation.
- A device node ≠ evidence that the backing device/driver is functional.
- Kernel support compiled or modular ≠ feature is configured, active or usable by the workload.
Quick reference
Linux architecture layers:
| Layer | Contents |
|---|---|
| Hardware | CPU, memory, devices |
| Kernel (ring 0) | Scheduler, memory manager, VFS, network stack, drivers, security modules |
| System call interface | ~350+ syscalls (read, write, openat, clone, execve) |
| C library | glibc or musl wraps syscalls for programs |
| User space | init (systemd), daemons, shells, applications |
strace -c ls /tmp # syscalls used by a command
cat /proc/version
ldd /bin/ls | grep libc
A program crashing stays in user space; a kernel bug (oops/panic) can take the whole system down.
Limits and how it fails
Primary failure point. Architecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Linux Architecture owns the layer model; kernel internals stay under Kernel, process/service behavior under Processes/systemd, and device/storage/network specifics in the relevant Topics.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Fundamentals → Linux Architecture. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Linux Architecture operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Linux Architecture.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Linux Architecture describes the practical boundary between hardware, the Linux kernel and user-space processes, with system calls, device drivers, virtual filesystems and libraries acting as interfaces rather than one undifferentiated operating-system layer. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin distribution/release + CPU architecture + running kernel → identify the exact process/session and kernel-versus-user-space boundary → capture shell/TTY mode and effective environment where relevant → resolve the real executable/consumer → correlate requested action with observed runtime state → verify the original workload result before changing persistent configuration. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | hardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible result | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Architecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated host, process/session and runtime evidence can establish this Linux Fundamentals proof path: hardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible result | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host, kernel, process/session, environment or workload scope. Architecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven Linux layer: preserve platform identity and the running kernel, inspect the exact process/session and effective configuration/environment, resolve the actual consumer/executable, then verify the original workload before moving into the owning Linux subsystem branch. | Continue to the next unresolved boundary while preserving the original test condition. |
Linux Architecture · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Linux Architecture |
|---|---|
| Topic path | Linux Fundamentals → Linux Architecture |
| Runtime state | Linux Architecture describes the practical boundary between hardware, the Linux kernel and user-space processes, with system calls, device drivers, virtual filesystems and libraries acting as interfaces rather than one undifferentiated operating-system layer. |
| Fast checks | - Identify architecture, process, privilege context and the kernel/user-space boundary relevant to the observation. - Trace the resource through library/runtime, system call or virtual-filesystem interface rather than inferring kernel state from an application error alone. - Separate kernel capability, loaded driver/module state, configuration and actual device/resource availability. - Verify the consumer-visible operation after proving the responsible layer instead of stopping at component presence. |
| Verification chain | hardware architecture → booted kernel → kernel subsystem/driver → syscall or virtual-filesystem interface → user-space library/runtime → process → workload-visible result Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Architecture-level evidence can localize a failure to kernel or user space, but component presence alone cannot establish successful end-to-end resource use. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |