Skip to main content

CPU mitigations

OptionTypeDefaultDescription
marchyo.performance.disableMitigationsbooltrueDisable CPU vulnerability mitigations for maximum performance
marchyo.performance.disableMitigations = true;
Disabling CPU mitigations (Spectre, Meltdown, etc.) reduces security. Only enable on trusted single-user workstations where maximum performance is required (e.g., gaming, benchmarking). Do not enable if running untrusted code or containers.
To keep mitigations enabled:
marchyo.performance.disableMitigations = false;

Kernel & I/O tuning

Opt-in kernel/sysctl/IO tuning for throughput-oriented workloads. Disabled by default. Enabling marchyo.performance.tuning.enable turns on the broadly-safe sub-toggles (network, nvme, memory); the aggressive toggles (hugePages, compute) stay off and must be opted into explicitly.
OptionTypeDefaultDescription
marchyo.performance.tuning.enableboolfalseMaster switch; enables the safe sub-toggles below
marchyo.performance.tuning.network.enableboolfollows enableBBR congestion control, TCP Fast Open, MTU probing, larger socket buffers
marchyo.performance.tuning.nvme.enableboolfollows enableNVMe udev tuning: no-op scheduler, larger read-ahead and max request size
marchyo.performance.tuning.memory.enableboolfollows enableLower swappiness, keep FS metadata cached, byte-based dirty-page thresholds
marchyo.performance.tuning.memory.dirtyBytesint268435456vm.dirty_bytes (256 MiB) — synchronous writeback threshold
marchyo.performance.tuning.memory.dirtyBackgroundBytesint67108864vm.dirty_background_bytes (64 MiB) — background writeback threshold
marchyo.performance.tuning.hugePages.enableboolfalse2 MiB transparent huge pages always
marchyo.performance.tuning.compute.enableboolfalseRelaxed PAM limits (memlock/rtprio/nofile/nproc) for trusted compute hosts
# Safe defaults (network + nvme + memory):
marchyo.performance.tuning.enable = true;

# Compute/CUDA workstation — opt into the aggressive toggles too:
marchyo.performance.tuning = {
  enable = true;
  hugePages.enable = true;
  compute.enable = true;
};
hugePages can hurt latency-sensitive and interactive desktop workloads. compute relaxes resource limits system-wide (unlimited memlock, real-time priority for all users) — only enable it on trusted single-user machines where you control every process.
The CFS scheduler sysctls from older compute-tuning sets (kernel.sched_min_granularity_ns, sched_latency_ns, etc.) are intentionally not included: they were removed when the kernel switched CFS → EEVDF (6.6+) and setting them on a current kernel only produces systemd-sysctl warnings.
Last modified on June 4, 2026