OS Tuning
ulimit:
is a command used to set or check user limits on system resources such as memory, CPU, and the number of open files.Below are common usages of ulimit:
irqbalance:
irqbalance is a Linux background service that distributes hardware interrupts across multiple CPU cores to prevent overloading a single core and improve system performance.
Performance Governors (Linux):
are one of Linux's CPU frequency scaling mechanisms, used to determine how the CPU frequency should be managed.Simply put, it controls "how fast the CPU should run under different conditions."Common CPU governors include::
--governor,-g :
When set to performance, the CPU will always operate at its maximum frequency to deliver the highest computing performance.This will improve overall system performance.
Many companies execute the following command when conducting system performance testing to ensure that the CPU operates at its maximum frequency.
tuned-adm:
is a command-line tool used to manage performance tuning settings on Linux systems. It allows users to select predefined tuning profiles that automatically adjust CPU, power saving, I/O, and network parameters according to the system’s intended usage, optimizing either performance or energy efficiency.The following four are the most commonly used parameters:
Enable LP [Global] (Default = ALL LPs):
Enable LP [Global] to represent the number of logical processors (LP). LP is a term that is common for cloud instances to represent a vCPU.Values for this BIOS option can be:
LLC dead line alloc (Default = Enable):
It is a BIOS setting that controls whether a CPU cache line, when it is about to be written back to memory (i.e., a dead-line), is still allowed to be allocated into the LLC (Last Level Cache, typically L3 Cache).Values for this BIOS option can be:
Energy Efficient Turbo (Default = Enable):
is a technology that allows the processor to automatically boost its frequency based on workload while maintaining energy efficiency.Values for this BIOS option can be:
Enhanced Halt State (C1E) (Default = Enable):
is a mechanism that allows the processor to automatically reduce voltage and frequency during idle periods to enter a low-power state, while still enabling a quick return to full operation to balance power saving and performance.Values for this BIOS option can be:
LLC Prefetch (Default = Disable):
The LLC prefetcher is a feature that allows the processor, under a non-inclusive cache architecture, to prefetch data directly into the Last Level Cache (LLC) to improve memory access efficiency, though in some cases, disabling it may actually enhance performance.Values for this BIOS option can be:
AMP Prefetch (Default = Enable):
The AMP prefetcher is a mechanism that predicts future memory access patterns based on delta sequences between cache accesses and prefetches data into the mid-level cache (MLC), enhancing data retrieval efficiency without issuing LLC prefetches.Values for this BIOS option can be:
Patrol Scrub (Default = Enable at End of POST):
is a background memory scanning and correction mechanism. It periodically and proactively scans each bit of system memory to detect correctable ECC errors, and attempts to automatically repair them when such errors are found.Values for this BIOS option can be:
Homeless Prefetch (Default = Auto):
is a mechanism that allows data to be prefetched into the L2 cache when cache resources are limited to reduce latency, but it may impose a burden on uncore resources under certain workloads.Values for this BIOS option can be:
DCU Streamer Prefetcher (Default = Enable):
is an L1 data cache prefetcher. Recommended default setting is Enabled. In some cases, setting this option to disabled can improve performance. Values for this BIOS option can be:
Package C State (Default = Auto):
The system automatically manages C-state transitions based on workload and platform policies.Values for this BIOS option can be:
ENERGY_PERF_BIAS_CFG mode (Default = Balanced Performance):
It is a hint provided by the processor to the BIOS or operating system to guide the trade-off between power efficiency and performance.Values for this BIOS option can be:
Virtual Numa (Default = Disable):
Divide physical NUMA nodes into evenly sized virtual NUMA nodes in ACPI table. This may improve Windows performance on CPUs with more than 64 logical processors.Values for this BIOS option can be:
Hardware P-States (Default = Native Mode):
(HWP) are the key components of HWPM which deals with P-state control. HWP works by freeing the operating system from making direct frequency decisions.Values for this BIOS option can be:
Hardware Prefetcher(Default=Enable):
Hardware Prefetcher: (a.k.a. MLC Streamer Prefetcher) is an L2 cache prefetcher. Recommended default setting is Enabled. In some cases, setting this option to disabled can improve performance. Values for this BIOS option can be:
Adjacent Cache Prefetch(Default=Enable):
Adjacent Cache Prefetch: (a.k.a. MLC Spatial Prefetcher) is an L2 cache prefetcher. Recommended default setting is Enabled. In some cases, setting this option to disabled can improve performance. Values for this BIOS option can be:
DCU IP Prefetcher(Default=Enable):
DCU IP Prefetcher: the DCU Instruction Pointer (IP) prefetcher is an L1 cache prefetcher. Recommended default setting is Enabled. In some cases, setting this option to disabled can improve performance. Values for this BIOS option can be:
Turbo Mode(Default=Enable):
Turbo Boost Technology requires a PC with a processor with Intel Turbo Boost Technology capability. Intel Turbo Boost Technology performance varies depending on hardware, software, and overall system configuration.Values for this BIOS option can be:
Power Performance Tuning(Default=OS Controls EPB):
Power Performance Tuning is a BIOS setting that determines whether the processor’s performance and power efficiency preferences are managed by the operating system, BIOS, or an external controller.Values for this BIOS option can be:
Performance Mode(Default=Balanced):
It is a common setting in server BIOS used to control the system’s overall performance optimization strategy and power behavior.Values for this BIOS option can be:
Latency Optimized Mode(Default=Disable):
The highest performance mode (default on previous generations) where core and uncore frequencies are running up to their maximum limits within the RAPL budget. This mode is not performance-per-Watt optimized across the load line. Values for this BIOS option can be:
NUMA(Default=Enable):
Each CPU (or each group of CPUs) has its own "local memory," which can be accessed faster. Accessing "remote memory" across CPUs is slower. When NUMA is enabled, the operating system can arrange thread execution and memory allocation based on the "physical locality" of CPUs and memory, reducing latency and improving performance. Values for this BIOS option can be:
Opportunistic LLC to SF Migration(Default=Disable):
When data is present in the LLC (Last Level Cache, such as L3 Cache), the system may opportunistically migrate it to the Snoop Filter (SF) to optimize and accelerate inter-core data sharing.Values for this BIOS option can be:
Last updated May 7, 2025.