Building a Linux AI Server
Hardware, Operating System and Networking
Before a language model can generate its first token, an entire infrastructure stack must work correctly. The processor must schedule work, memory must be allocated, storage must deliver model data, and the operating system must expose devices and network services. Linux provides the foundation that connects these independent systems.
In this engineering chapter, we move from the reference architecture to a practical server build. Our objective is not simply to install Ubuntu, but to understand the physical and operating-system dependencies that determine whether an AI workload can run reliably, securely and efficiently.
Inside the Linux AI stack
Select a layer to inspect its engineering responsibilities.
Linux operating system
The kernel manages scheduling, virtual memory, device access and networking. User-space services configure and operate the host.
Physical server topology
Illustrative topology; actual lanes, NUMA nodes and chipset paths depend on the platform.CPU
Coordinates application execution, tokenisation and host-side processing.
lscpu
Follow an AI inference request
This conceptual future-state journey shows how a request traverses the server after the inference software and GPU runtime have been installed. It is an educational animation, not a live benchmark.
Ready — start the journey or inspect each stage manually.
Inspect before you configure
Run these read-only commands on the Linux host to establish the actual hardware and networking baseline. Some utilities may require installation.
cat /etc/os-release uname -r lscpu free -h lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS lspci -nn ip -br address ip route ss -lnt
Record the output before changing network settings or installing GPU software. Do not assume the presence of a GPU, NVMe device or particular interface name.
What we will build
Hardware: identify CPU topology, memory capacity, PCIe devices and storage.
Linux: establish an updated Ubuntu Server LTS foundation and understand kernel responsibilities.
Networking: configure addressing, routing, DNS and secure administrative access.
Operations: establish performance baselines, service health and host security before deploying AI workloads.
GPU drivers, CUDA and NVIDIA container integration are covered in Part 03. Actual performance and compatibility require testing on the target server.
AI Server Hardware Architecture and Component Selection
We will examine the trade-offs between compute, memory capacity, GPU connectivity, storage throughput, cooling and network bandwidth.
Network Insight • Original educational architecture • Illustrative topology and request flow
Explore the Linux AI Server
Nine engineering domains, one integrated infrastructure. Select a module to jump directly to its editorial section.
Hardware Architecture
Explore section →EDITORIAL 02
CPU and NUMA
Explore section →EDITORIAL 03
GPU, PCIe and DMA
Explore section →EDITORIAL 04
NVMe Storage
Explore section →EDITORIAL 05
Ubuntu Linux
Explore section →EDITORIAL 06
Kernel and Scheduling
Explore section →EDITORIAL 07
Networking and DNS
Explore section →EDITORIAL 08
Security and Hardening
Explore section →EDITORIAL 09
Performance and Readiness
Explore section →
Select an editorial module to begin.
AI Server Hardware Architecture and Component Selection
Engineering the physical foundation of a private AI platform.
01 — Start with the workload, not the GPU
An AI server is a coordinated system of compute, memory, storage, interconnects and power delivery. Purchasing the fastest accelerator does not automatically produce the fastest inference service. The server must load model weights, allocate runtime memory, process incoming requests, move tensors and return generated tokens. Each stage places different demands on the underlying hardware. A component that is excellent in isolation may become constrained by another part of the system.
Begin by defining the model family, parameter count, numerical precision, maximum context length, concurrent requests and acceptable latency. Interactive assistants typically care about time to first token and the rate at which subsequent tokens arrive. Batch processing may prioritise aggregate throughput instead. Training introduces additional memory requirements for gradients, optimiser state and activations. A server intended for inference should therefore not be sized using training assumptions without examining the actual workload.
For a first private AI laboratory, a single accelerator with sufficient device memory is often a more manageable starting point than a distributed system. It removes collective communication and cross-device placement from the initial troubleshooting process. The design should nevertheless leave room for future storage expansion, adequate power delivery and a network interface suited to the expected traffic.
Inside the physical AI server
Handles request processing, tokenisation, runtime scheduling and host-side data preparation. Inspect core count, memory channels and PCIe lane allocation.
02 — CPU and system memory
The CPU remains responsible for substantial host-side work even when the GPU executes the neural network. Network services, tokenisation, request queues, file access and runtime orchestration consume CPU cycles. A balanced server provides enough cores to handle those tasks without excessive contention. Core count alone is insufficient: memory bandwidth, clock behaviour, cache capacity and the platform's I/O capabilities also matter.
System RAM holds the operating system, application processes, file cache and potentially model weights or tensors that are not resident on the accelerator. CPU offloading can make a model fit when device memory is limited, but transferring data across PCIe can introduce significant latency. Host RAM is not equivalent to GPU memory, and increasing it does not automatically improve GPU-resident inference throughput.
On multi-socket systems, memory is physically associated with particular processors. A process using remote memory or a GPU attached to another socket may traverse additional interconnects. This is the foundation of non-uniform memory access, or NUMA. Inspect topology before applying CPU affinity or memory binding; an inappropriate binding policy can reduce rather than improve performance.
03 — GPU compute and device memory
GPU selection begins with software compatibility and usable VRAM. A model's weight footprint depends on its parameter count and representation. A seven-billion-parameter model represented with two bytes per parameter requires approximately 14 GB of raw weight storage, or 13.04 GiB. This is not a complete runtime memory estimate. The key-value cache, temporary buffers, allocator overhead and execution workspace consume additional capacity.
Quantisation reduces weight storage and may improve throughput when the runtime and hardware support the chosen representation efficiently. Actual formats may include scales, metadata and mixed-precision tensors, so the nominal bit width is only a starting point. Lower precision may also affect model quality. Benchmark the intended model and workload rather than assuming every quantised model will behave identically.
During autoregressive decoding, repeatedly accessing weights and cached state can make memory bandwidth a major constraint, especially at low batch sizes. Prefill processes the input sequence and can have a different compute profile. The distinction matters because a GPU with high theoretical arithmetic throughput is not guaranteed to deliver proportionally higher token throughput.
Estimate model weight storage
Formula: parameters × bits ÷ 8. Excludes KV cache, runtime buffers, quantisation metadata and other overhead. Not a GPU fit guarantee.04 — PCIe lanes and platform topology
PCI Express provides point-to-point links between host processors and peripheral devices. A slot's physical size does not establish its electrical lane count. A full-length connector may operate at x8 or x4, and installing an additional SSD or accelerator can change lane allocation on some motherboards. Consult the platform block diagram and slot population rules before selecting components.
PCIe 4.0 x16 provides approximately 31.5 GB/s of theoretical one-direction bandwidth after line encoding, before transaction overhead. PCIe 5.0 x16 approximately doubles that figure. Real transfers are affected by negotiated link width and speed, protocol overhead, DMA implementation, memory locality and workload characteristics. These values should not be confused with GPU-local memory bandwidth.
Multiple GPUs introduce further constraints: physical spacing, power connectors, cooling, peer-to-peer support and the interconnect path between devices. Two GPUs with 24 GB each do not automatically behave as one 48 GB accelerator. The serving framework must explicitly distribute model state or work across devices, and communication can become a limiting factor.
05 — Storage and network architecture
NVMe storage is useful for model repositories, container images and datasets. Cold-start performance depends on the entire loading pipeline, including file reads, model parsing and transfers into device memory. A fast SSD can shorten loading times without changing steady-state generation performance once the model is resident. Separate operating system and workload storage where operational requirements justify it, and reserve capacity for logs, temporary files and model revisions.
Network capacity should follow the traffic pattern. A local inference API serving text requests may not require a high-speed fabric, whereas distributed inference, remote storage or model replication can create substantial east-west traffic. Select interfaces, switches and cabling together. Higher link rates alone cannot correct packet loss, congestion, poor routing or an unsuitable distributed execution strategy.
06 — Power, cooling and reliability
Size the power supply against the complete system, including accelerator power limits, CPU consumption, drives, fans and transient demands. Check manufacturer guidance, connector compatibility and chassis airflow. Sustained inference can expose thermal limits that a short benchmark misses. A stable system must maintain safe temperatures and predictable performance under realistic load.
For enterprise use, consider ECC support across the relevant memory subsystem, remote management, redundant power where appropriate, replaceable components and backup strategy. RAID or mirrored storage can improve availability against some device failures but does not replace independent backups. Hardware reliability is part of the service architecture, not a separate purchasing exercise.
| Design dimension | Entry laboratory | Advanced workstation | Enterprise node |
|---|---|---|---|
| GPU | Single 12–16 GB | Single 24–48 GB or supported multi-GPU | Workload-sized data centre accelerators |
| Host RAM | 32–64 GB | 64–128 GB or more | Capacity and channels sized to workload |
| Storage | 1–2 TB NVMe | Dedicated model storage | Redundant or distributed storage as required |
| Networking | 1–2.5 GbE | 10 GbE where justified | Fabric sized for east-west traffic |
| Primary goal | Learning and small models | Local serving and experimentation | Capacity, availability and scale |
07 — Inspect the actual Linux server
Before installing an AI runtime, record the physical and logical topology. These read-only commands provide a baseline for subsequent driver installation and performance investigation. Some utilities may require installation on a minimal Ubuntu system.
lscpu
free -h
lsblk -o NAME,SIZE,TYPE,MODEL,TRAN
lspci -nn
lspci -tv
ip -br link
ip -br address
ip route
# Optional, if numactl is installed:
numactl --hardware
# Optional: inspect negotiated PCIe link details
sudo lspci -vvCompare the detected CPU sockets, memory capacity, storage devices and PCIe hierarchy with the intended design. A GPU visible in PCI enumeration is not proof that its compute driver is operational. That validation belongs to the next part of the series. Likewise, an interface appearing in Linux does not establish end-to-end network connectivity.
Document your target model and workload, required device memory, host memory capacity, motherboard lane allocation, power and cooling constraints, storage plan and network requirements. Resolve compatibility questions before purchasing or installing components. Retain the Linux inventory as a baseline for later deployment tests.
Further reading: Linux PCI documentation · CUDA best practices guide · Ubuntu Server documentation. Reference links are provided for independent verification.Build your own AI server
Design a hardware configuration and test it against an inference workload. Explore the trade-offs between accelerator memory, host memory, storage, PCIe connectivity and power delivery.
Choose a starting architecture
Generic hardware profiles, not certified product configurations.
01 / Configure hardware
02 / Define inference workload
KV cache assumes dense attention and 16-bit KV elements. Set architecture parameters from the actual model configuration. Quantisation metadata and allocator overhead vary.
03 / Inspect the physical data path
Logical topology only. Actual root complexes, NUMA nodes, switches, slot wiring and storage lanes depend on the motherboard.
04 / Engineering assessment
Configuration findings
05 / Practical engineering challenge
Configure a single 24 GiB GPU for an 8B model, then increase concurrency and context length. Observe the KV cache growth. Next try a 70B model and compare single-device placement with ideal sharding. Finally, reduce the available PCIe lanes and inspect the bandwidth estimate.
Validate on Linux
lscpu free -h lspci -nn lspci -tv lsblk -o NAME,SIZE,TYPE,MODEL numactl --hardware # After NVIDIA driver installation (Part 03): nvidia-smi nvidia-smi topo -m
Use sudo lspci -vv to inspect negotiated link width and speed. Compare actual GPU memory use under load with the estimate. Do not treat this simulator as a hardware compatibility certification: verify motherboard slot wiring, firmware, cooling, connectors, power transients and model/runtime support before purchasing or deploying.
CPU Architecture, NUMA and Memory Locality
Platinum Linux Compute and Memory Engineering Editorial Edition · Widget 03 V2 — Light Edition
A GPU may perform the majority of tensor arithmetic in an inference server, but the host processor still orchestrates the work. It accepts network requests, tokenises input, manages queues, prepares buffers and submits accelerator operations. A poorly balanced host can leave an expensive accelerator waiting for work even when its theoretical compute capacity is enormous. Designing an AI server therefore begins with understanding the relationship between compute, memory and I/O rather than simply counting cores.
01 / The host CPU as an orchestration engine
Physical cores execute instructions using pipelines, execution units and registers. Simultaneous multithreading exposes additional logical CPUs that share some physical core resources; two logical CPUs are not equivalent to two independent cores. Linux schedules runnable threads onto these logical CPUs. Tokenisation, HTTP processing, decompression and data preparation can compete for execution resources and cache capacity. CPU selection should consider sustained throughput, memory channels, PCIe connectivity and power limits alongside clock frequency.
Inference workloads differ substantially. GPU-resident model execution may need relatively modest host compute, whereas CPU inference, embedding generation and large concurrent preprocessing pipelines can require substantial CPU resources. Measure host utilisation per core and queueing behaviour before assuming that more CPU cores will improve token throughput.
02 / The memory hierarchy
Registers and caches provide progressively larger but generally slower storage close to execution units. L1 and L2 caches are often private to a core, while last-level cache sharing depends on the processor design. DRAM provides much greater capacity at higher access latency. Cache lines, hardware prefetching and access patterns influence how effectively the CPU can use memory bandwidth. Random accesses may incur repeated cache misses, whereas contiguous buffers can benefit from spatial locality.
Immediate operands and hot instructions or data
Working sets and shared cache resources
Memory attached to the local NUMA domain
Memory accessed through an inter-domain fabric
L1: small, low-latency cache; repeated access to hot data can avoid deeper memory requests.
Memory bandwidth is not the same as memory latency. Bandwidth describes how much data can be transferred over time; latency describes the delay of an individual operation. A workload with many independent accesses may hide some latency through concurrency, while a dependent pointer chain cannot easily do so. CPU-based model decoding can be limited by memory bandwidth when weights must be repeatedly streamed through the memory subsystem.
03 / NUMA: why memory location matters
Non-uniform memory access describes a system in which memory access cost depends on the relationship between the requesting CPU and the memory location. A dual-socket server commonly exposes multiple NUMA nodes, but a single socket can also expose several nodes depending on its architecture and firmware configuration. Each domain has an affinity to particular CPUs and memory resources. Remote accesses cross an interconnect and may increase latency or consume shared fabric bandwidth.
CPU 0 accesses RAM 0 without traversing the inter-node fabric.
Conceptual topology, not a detected hardware layout. GPU path represents host-side PCIe connectivity, not a CPU copy requirement for every GPU operation.
04 / Linux scheduling and memory placement
Linux tracks CPU topology and attempts to balance runnable tasks while respecting affinity constraints. A process may migrate between CPUs, potentially losing warm cache state. Memory allocation commonly follows first-touch behaviour under the default policy: physical pages are allocated when first accessed, subject to available memory and policy constraints. Initialising a large buffer on one node and processing it on another can therefore create remote memory traffic. Automatic NUMA balancing can improve placement for some workloads, but migration has overhead and is not universally beneficial.
CPU affinity constrains where threads execute; memory policy constrains or influences where pages are allocated. They are separate mechanisms. Binding a process to a CPU node does not automatically relocate all previously allocated memory. Strict memory binding can fail when the selected node lacks sufficient capacity. Interleaving can be useful for bandwidth-oriented workloads but may increase remote accesses. Compare policies under a controlled workload rather than applying a universal tuning recipe.
05 / GPU locality and host-side data movement
A PCIe GPU is associated with a host I/O topology. When a GPU and its host buffers are attached to different NUMA domains, transfers may traverse an additional interconnect. Pinned host memory can support efficient DMA transfers, but excessive pinning reduces memory available for other operating system activities. A GPU-resident model does not necessarily transfer its weights from host DRAM for every token; the important paths depend on the serving engine, offloading strategy and request lifecycle.
On multi-GPU servers, inspect GPU-to-GPU and GPU-to-NIC connectivity as well as CPU affinity. PCIe switches, root complexes and accelerator interconnects influence the available communication paths. The operating system's NUMA view alone does not establish peer-to-peer capability or actual collective communication performance.
Weighted mean access latency: 115 ns
Assumes 100 ns local and 160 ns remote access latency. Weighted arithmetic model only; excludes cache hits, overlap, congestion and bandwidth effects. Not a hardware benchmark or inference latency prediction.
06 / Practical Linux inspection laboratory
Start with read-only topology inspection on the target Ubuntu server. Install numactl and pciutils from the distribution repositories if missing, subject to local change-control policy. Record the CPU model, socket count, NUMA node membership and memory capacity. Virtual machines may expose synthetic topology, so compare guest information with host configuration when available.
lscpu lscpu -e=CPU,NODE,SOCKET,CORE numactl --hardware free -h lspci -tv cat /sys/devices/system/node/online numastat
Inspect a running inference or preprocessing process by replacing PID with its actual numeric process ID. The commands below report allowed CPU and memory masks and page distribution; they do not prove that every access is local.
grep -E 'Cpus_allowed_list|Mems_allowed_list' /proc/PID/status numastat -p PID cat /proc/PID/numa_maps
On a laboratory machine with node 0 available, launch a representative benchmark using the default policy and then with explicit node binding. Replace the placeholder executable with your own benchmark. Use a fresh process for each run, keep workload size and concurrency fixed, and repeat trials. A single-node machine cannot demonstrate remote-node effects.
./your-benchmark numactl --cpunodebind=0 --membind=0 ./your-benchmark # Only on a machine with node 1 and sufficient free memory: numactl --cpunodebind=0 --membind=1 ./your-benchmark
07 / Production performance engineering
Evaluate throughput, time to first token, inter-token latency and tail latency alongside CPU utilisation, memory pressure and GPU utilisation. A locality optimisation that improves a microbenchmark may have little impact on an inference service if GPU execution is the dominant bottleneck. Conversely, high request concurrency can expose host-side bottlenecks that are invisible in a single-request test. Preserve baseline measurements and change one variable at a time.
Container CPU and memory restrictions can alter the effective topology available to a service. Inspect the actual process affinity and cgroup configuration instead of assuming that a container sees or can use all host resources. Reserve capacity for system services and networking, and avoid strict placement policies that leave one domain overloaded while another remains idle.
Which change most directly tests the effect of remote DRAM access?
Select an answer.
Engineering conclusion
Build a topology inventory before tuning. Identify the CPU, memory and accelerator relationships, establish a reproducible baseline, then test locality policies against the actual application. The next editorial examines PCIe, DMA and IOMMU architecture in greater depth.
Further reading: Linux kernel NUMA memory policy · numactl manual. Original educational explanation; example topology and calculator are illustrative.
CPU & NUMA Memory Locality Simulator
Investigate the cost of crossing a socket boundary. Configure a dual-socket Linux server, place a worker and its memory, then follow the host-to-GPU data path. All numerical results are illustrative model outputs, not hardware measurements.
01 / Engineering scenarios
Local baseline: worker, memory and GPU share node 0.
02 / Workload placement
03 / Physical topology
Blue = local path; amber = cross-socket path. GPU paths originate from the allocated host memory, not necessarily the worker CPU.
04 / Performance analysis
Inspect model assumptions and equations
Local DRAM: 90 ns; remote DRAM: 150 ns. Mean latency = weighted average. Dependent access time in ms = access count in millions × mean latency in ns. This assumes serial dependent DRAM misses, not cache hits or parallel memory traffic. Effective local DMA bandwidth: 24 GB/s; remote DMA: 14 GB/s (decimal). Transfer time in ms = bytes / (bandwidth × 10⁶). Interleaved memory splits bytes equally; segment times are summed. Total = access time + DMA time, with no overlap. These are configurable architecture concepts represented by fixed teaching assumptions, not predictions of LLM throughput.
05 / Linux verification console
Inspect real topology before applying affinity. The simulated CPU IDs and GPU numbers may differ from your server.
Requires numactl; nvidia-smi requires NVIDIA drivers (covered in Part 03). Binding can fail when restricted by a container or cpuset. Run benchmarks only on a test workload. GPU visibility does not itself enforce CPU or memory locality.
06 / Incident challenge
A worker must remain on node 1 and use GPU 1. Its buffers currently reside on node 0. Restore locality without moving the worker or GPU.
Load the incident to begin.
In a real application, changing a memory policy does not necessarily migrate existing pages. Restart or explicitly migrate buffers as appropriate, then verify placement.
Engineering takeaway
CPU affinity, memory policy and GPU attachment are distinct controls. Linux first-touch placement normally allocates anonymous pages near the CPU that first writes them, subject to policy and available memory. Interleaving may help bandwidth-bound workloads but can increase latency for a pinned worker. Measure before tuning: inspect NUMA counters, actual workload throughput and GPU topology. Automatic NUMA balancing, huge pages, cache reuse, concurrent DMA and platform-specific interconnects can all change the outcome.
GPU Hardware, PCIe, DMA and IOMMU Architecture
Platinum AI Accelerator and Hardware Data Movement Engineering Editorial Edition · Widget 04 V1 — Light Edition
An AI accelerator is not an isolated compute device. It is an endpoint within a larger system of processors, memory controllers, buses and operating-system resource managers. A GPU can execute enormous numbers of tensor operations while still spending time waiting for inputs, memory allocations or synchronisation. Building a balanced Linux AI server requires understanding these dependencies before installing the accelerator software stack.
01 / Inside the accelerator
A modern GPU groups parallel execution resources into compute units; NVIDIA calls these streaming multiprocessors (SMs). Threads execute in groups called warps on NVIDIA hardware. Registers, shared memory and caches provide progressively different capacities and access characteristics. Tensor cores accelerate supported matrix operations, while other execution units handle general arithmetic, address calculations and control flow. Achievable throughput depends on data types, kernel implementation, occupancy and memory access patterns, not simply the advertised peak FLOPS.
Device memory may be GDDR or high-bandwidth memory (HBM), depending on the accelerator. Its capacity determines how much model state can remain resident; its bandwidth influences how quickly that state can be accessed. Autoregressive decoding at small batch sizes is often limited by memory traffic, whereas large prefill operations may be more compute-intensive. Neither observation is universal: sequence length, batching, quantisation and attention implementation change the balance.
02 / PCI Express: the host-to-device fabric
PCIe connects endpoints to a root complex through point-to-point links. Each lane supports independent transmit and receive directions. A physical x16 slot does not guarantee sixteen electrically connected lanes, and the negotiated generation may be lower than the maximum supported by either device. Motherboard wiring, bifurcation, firmware and shared resources can all affect the result. A switch can fan out connectivity, but devices sharing an upstream link may contend for its capacity.
PCIe generations 3, 4 and 5 operate at 8, 16 and 32 GT/s per lane respectively, with 128b/130b encoding. A Gen4 x16 link therefore has an encoding-adjusted theoretical ceiling of approximately 31.51 GB/s in each direction. Transaction headers, flow control, implementation overhead and workload behaviour reduce application payload throughput. Do not double this figure when estimating a one-direction model upload.
Host buffers are mapped for DMA; a transfer engine moves data over PCIe into device memory. The drawing is a logical path, not a physical wiring diagram.
03 / DMA and pinned host memory
Direct memory access allows a device to transfer data without the CPU copying each individual byte. The CPU and driver still establish mappings, submit work and handle completion. GPU copy engines can overlap transfers with computation when hardware capabilities, dependencies and software scheduling permit. DMA does not eliminate latency or the need for synchronisation.
Pageable host memory can be moved by the operating system. GPU runtimes may stage pageable buffers through pinned memory before a transfer. Page-locked host buffers can support more predictable asynchronous transfers, but excessive pinning reduces the memory available for normal system management. Reusing bounded staging buffers is generally preferable to repeatedly allocating and pinning large regions. NUMA locality also matters: host buffers allocated on a remote socket may introduce additional interconnect traffic.
04 / IOMMU and device isolation
The input-output memory management unit translates device-visible I/O virtual addresses into physical memory addresses and enforces permitted mappings. It helps constrain DMA to memory assigned to a device. This is distinct from the CPU MMU, which translates CPU virtual addresses. IOMMU translation can introduce overhead, but its effect depends on hardware, mapping sizes, caching and workload.
Virtual machine GPU passthrough commonly uses VFIO and IOMMU groups. A group represents devices that cannot necessarily be isolated independently under the platform topology. Access Control Services and firmware influence grouping. Do not disable IOMMU or bypass isolation merely to improve a benchmark. Containers normally share the host kernel and GPU driver; exposing a GPU device to a container is not equivalent to assigning an isolated PCIe function to a virtual machine.
05 / GPU memory residency and multi-GPU communication
Keeping model weights and frequently accessed state in device memory avoids repeated host transfers. Model loading is typically a startup operation; steady-state inference need not transfer the entire model for every request. Offloading weights or KV cache to host memory changes this behaviour and can make PCIe bandwidth a significant constraint. Quantisation reduces some storage requirements but does not guarantee proportional end-to-end speedups.
Multiple GPUs introduce communication dependencies. PCIe peer-to-peer access depends on platform topology, hardware and software support; some systems instead stage transfers through host memory. NVLink, where supported, offers a separate accelerator interconnect, but it does not automatically merge all device memory into a single transparent pool. Tensor parallelism and other distributed execution strategies must explicitly manage communication and synchronisation.
Illustrative sustained transfer model; excludes startup latency, contention and memory bottlenecks. GB uses decimal units; GiB uses binary units.
06 / Linux hardware inspection
Before installing GPU drivers, establish whether Linux enumerates the accelerator and whether its negotiated PCIe link matches the intended topology. Inspect the root complex, upstream bridges and NUMA association. A device reporting NUMA node -1 has no known association exposed by the kernel; it does not prove that the device is physically local to every CPU.
lspci -Dnn | grep -Ei 'VGA|3D|Display' lspci -tv lscpu numactl --hardware # Replace with the actual PCI domain:bus:device.function GPU=0000:01:00.0 sudo lspci -s "$GPU" -vv cat /sys/bus/pci/devices/$GPU/numa_node cat /sys/bus/pci/devices/$GPU/current_link_speed cat /sys/bus/pci/devices/$GPU/current_link_width readlink /sys/bus/pci/devices/$GPU/iommu_group sudo dmesg | grep -Ei 'IOMMU|DMAR|AMD-Vi|AER'
Compare LnkCap with LnkSta in the verbose PCIe output. Some devices reduce link speed while idle, so investigate under a representative workload before concluding that a link is faulty. Missing sysfs attributes, unavailable numactl or restricted kernel logs may require platform-specific investigation. These commands are inspection steps, not evidence that a specific server has passed validation.
07 / Production design and failure investigation
When selecting a platform, check electrical lane allocation, CPU socket affinity, physical clearance, power delivery and cooling against vendor specifications. Validate each accelerator independently before testing concurrent transfers. Record firmware versions and the negotiated topology, then compare observed performance against a baseline under equivalent workload conditions. PCIe corrected errors, link retraining or unexpected width reductions deserve investigation, especially when they correlate with workload failures.
For inference performance, separate model loading time, request queueing, time to first token and steady-state token generation. A slow startup may be a storage or transfer problem; slow decoding may instead be a device-memory bandwidth issue. Profiling should guide changes rather than assuming that a faster PCIe generation will improve every metric. Driver installation, CUDA and GPU container runtime configuration are reserved for Part 03 of this series.
A Gen4 GPU capable of x16 negotiates x8. What happens to its theoretical one-direction PCIe bandwidth ceiling?
Select an answer to validate your understanding.
Next: Widget 13 — Interactive PCIe Bandwidth and GPU Data Transfer Simulator.
PCIe Bandwidth & GPU Data Transfer Simulator
Follow a model from host memory to accelerator memory. Explore negotiated link width, DMA efficiency, shared uplinks and the benefit of keeping tensors resident on the GPU. This is a deterministic educational model, not a hardware benchmark.
01 / Engineering scenarios
02 / Configure the data path
Residency applies to host-to-device only. Reverse transfers use the same simplified endpoint budgets; actual read and write rates differ.
03 / Live accelerator topology
Ready. Animation is schematic, not real-time.
04 / Calculated results
05 / Compare link generations
The comparison holds width, transfer efficiency, endpoint budgets and concurrency constant. PCIe Gen3–5 use 128b/130b encoding. GB/s is decimal; GiB is binary. Full-duplex capacity is not added to a one-direction transfer.
06 / Incident investigation — restore accelerator throughput
A server expected to negotiate Gen4 x16 has fallen back to x4. Its pageable buffer also reduces estimated throughput. Load the degraded scenario, then restore Gen4 x16 and pinned memory. Keep one stream, no upstream cap and zero residency. Achieve at least 25 GB/s per transfer.
Awaiting validation.
07 / Linux validation
lspci -Dnn | grep -Ei 'VGA|3D controller' # Replace BDF with the GPU PCI address: sudo lspci -s BDF -vv # Compare LnkCap and LnkSta cat /sys/bus/pci/devices/BDF/current_link_speed cat /sys/bus/pci/devices/BDF/current_link_width # After NVIDIA drivers are installed (Part 03): nvidia-smi topo -m
Check negotiated speed under load: idle power management may lower link speed. Inspect upstream bridges as well as the GPU endpoint. A CUDA bandwidth test after driver installation can measure actual pinned and pageable transfers.
08 / Engineering interpretation
DMA allows a device to move data without CPU copying every byte. Pinned memory can enable efficient asynchronous DMA, but excessive pinning reduces memory available to the OS. An IOMMU translates device addresses and supports isolation; this model does not estimate translation overhead.
Multiple streams sharing a link compete for capacity. Real overlap depends on copy engines, transfer direction, topology and software scheduling. Keeping model weights resident avoids repeated host-to-device transfers, but consumes VRAM. GPU-to-GPU peer transfers and NVLink require separate topology-aware measurements.
NVMe Storage and AI Model Storage Architecture
Widget 05 V1 · Platinum Light AI Infrastructure Storage Engineering Editorial Edition
A private AI server must move model weights from durable storage into the memory hierarchy before useful computation can begin. A fast GPU cannot compensate for a slow or unreliable model-loading pipeline. Storage engineering is therefore not merely a question of capacity: it determines cold-start latency, checkpoint recovery, model switching and the ability to operate several workloads without unpredictable interference. The correct design begins by separating durable storage, host memory and accelerator memory, then measuring each boundary independently.
01 / NVMe and the physical storage fabric
NVMe is a command protocol designed for non-volatile memory. A local NVMe SSD typically communicates over PCI Express, rather than the SATA interface used by older drives. The controller translates logical block requests into flash operations, manages error correction, wear levelling and garbage collection, and may use DRAM or host memory for mapping metadata. The host sees logical blocks rather than raw NAND pages.
A PCIe Gen4 x4 link has a theoretical one-direction encoded data rate of approximately 7.88 GB/s before transaction overhead; Gen5 x4 doubles that to about 15.75 GB/s. Neither figure guarantees SSD throughput. Controller capability, NAND parallelism, temperature, firmware and workload determine the actual result. A drive connected through a chipset may also share an upstream link with network and other storage devices. Inspect the negotiated link, not merely the connector label.
02 / Submission queues, completion queues and DMA
NVMe uses submission and completion queues in host memory. The driver places a command into a submission queue and updates a controller doorbell register. The controller fetches the command, transfers data using DMA and writes a completion entry. Interrupts or polling allow the host to discover completed requests. The driver then completes the corresponding block I/O operation. Multiple queues reduce contention and permit parallel outstanding requests.
Queue depth represents outstanding work, not the number of CPU cores or the guaranteed number of operations per second. A deeper queue can expose device parallelism, but may increase waiting time. Sequential model reads often benefit from large requests and read-ahead, whereas vector database and metadata workloads may issue smaller random operations. The optimum queue depth depends on the latency objective and the device.
The controller transfers model file blocks into host memory; buffered reads may populate the Linux page cache.
03 / Linux block storage and filesystem architecture
Linux exposes NVMe namespaces as block devices such as /dev/nvme0n1. A namespace may contain a partition table, partitions, an LVM physical volume or a filesystem. The Linux block layer translates filesystem I/O into requests and the blk-mq subsystem distributes work through software and hardware dispatch queues. Device naming can change across boots; persistent mounts should normally use filesystem UUIDs or stable device identifiers.
Ext4 and XFS are established choices for local Linux AI storage. Both support large files and journalling of metadata, but their behaviour varies with allocation patterns and workload. Filesystem journalling is not a substitute for application-level durability or backups. LVM can simplify volume management, while RAID may provide redundancy or throughput depending on layout; neither automatically protects against deletion, corruption or ransomware. Separate operating-system, model and checkpoint volumes where isolation or recovery requirements justify it.
04 / Model files, page cache and accelerator residency
Model weights may be stored in formats such as safetensors or GGUF. A loader may read files explicitly, memory-map them, convert their representation or distribute shards across devices. A memory mapping does not mean all bytes have already been read: page faults can trigger reads as pages are touched. Buffered reads may be served from the Linux page cache on subsequent runs, making warm starts very different from cold starts.
For conventional GPU loading, data passes through host memory before reaching accelerator memory. Specialised direct-storage paths can reduce host staging on supported hardware and software, but must not be assumed available. Once weights reside in VRAM, token generation generally depends more on accelerator memory and computation than SSD throughput. CPU offload, disk offload and model eviction change that relationship. Measure time to model readiness separately from time to first token and steady-state tokens per second.
Estimate a simplified sequential loading pipeline. Decimal GB and GB/s are used throughout; rates are effective assumptions, not benchmark results.
Excludes allocation, parsing, decompression, initialization and pipeline fill/drain. Ideal overlap is a lower-bound approximation. Assumes the model fits the target memory and the stated rates can be sustained.
05 / Throughput, IOPS and latency
Throughput measures bytes per second; IOPS measures completed operations per second. At a fixed request size, throughput equals IOPS multiplied by bytes per operation. For example, 100,000 operations per second at 4 KiB corresponds to 409.6 MB/s, not several gigabytes per second. Large sequential model reads and small random database reads therefore require different performance measurements.
Latency distributions matter more than a single average when several services share a drive. Checkpoint writes can contend with model reads and create long-tail delays. SSD write performance may decline after a pseudo-SLC cache fills, and sustained workloads may trigger thermal throttling. Capacity utilisation and garbage collection can also change behaviour. Measure sustained workloads and report request size, queue depth, concurrency, cache state and percentile latency.
06 / Designing durable AI storage
A practical private AI server can begin with a dedicated OS volume and a separate model volume, with additional capacity for datasets, container layers, embeddings and checkpoints. Maintain a model manifest containing version, source, checksum and licence. Use permissions appropriate to the service account, verify downloads and avoid exposing model or dataset directories unnecessarily. Keep sensitive datasets encrypted where required, with an explicit key recovery process.
Checkpoints should be written using the application’s supported consistency mechanism. A common pattern is writing to a temporary path, ensuring required data is durable, then publishing a completed checkpoint atomically where the filesystem and application support it. Retain multiple generations and test restoration. Monitor available space, temperature, media errors, spare capacity and endurance indicators; a healthy SMART report alone cannot guarantee that a drive will not fail.
07 / Practical Linux inspection and validation
Begin with read-only inspection. Identify the namespace, mount point and physical PCIe endpoint before interpreting performance. The following commands assume Ubuntu Linux; nvme-cli, pciutils, sysstat and fio may need installation. Replace example device names with those verified on your server.
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS,MODEL findmnt df -hT lspci -Dnn | grep -i 'non-volatile' sudo nvme list sudo nvme smart-log /dev/nvme0 # Replace with the actual PCI address: sudo lspci -s 0000:01:00.0 -vv | grep -E 'LnkCap:|LnkSta:' iostat -xz 1
For a non-destructive sequential read test, select an existing large regular file on the intended model filesystem. The command below uses read-only protection and direct I/O to reduce page-cache effects. Run during a maintenance window: even read-only benchmarking can disrupt production services. Direct I/O may not be supported by every filesystem or file alignment.
fio --name=model-read --filename=/path/to/existing-model-file \ --readonly --rw=read --bs=1M --ioengine=libaio \ --direct=1 --iodepth=16 --numjobs=1 --time_based \ --runtime=30 --group_reporting
Record the measured bandwidth and latency alongside drive temperature and link state. Compare actual application cold and warm startup times without dropping system-wide caches on a production host. If throughput is low, inspect link negotiation, concurrent I/O, CPU utilisation, thermal conditions and filesystem behaviour before replacing hardware.
Investigate a slow model startup
A model takes much longer to load after a reboot than when restarted immediately. Which explanation should you investigate first?
Select an explanation to validate your reasoning.
Next laboratory: Widget 14 — Interactive NVMe Model Loading and Storage Performance Simulator.
Interactive NVMe Model Loading & Storage Performance Simulator
Trace model weights from persistent storage to host memory and accelerator memory. Change the workload, inspect the limiting resource and resolve a simulated production incident.
01 — Storage data journey
02 — Configure the workload
03 — Engineering telemetry
Source read time
GPU transfer time
04 — Incident investigation
A 32 GB model is taking too long to load. Inject the thermal incident, then restore cooling (thermal factor), reduce contention and choose an appropriate request size. Target: cold sequential loading within 7 seconds, with sufficient GPU memory.
Awaiting investigation.
05 — Validate on Linux
Inspect device topology, controller health and live I/O before changing the infrastructure. Some tools require installation or elevated privileges.
lsblk -o NAME,MODEL,SIZE,TRAN,MOUNTPOINTS lspci -nn | grep -i 'non-volatile' sudo nvme list sudo nvme smart-log /dev/nvme0 iostat -xz 1 free -h
For a read-only benchmark, choose an existing dedicated test file on the target filesystem. Never substitute a raw production device. The command below assumes a suitable existing file and Linux io_uring support.
fio --name=model-read --filename=/path/to/existing-test-file --readonly --rw=read --bs=1M --iodepth=16 --ioengine=io_uring --direct=1 --time_based --runtime=20 --group_reporting
Direct I/O bypasses the normal page cache; compare it with actual application startup measurements rather than treating it as an exact model-loading benchmark. Avoid dropping system caches on a production server.
06 — Engineering interpretation
Queue depth can improve utilisation by keeping requests in flight, but cannot exceed the device or fabric ceiling. Small requests may be IOPS-limited even on a fast sequential SSD. Concurrent readers share finite bandwidth, while thermal throttling can reduce sustained performance. Warm page cache removes the disk-read stage but not the host-to-device transfer. Once weights reside in VRAM, token generation usually depends more on accelerator compute and memory bandwidth than on NVMe, unless offloading or paging is involved.
Ubuntu Linux Installation and Operating System Architecture
Widget 06 V1 · Platinum Light Linux Infrastructure Foundation Engineering Editorial Edition
Installing Linux on an AI server is not simply a preliminary administrative task. It establishes the trust boundary, device discovery mechanisms, memory management, network connectivity and service lifecycle on which every subsequent inference workload depends. A reliable installation is reproducible, observable and recoverable. This reference build uses Ubuntu Server 24.04 LTS as a stable example, with a dedicated local console and an empty installation disk. GPU driver and CUDA installation are deliberately reserved for Part 03.
01 / Firmware and the boot chain
When power is applied, platform firmware initializes processors, memory and PCIe devices. UEFI identifies a boot entry pointing to an executable on the EFI System Partition (ESP), normally formatted FAT32. On a typical Ubuntu Secure Boot installation, signed shim loads GRUB, which loads the kernel and initial RAM filesystem. The initramfs contains the early userspace tools needed to discover the root filesystem, including storage drivers and, where configured, LVM or encryption support. The kernel then mounts the real root filesystem and transfers control to the installed userspace.
Secure Boot verifies signatures in the boot chain according to platform trust policy; it is not disk encryption and does not guarantee that all runtime software is safe. Keep firmware current using the hardware vendor's supported process. Do not disable Secure Boot merely to make a later GPU driver installation easier: signed modules or appropriate key enrollment may be available. Record firmware mode, boot order and storage controller settings before deployment.
From power-on to multi-user Linux
02 / Installation planning and media
Download the Ubuntu Server LTS image from the official Ubuntu website and verify its checksum against the published checksum file; verify the signature of that file using the documented Ubuntu signing key for stronger provenance. Write the image to a dedicated USB device using a trusted imaging tool. Imaging overwrites the selected device. Disconnect unrelated disks where practical, and maintain a verified backup before any partitioning operation.
Boot the installer in UEFI mode, select the language and keyboard, configure a network interface, and choose an appropriate mirror. The Subiquity installer can configure storage, create the initial administrative user and install OpenSSH. For the first server, use an interactive installation so each decision is visible. For a fleet, a reviewed autoinstall configuration can later reproduce the same decisions without embedding passwords or private keys in source control.
Choose a meaningful hostname such as ai-node01, record the management address and ensure that the administrator has local console access. A successful installer completion is not sufficient: remove installation media, reboot from the intended disk and verify that the installed system starts independently.
03 / Storage layout and filesystem boundaries
A conventional UEFI installation uses GPT with an ESP and Linux root filesystem. Ubuntu guided LVM can place root inside a logical volume, sometimes with a separate /boot partition. LVM separates physical volumes, volume groups and logical volumes, allowing controlled capacity allocation. It does not provide redundancy by itself. A separate model filesystem limits the chance that large model downloads exhaust the root filesystem and prevent services from starting.
For a small lab, one NVMe device can host the operating system and model data in separate logical volumes. For a larger server, dedicated model storage can reduce contention and simplify replacement. Ext4 and XFS are both reasonable choices; XFS cannot generally be shrunk in place, while Ext4 shrinking requires offline operations. Plan capacity and backups rather than relying on later resizing. Encryption at rest protects data when storage is offline, but unattended reboot requires a deliberate unlock and recovery design.
Design your storage budget
Planning assumption: 64 GiB OS, 32 GiB logs and temporary data, 10% unallocated reserve. Actual partition overhead and workload needs vary.
04 / Kernel and userspace architecture
The Linux kernel manages virtual memory, scheduling, interrupts, device drivers and system calls. Applications execute in userspace and request privileged operations through kernel interfaces. Device files under /dev, runtime kernel information under /proc and hardware topology under /sys expose different aspects of the system. These interfaces allow administrators to inspect hardware without assuming that every physical device is ready for application use.
On an AI server, the kernel must discover PCIe accelerators and NVMe devices, allocate memory and manage DMA mappings. Seeing a GPU in lspci confirms PCI enumeration, not a working CUDA environment. Similarly, available RAM reported by free is more useful than interpreting unused memory alone: Linux deliberately uses memory for reclaimable page cache. The later kernel editorial will examine scheduling and memory behavior in greater depth.
05 / Network identity and remote administration
Ubuntu Server commonly uses Netplan to describe network configuration, with systemd-networkd as the renderer. Interface names depend on hardware topology. Inspect them before editing configuration. DHCP is suitable for initial discovery; a reservation or planned static address is often preferable for a persistent inference endpoint. DNS, default routing and time synchronization must work before package installation or certificate-dependent services can be trusted.
For a remote server, use SSH public-key authentication and verify a second login before changing password authentication. Keep the existing session and local console available. Avoid applying firewall or network changes blindly over the only management connection. A management network should be separated from public inference access wherever possible.
Example Netplan configuration
Documentation-only addresses; replace interface, subnet, gateway and DNS with your actual values. Back up existing configuration and review all YAML files for conflicts.
network:
version: 2
renderer: networkd
ethernets:
enp1s0:
dhcp4: false
addresses: [192.0.2.10/24]
routes:
- to: default
via: 192.0.2.1
nameservers:
addresses: [192.0.2.53]sudo netplan generate sudo netplan try ip -br address ip route resolvectl status
Use a local console for changes where possible. The temporary rollback offered by netplan try is useful but should not replace a recovery plan.
06 / Package management and service lifecycle
APT resolves package dependencies and retrieves packages from configured repositories. Ubuntu verifies repository metadata and package hashes through its trust configuration. Use supported repositories, review third-party signing keys and avoid arbitrary shell scripts downloaded from the internet. Update the package index, inspect proposed upgrades and schedule reboots when necessary. Production nodes require a maintenance window and a rollback or recovery strategy.
Systemd is the service manager on a standard Ubuntu Server installation. Units express dependencies and ordering, while targets group system states. A service being enabled means it is configured for activation at boot or another trigger; it does not necessarily mean it is running now. Journal logs provide evidence for troubleshooting. For future AI services, use explicit resource limits, dedicated service identities and restart policies appropriate to the workload rather than running everything as root.
sudo apt update apt list --upgradable sudo apt upgrade systemctl --failed systemctl status ssh --no-pager journalctl -b -p warning --no-pager timedatectl status
Run upgrades only after reviewing changes. The SSH service check assumes OpenSSH Server is installed.
07 / Acceptance testing and operational handover
Before introducing accelerator software, establish a baseline of the clean operating system. Record the kernel release, CPU topology, memory availability, disk layout, PCIe enumeration and network routes. Compare the detected resources with the physical build. Unexpected missing disks, degraded links, failed services or repeated kernel errors must be investigated before adding more software layers.
Save the installation choices and configuration backups in a controlled location, excluding credentials. Test a normal reboot and confirm that network access and model storage mounts recover automatically. A reproducible foundation makes later troubleshooting tractable: if a GPU container fails, the engineer can distinguish a new runtime problem from an existing host problem. Do not label the server production-ready solely because these basic checks pass; security, workload testing and recovery exercises remain necessary.
Linux acceptance command set
cat /etc/os-release uname -r lscpu free -h lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS findmnt / df -hT lspci -nn ip -br link ip -br address ip route systemctl --failed sudo journalctl -k -b -p warning --no-pager
Review output locally; device identifiers, addresses and logs may contain sensitive infrastructure information.
Engineering knowledge checkpoint
Which evidence establishes that a GPU is ready for CUDA workloads?
Select an answer.
Reference resources: Ubuntu Server documentation · Netplan documentation. Example configurations require adaptation and validation on the target server.
Interactive Ubuntu Server Installation Lab
Deploy a simulated Ubuntu Server 24.04 LTS foundation. Configure firmware, allocate storage, establish networking, protect SSH access and validate the resulting system. Nothing in this browser lab changes your actual computer.
01 — Deployment architecture
02 — Select an engineering scenario
03 — Installation console
Engineering evidence / example commands
04 — Deployment acceptance report
Event console
Awaiting deployment.
05 — From simulation to real hardware
Use a verified Ubuntu installation image and back up existing disks before installation. The lab assumes a dedicated UEFI server, a single NVMe disk and an IPv4 management subnet. Real installations may require different partitioning, encryption, RAID, IPv6 or DHCP. Never disable password SSH until key-based login has been tested in a separate session. Keep console access when changing firewall or network settings.
Inspect the actual machine with the read-only commands below. GPU driver and CUDA installation are intentionally reserved for Part 03.
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS findmnt / lsblk -f ip -br addr ip route resolvectl status systemctl --failed systemctl status ssh --no-pager ss -lnt sudo ufw status verbose
Linux Kernel, Processes, Scheduling and Memory Management
Widget 07 V1 · Platinum Light Linux Operating System Internals Engineering Editorial Edition
An AI server is a collection of competing execution contexts, memory allocations and device operations. The Linux kernel coordinates these resources while maintaining isolation between applications. Understanding that coordination is essential when a model server appears slow despite an idle GPU, or when an apparently healthy host suddenly terminates an inference worker.
01 / Kernel architecture and system calls
Linux is a modular monolithic kernel. Its scheduler, virtual memory subsystem, networking stack and device drivers operate in privileged kernel space. Applications normally execute in user space, entering the kernel through system calls such as read, mmap, ioctl and futex. A system call changes privilege level but does not necessarily cause a context switch to another task. An inference runtime can use ioctl to communicate with a GPU driver, while networking and file operations use other kernel interfaces.
GPU kernels execute on the accelerator rather than on Linux CPU scheduling queues. Host threads still prepare inputs, submit work and handle completion events. A delay in any of these activities can leave the accelerator underutilised. The following explorer separates the principal layers of this execution path.
Interactive execution path
Application threads tokenize requests, allocate buffers and submit accelerator work.
02 / Processes, threads and scheduling
Linux represents schedulable threads as tasks. Threads in a process normally share an address space and file descriptors, while separate processes have distinct virtual address spaces. Runnable tasks compete for CPU time; sleeping tasks wait for events. Uninterruptible sleep can indicate a task waiting on kernel I/O, although the state alone does not identify the cause. Load average includes runnable and uninterruptible tasks and is not equivalent to CPU utilisation.
Modern Linux fair scheduling uses EEVDF in recent kernels to select eligible tasks according to virtual deadlines; older kernels use earlier CFS behaviour. Nice values influence relative CPU weights under fair scheduling. Real-time policies have different semantics and can starve ordinary workloads if misconfigured. CPU affinity restricts eligible processors, but pinning too many busy threads to a small CPU set can increase queueing. Measure per-thread CPU usage and run queue pressure before changing affinity.
03 / Virtual memory and page tables
Each process sees virtual addresses translated through page tables into physical memory. The translation lookaside buffer caches recent translations. A page fault may allocate a zero-filled page, resolve copy-on-write, or retrieve data from storage. Minor faults do not require storage I/O; major faults do. Mapping a model file with mmap does not guarantee that its contents are already resident in RAM. The first access may trigger faults and storage reads.
Linux uses available memory for filesystem cache, so low free memory alone is not evidence of exhaustion. Inspect MemAvailable, reclaim activity, swap traffic and pressure stall information. Anonymous memory and file-backed pages have different reclaim behaviour. Huge pages can reduce translation overhead but may introduce allocation constraints; benchmark the actual workload rather than assuming improvement.
04 / Interrupts and device completion
PCIe devices can signal completion using MSI or MSI-X interrupts. Drivers acknowledge events and may defer work to threaded handlers, softirqs or workqueues. Network receive processing commonly uses NAPI polling to amortise interrupt overhead under load. Interrupt placement matters on NUMA systems: a NIC interrupt handled on a remote socket can introduce extra cross-socket traffic. Inspect interrupt distribution and device locality before adjusting IRQ affinity; managed interrupts and irqbalance may constrain or override manual choices.
05 / Resource isolation with cgroups and namespaces
Namespaces isolate views of resources such as process IDs, mounts and networking. Cgroups account for and control resource consumption. On cgroup v2, cpu.max defines a CPU bandwidth quota and period, cpu.weight sets relative weight under contention, and memory.max establishes a hard memory limit. memory.high applies reclaim pressure before the hard limit. Containers combine these mechanisms with additional security controls; namespaces alone are not a complete security boundary.
CPU quota engineering calculator
Explore the aggregate CPU budget of a cgroup. This is a simplified capacity model, not a scheduler emulator.
Assumes sufficient eligible CPUs, equal CPU-bound demand, no other contention and no burst allowance. Actual throttling and latency depend on scheduling and workload timing.
06 / Diagnosing AI workload pressure
When inference latency rises, correlate application timestamps with host metrics. CPU pressure may delay tokenization and request dispatch. Memory pressure may trigger reclaim or swapping. Storage pressure may delay cold model loading. A GPU with low utilisation is a symptom, not a diagnosis. Compare steady-state and cold-start behaviour and inspect cgroup limits as well as host-wide statistics. A container can be throttled or encounter an out-of-memory event even when the host has spare capacity.
Read-only Linux inspection
uname -r lscpu ps -eLo pid,tid,psr,stat,ni,comm vmstat 1 5 free -h cat /proc/pressure/cpu cat /proc/pressure/memory cat /proc/pressure/io cat /proc/interrupts stat -fc %T /sys/fs/cgroup cat /proc/self/cgroup cat /sys/fs/cgroup/cpu.stat
Run on the laboratory server. PSI requires kernel support; the final command reads the root cgroup, not necessarily the workload cgroup. Inspect cpu.stat, cpu.max, memory.events and memory.current in the actual workload's cgroup directory.
07 / Production engineering and acceptance
Establish a baseline before changing kernel parameters. Record kernel version, CPU topology, service limits, model configuration and workload concurrency. Compare throughput and tail latency under the same request distribution. Change one variable at a time, preserve rollback procedures and avoid disabling security mechanisms simply to improve a benchmark. A successful deployment is one that remains stable under sustained load and exposes enough telemetry to explain regressions.
Engineering knowledge checkpoint
A container has eight busy workers, a two-CPU quota and rising nr_throttled. The host still has idle CPUs. What should you investigate first?
Select an answer.
Next laboratory: Widget 16 — Interactive Linux Kernel and Process Scheduling Simulator. Further reading: Linux EEVDF documentation · cgroup v2 documentation · Pressure stall information.
Interactive Linux Kernel and Process Scheduling Simulator
Investigate the competition between inference workers, model loading and background services. This discrete-time teaching model illustrates scheduling, CPU quota, I/O waits and memory pressure; it is not an emulation of Linux EEVDF or a measured benchmark.
01 — Kernel execution architecture
02 — Configure the workload
03 — Execution timeline
Each cell represents one logical CPU during one simulated millisecond. I = inference, L = loader, B = background, — = idle. A task cannot run on two CPUs at once.
04 — Process state inspector
| Task | State (last tick) | CPU ms | Ready wait ms |
|---|
Kernel event console
05 — Incident investigation
Memory pressure is represented by periodic blocking faults when the working set exceeds RAM. Real systems may reclaim file cache, swap, or invoke the OOM killer; this model does not predict which outcome occurs. Quota is an aggregate inference CPU-time budget replenished every 10 ms. Real cgroups use configurable periods and hierarchical limits.
06 — Validate on a real Linux server
lscpu ps -eo pid,psr,stat,ni,comm --sort=-%cpu | head -20 vmstat 1 5 free -h cat /proc/pressure/cpu cat /proc/pressure/memory cat /proc/pressure/io cat /sys/fs/cgroup/cpu.stat cat /sys/fs/cgroup/memory.events # For a specific service, inspect its own cgroup: systemctl show --property=ControlGroup your-service.service
Compare CPU pressure, throttling counters and memory pressure over the same observation interval. A high load average alone does not establish CPU saturation because uninterruptible tasks can contribute. Inspect the actual service cgroup rather than assuming root counters describe it. GPU execution and token throughput are outside this CPU model.
Linux Networking, Interfaces, Routing and DNS
Widget 08 V1 · Platinum Light AI Infrastructure Network Engineering Editorial Edition
A private AI server is only useful when clients can reliably reach its services and the server can reach its authorised dependencies. A fast GPU cannot compensate for a broken default route, a misconfigured resolver or a saturated network interface. Linux networking is the foundation that connects model repositories, inference clients, storage systems and management infrastructure.
01 / From physical NIC to Linux network interface
An Ethernet NIC receives frames, verifies their integrity and places received data into host memory using DMA. The driver maintains receive and transmit descriptor rings, while the kernel represents the device through a network interface. Names such as enp3s0 describe predictable hardware locations rather than the historical eth0 convention. A link can be physically up without having a usable IP address or route.
Modern NICs support multiple queues and receive-side scaling (RSS), distributing flows across CPUs. Linux NAPI combines interrupt notification with polling under load, reducing interrupt overhead. Queue placement, interrupt affinity and NUMA locality become significant when a server receives large volumes of model data or serves many concurrent clients. Offloads such as GRO and TSO reduce per-packet processing overhead; packet captures on the host may therefore show sizes or checksums that differ from those observed on the wire.
Interactive architecture explorer
The client opens a TCP connection to the authorised inference endpoint.
02 / IP addressing, Ethernet and neighbour discovery
IPv4 addresses identify interfaces at the network layer. A prefix length defines the connected subnet: 192.0.2.10/24 belongs to the documentation network 192.0.2.0/24. Linux normally installs a connected route when an address is configured. For an on-link IPv4 destination, ARP resolves the next-hop IP address to an Ethernet MAC address. For an off-link destination, the host resolves the gateway instead. IPv6 uses ICMPv6 neighbour discovery rather than ARP.
VLANs separate Layer 2 broadcast domains. A tagged Linux VLAN interface requires matching switch configuration; an access port normally delivers untagged traffic. A management network and an AI data network can be separated, but VLANs alone do not provide complete security. Routing and firewall policies must enforce the intended boundaries.
ip -br link ip -br address ip neigh show ip -s link
03 / Routing and source address selection
Linux consults routing policy rules and routing tables to select a path. Within a selected table, longest-prefix matching favours more specific routes over less specific ones. A default route is a fallback, not an instruction to send every packet to the gateway. Metrics can distinguish otherwise comparable routes. The selected route determines the egress interface, next hop and often the preferred source address.
Multi-homed AI servers need deliberate routing design. A management interface and a storage interface may each have an address, but installing competing default gateways without policy routing can cause unexpected return paths. Stateful firewalls and reverse-path filtering may reject asymmetric traffic. Use route lookups before changing configuration.
ip route show ip rule show ip route get 192.0.2.50 ip route get 198.51.100.20
Documentation addresses are examples, not reachable production endpoints.
04 / DNS and application connectivity
Applications typically resolve names through the system name service configuration. On Ubuntu, systemd-resolved often provides a local stub resolver and per-link DNS configuration. The resolver may consult cached results, local configuration or upstream DNS servers. A successful IP connection with a failed hostname lookup suggests a name resolution problem, but a successful DNS lookup does not prove that the destination service is reachable.
Private model registries and inference gateways benefit from stable internal names and correctly configured TLS certificates. Split DNS can direct internal names to private resolvers while other names follow the default resolver policy. Containerised applications may have a separate resolver configuration, so verify resolution inside the relevant execution environment.
resolvectl status getent ahosts example.com resolvectl query example.com ss -lntp
05 / Persistent Ubuntu network configuration
Netplan describes network configuration in YAML and renders it to a backend such as systemd-networkd. Interface names must match the actual host. DHCP is convenient for initial deployment; a reserved DHCP lease or a planned static address is useful for stable infrastructure endpoints. The example below is illustrative and uses reserved documentation addresses. Replace the interface, addresses and resolver with approved local values.
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
dhcp4: false
addresses: [192.0.2.10/24]
routes:
- to: default
via: 192.0.2.1
nameservers:
addresses: [192.0.2.53]Back up existing configuration and inspect all Netplan files before editing. Validate with sudo netplan generate, then use sudo netplan try from a local console or with out-of-band access available. A remote network change can disconnect SSH; do not rely solely on automatic rollback.
06 / Packet processing, MTU and throughput
Incoming packets pass through driver and kernel networking paths, including routing decisions and applicable netfilter hooks, before local delivery to a socket. TCP provides reliable byte-stream transport with congestion and flow control. Application latency includes connection establishment, TLS, request processing and queueing, not just network propagation. A listening service bound to 127.0.0.1 is not directly reachable from another host.
MTU limits the IP packet size on a link. Larger MTUs can reduce packet processing overhead for bulk transfers, but require a compatible end-to-end path. Path MTU discovery depends on appropriate ICMP feedback; blocking that feedback can create failures that affect large transfers while small probes still succeed. Jumbo frames should be validated rather than assumed beneficial.
Model transfer capacity calculator
Simplified decimal-unit estimate: size × 8 / (link speed × efficiency). Excludes connection setup, storage limits and application processing.
07 / Production validation and troubleshooting
Investigate failures in layers: physical link and counters, addressing, neighbour discovery, route selection, name resolution, transport connectivity and application response. Compare the observed path with the intended architecture. A rising receive-drop counter may indicate host processing pressure, while TCP retransmissions can indicate loss or congestion. Neither observation alone identifies the root cause.
Use ethtool to inspect negotiated link speed and driver counters. Measure throughput using iperf3 between authorised test endpoints, preferably outside production peak hours. Inspect socket statistics and compare application latency with network measurements. Keep management access restricted, expose inference endpoints only through approved policies, and avoid treating a private IP address as an authentication mechanism.
ethtool enp3s0 ip -s link show enp3s0 ss -ti # On an authorised test server: iperf3 -s # On the test client (replace the example address): iperf3 -c 192.0.2.50 -t 10
Engineering knowledge checkpoint
The server can connect to a known service IP, but its hostname fails to resolve. What should you investigate first?
Select an answer.
Further reading: Netplan documentation · Linux network scaling · ip-route reference.
Interactive Linux Network Packet Journey and Routing Lab
Follow a model repository request from a Linux AI server through neighbour discovery, DNS, route selection and TCP establishment. Diagnose faults using observable evidence rather than changing settings at random. All addresses and events are simulated; no network traffic is generated.
01 — Network engineering topology
Ready to investigate.
02 — Configure the server
Assumptions: IPv4, a directly connected /24, no proxy, reachable local client and DNS neighbour, and a remote TCP service listening on port 443. Local client uses port 8000. MTU fault models a large DF packet after the handshake.
03 — Routing and neighbour inspection
| Prefix | Next hop | Interface |
|---|
04 — Packet event console
No events yet.
Packet header inspector
Step through the journey to inspect packet metadata.
05 — Linux investigation playbook
Start with link and address state, then verify the route, neighbour table and DNS. A successful TCP handshake does not prove that large packets can cross the path. Use packet captures only on systems and networks you are authorised to inspect.
ip -br link ip -br addr ip route show ip route get 198.51.100.20 ip neigh show resolvectl status resolvectl query repository.example ss -tn tracepath 198.51.100.20 ping -M do -s 1472 198.51.100.20 sudo tcpdump -ni enp1s0 'arp or icmp or port 53 or tcp port 443'
Replace the documentation addresses, example hostname and interface with your own lab values. ICMP echo may be filtered; a failed ping alone does not establish an MTU fault. For IPv4 without options, 1472 bytes of ICMP payload plus 28 bytes of headers tests a 1500-byte IP packet.
Engineering challenge and acceptance criteria
Select each fault scenario, run the trace, inspect the last successful event and correct the relevant setting. Validate using the original repository hostname; bypassing DNS is a diagnostic technique, not a DNS repair. For the MTU fault, restore PMTU feedback or choose an interface MTU no greater than the path MTU. The local client scenario demonstrates that a connected route does not require a default gateway.
Server Security, SSH, Firewalling and System Hardening
Widget 09 V1 · Platinum Light AI Infrastructure Security Engineering Editorial Edition
Security begins before the first model is deployed. The objective is to minimise reachable services, authenticate every administrative identity and contain the consequences of a compromised workload without sacrificing operational recoverability.
01 / Threat model and trust boundaries
A private AI server holds model weights, credentials, application data and potentially sensitive prompts. Its attack surface includes management interfaces, inference APIs, package repositories and storage mounts. Separate the management plane from the inference plane and restrict outbound access according to workload requirements. A private IP address is not an authentication mechanism.
Map every listening service to its intended clients and owner. A management VLAN or VPN limits reachability but does not replace host authentication. Keep an inventory of service accounts, model sources and dependencies. Treat model files and plugins as untrusted inputs; prefer reviewed formats and avoid executing arbitrary model repository code.
02 / SSH and administrative identity
SSH authenticates the server through its host key and the administrator through a user credential. Verify host fingerprints through a trusted channel. Generate an Ed25519 key on the administrator workstation, protect it with a passphrase and install only its public key on the server. Never copy the private key to the server.
Test key authentication in a second session before disabling password authentication. Keep console access and the original session open during changes. Validate configuration with sshd -t and inspect effective settings with sshd -T; included configuration files may affect precedence. Disable direct root login and use individual accounts with narrowly scoped sudo privileges.
03 / Netfilter, nftables and UFW
Incoming packets traverse kernel networking hooks. Routing determines whether a packet is destined for the local host or forwarded. The input chain controls local delivery; forwarded container traffic may traverse different chains. Connection tracking allows established reply traffic without opening every ephemeral port.
UFW provides a convenient policy interface on Ubuntu, while nftables provides kernel packet-filtering rules through the nft command. Avoid independently managing conflicting rule sets. Docker-published ports can bypass ordinary UFW input policies because forwarding and destination NAT change the packet path. Verify actual reachability from a separate authorised client.
Interactive trust boundary inspector
Restrict source networks and destination ports; verify the actual packet path.
04 / Service exposure and application identity
Bind development inference endpoints to loopback unless remote access is explicitly required. A reverse proxy or gateway can terminate TLS, authenticate clients, enforce request limits and provide audit records. TLS protects transport but does not establish application authorisation by itself.
Run inference services as dedicated non-root users. Restrict model directories and secrets to required identities. Avoid privileged containers and unnecessary host mounts. GPU device access should be granted only to workloads that require it. Never expose an unauthenticated inference endpoint directly to the internet.
05 / Mandatory access control and service isolation
Unix ownership and permissions implement discretionary access control. AppArmor adds profile-based restrictions on what a process may access even when ordinary permissions allow it. Inspect loaded profiles and enforcement state rather than assuming every service is confined.
Systemd service controls such as NoNewPrivileges, PrivateTmp and ProtectSystem can reduce exposure. Apply them incrementally because GPU drivers, model caches and runtime libraries may require specific device or filesystem access. Test service startup and inference after each change. Containers share the host kernel and are not equivalent to independent virtual machines.
06 / Patch management and supply-chain integrity
Use supported Ubuntu releases and trusted signed package repositories. Review security updates regularly, schedule maintenance and track whether a reboot is required. Kernel, GPU driver and runtime compatibility must be validated together before production changes.
Pin and review container image versions or digests, record provenance and scan dependencies. Keep secrets outside images and source repositories. Back up configuration and data, protect backup credentials separately and periodically test restoration. A backup that has never been restored is an unverified recovery assumption.
07 / Monitoring and production acceptance
Security is an operational process rather than a one-time installation step. Review authentication events, listening sockets, firewall policy, service failures and unexpected outbound connections. Establish a baseline before deploying AI applications and investigate deviations.
Acceptance requires testing both permitted and denied connections from appropriate network segments. Verify that administrators can recover access, that inference clients cannot reach management ports, and that logs avoid storing sensitive prompts or tokens unnecessarily. Document exceptions, ownership and the rollback procedure before handing the server into production.
Policy decision explorer
Illustrative policy: management SSH from the management network only; HTTPS inference through an authenticated gateway from management or inference networks. Direct backend access is denied.
Practical validation on Ubuntu
Read-only inspection commands; some require administrative privileges. Review output locally and redact sensitive details before sharing.
ip -br addr ss -lntup sudo sshd -t sudo sshd -T sudo ufw status verbose sudo nft list ruleset sudo aa-status systemctl --failed sudo journalctl -u ssh --since today apt list --upgradable
Example UFW management policy for a new lab host, using a documentation subnet. Replace it with the real management subnet and confirm console recovery before enabling a firewall. Do not apply blindly to an existing server.
sudo ufw allow from 192.0.2.0/24 to any port 22 proto tcp sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw status verbose
Review all required rules before running sudo ufw enable. Test from another session and verify container-published ports separately.
Engineering knowledge checkpoint
Which action best prevents administrative lockout when disabling SSH password authentication?
Next: Widget 18 — Interactive Linux Server Security and Incident Investigation Lab. Examples are educational and require validation against the actual deployment.
NETWORK INSIGHT / BUILD YOUR OWN AI INFRASTRUCTURE / LAB 08
Interactive Linux Server Security and Incident Investigation Lab
Platinum Light AI Infrastructure Cyber Defence Engineering Simulation Edition
Investigate a simulated Ubuntu AI server. Restore authorised administration while keeping inference services private. Every change below affects only this browser model.
Trust boundaries and request paths
Remediation console
In a real deployment, verify key access and retain console access before disabling password authentication or changing firewall rules.
Security acceptance report
Run acceptance tests to validate the current configuration.
Incident evidence console
Real Linux verification workflow
These inspection commands are for an authorised Ubuntu server. They do not execute in this widget. Review output locally; avoid publishing sensitive logs or configuration.
sudo sshd -t sudo sshd -T sudo journalctl -u ssh --since today sudo ss -lntp sudo ufw status verbose sudo nft list ruleset systemctl show ai-service -p User -p Group -p NoNewPrivileges apt list --upgradable sudo aa-status
Replace ai-service with the actual unit name. Inspect container-published ports separately: Docker forwarding rules can bypass assumptions based on UFW input policy alone. Test from both authorised and unauthorised network segments. Keep a rollback plan and verify the actual service identity, bind address and patch status.
Linux Performance Engineering and Production Readiness
Widget 10 V1 · Platinum Light AI Infrastructure Performance and Operational Excellence Engineering Editorial Edition
Performance engineering begins with evidence. A fast component does not guarantee a fast system: the critical path changes with workload, concurrency and resource placement. Establish a reproducible baseline before installing the AI software stack.
01 / CPU utilisation and scheduling
A CPU average is not a capacity model. A server with 32 logical CPUs may report modest aggregate utilisation while a tokenisation thread saturates a single core. Inspect per-core utilisation, runnable tasks, context switches and CPU pressure together. Linux load average includes runnable tasks and tasks in uninterruptible sleep, so a high load does not necessarily mean CPU saturation.
Compare application throughput with CPU time and run-queue delay at a fixed workload. A container may be throttled by its cgroup even when the host has idle cores. Inspect cpu.stat for throttling and cpu.max for quota; check affinity and NUMA placement before adding processors. Record the workload, concurrency and observation interval so that subsequent measurements are comparable.
Linux inspection commands
lscpu mpstat -P ALL 1 5 vmstat 1 5 cat /proc/pressure/cpu
Examples for Ubuntu Server; adapt interfaces, paths and permissions. Some tools require sysstat, numactl, fio, ethtool or iperf3 packages.
02 / Memory capacity and pressure
Linux uses otherwise idle RAM for filesystem cache. Low free memory alone is not a fault; MemAvailable, reclaim activity, swap traffic and pressure stall information provide better evidence of contention. Major page faults may require storage access, while minor faults generally do not. Neither counter alone proves a performance problem.
Model weights, runtime buffers, tokenisation and concurrent requests compete for memory. GPU memory is a separate capacity domain. Avoid assuming that a model fitting in VRAM guarantees sufficient host memory. Check cgroup memory.events and memory.current when investigating a container; an out-of-memory kill may occur at a container limit before host memory is exhausted.
Linux inspection commands
free -h numastat cat /proc/pressure/memory vmstat 1 5
Examples for Ubuntu Server; adapt interfaces, paths and permissions. Some tools require sysstat, numactl, fio, ethtool or iperf3 packages.
03 / Storage performance and model loading
NVMe bandwidth matters most during cold model loading, checkpoint operations and cache misses. Once weights reside in accelerator memory, token generation may instead be constrained by GPU memory bandwidth or compute. Measure cold and warm starts separately and document whether filesystem cache was involved.
Use iostat to observe throughput, request latency and queue depth. Device utilisation is not a reliable saturation threshold for highly parallel NVMe devices. A read-only fio test against a dedicated existing test file can establish a controlled baseline; never benchmark a raw production disk with write workloads. Ensure the test file is large enough for the intended measurement and schedule testing away from live workloads.
Linux inspection commands
lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS iostat -xz 1 5 # Existing dedicated test file only; install fio first fio --name=readbaseline --filename=/path/to/existing-test-file --readonly --rw=read --bs=1M --iodepth=16 --ioengine=libaio --direct=1 --runtime=30 --time_based
Examples for Ubuntu Server; adapt interfaces, paths and permissions. Some tools require sysstat, numactl, fio, ethtool or iperf3 packages.
04 / Network throughput and latency
AI servers need reliable management connectivity and sufficient bandwidth for model downloads, remote storage and inference traffic. Link speed is an upper bound, not application throughput. TCP congestion control, packet loss, RTT, MTU and CPU processing can all reduce achievable performance.
Run iperf3 against an authorised peer on the intended network path. Test both directions and record retransmissions, interface errors and concurrent traffic. Compare results with the negotiated link rate, not merely the advertised NIC capability. A jumbo MTU should only be enabled when the complete path supports it.
Linux inspection commands
ip -br addr ip -s link ip route # Replace with your actual interface ethtool enp1s0 # Authorised peer running iperf3 -s iperf3 -c 192.0.2.10 -t 10
Examples for Ubuntu Server; adapt interfaces, paths and permissions. Some tools require sysstat, numactl, fio, ethtool or iperf3 packages.
05 / Accelerator readiness and thermal stability
Before installing CUDA or an inference runtime, confirm that Linux enumerates the expected GPU devices and PCIe links. Check negotiated lane width and speed under appropriate conditions; power management may reduce link speed at idle. Firmware, slot wiring and NUMA topology influence accelerator placement.
Inspect kernel logs for PCIe errors and thermal events. Confirm cooling and power delivery under representative load rather than relying on idle temperatures. If NVIDIA drivers are already installed, nvidia-smi can report device health, utilisation and memory usage; otherwise its absence is expected at this stage. Driver and CUDA installation belong to Part 03.
Linux inspection commands
lspci -nn | grep -Ei "VGA|3D|Display" # Replace BDF with actual device address sudo lspci -vv -s 01:00.0 sudo journalctl -k -b -p warning # Only if NVIDIA driver is installed nvidia-smi
Examples for Ubuntu Server; adapt interfaces, paths and permissions. Some tools require sysstat, numactl, fio, ethtool or iperf3 packages.
06 / Observability and reproducible baselines
A useful baseline describes a system under known conditions: hardware inventory, kernel version, firmware, workload, concurrency, duration and ambient constraints. Collect a time series rather than a single screenshot. Pressure stall information reports time lost waiting for CPU, memory or I/O and helps distinguish resource contention from simple utilisation.
Measure application latency percentiles and throughput together. An average can conceal tail latency, particularly when requests queue. For later inference tests, separate time to first token from inter-token latency and report input/output lengths. Store results with configuration versions and compare like-for-like workloads after each change. Prometheus and Grafana can later automate collection; they do not replace a well-defined test.
Linux inspection commands
uname -a
uptime
cat /proc/pressure/{cpu,memory,io}
systemctl --failed
journalctl --disk-usageExamples for Ubuntu Server; adapt interfaces, paths and permissions. Some tools require sysstat, numactl, fio, ethtool or iperf3 packages.
07 / Production acceptance and operational handover
Production readiness is an evidence-based decision, not a single benchmark score. Establish acceptance criteria for management access, patching, storage headroom, backup recovery, network connectivity, thermal stability and workload performance. Each criterion needs an owner, test method and recorded result. A failed security or recovery requirement should not be offset by excellent throughput.
Keep a rollback plan for configuration changes and verify that backups can actually be restored. Record unresolved risks and distinguish hardware readiness from application readiness. The current milestone is a validated Linux foundation; model serving, GPU drivers and application-level service objectives must be validated in later parts. The capstone that follows turns these principles into an integrated acceptance exercise.
Linux inspection commands
systemctl --failed findmnt df -h ss -lntup sudo ufw status verbose # Review results against your approved baseline
Examples for Ubuntu Server; adapt interfaces, paths and permissions. Some tools require sysstat, numactl, fio, ethtool or iperf3 packages.
Interactive engineering / Model staging baseline
Explore a simplified serial cold-load path. Decimal GB and GB/s are used throughout; runtime initialisation and decompression are excluded.
Assumes sufficient RAM and VRAM, fully cached weights for the warm case, and no overlap. Not an inference latency benchmark.
Production acceptance checklist
Mark each item only after collecting real evidence. This checklist is not an automated server audit.
Engineering knowledge checkpoint
A server has idle host CPUs but a container experiences CPU throttling. What should you inspect first?
Next: Widget 19 — Complete Linux AI Server Deployment Capstone.
Complete Linux AI Server Deployment Capstone
Engineering Command Centre — Grand Master Edition
Commission a simulated single-GPU server for a 30 GB model with 8 GB runtime reserve. Investigate the evidence, repair the configuration and validate all nine acceptance gates. This is a pre-driver infrastructure exercise; CUDA and inference validation belong to Part 03.
Mission control
Awaiting validation
Infrastructure journey
Select a stage to inspect its evidence.
Engineering configuration
Choose the configuration for each gate. Changes invalidate the previous acceptance report until you rerun validation.
Acceptance report
Engineering event console
Real server verification
Run the following inspection commands on your own authorised Linux server. Some require installed utilities or administrative privileges. Review actual topology, negotiated links, free capacity, route and firewall evidence; never infer readiness from a simulated result.
Before production, confirm backups and restore tests, cooling under sustained load, firmware support, security patching and recovery access. After Part 03, verify driver compatibility, GPU memory, CUDA and actual inference performance.
- Linux Virtualisation and Virtual Networking for AI Infrastructure - December 4, 2026
- Building a Linux AI Server - December 4, 2026
- From Bare Metal to Production AI Inference - December 4, 2026
