MySQL Advisor - The Configuration Analysis Tool

Variable Reference

vm.swappiness

WARNINGOK

Rule IDs: os_002, os_008

Overview

Purpose
Linux kernel tendency to swap anonymous pages (often seen in host summary output).
Dynamic (MySQL 8.4 reference)
Linux sysctl — not a MySQL variable.
Default value
Distribution-dependent (commonly 60).
Version and product notes
Applies to Linux hosts only.
Documentation
Primary reference depends on product (MySQL, MariaDB, Percona, or OS documentation).

What is checked

Rules that reference this variable, with their severity and what each rule detects:

Tuning guidance

Example

sysctl vm.swappiness=1 -- Persist in /etc/sysctl.conf: vm.swappiness = 1

Generated from the MySQL Advisor documentation build. Dynamic Yes/No reflects the excerpt aligned with Oracle MySQL 8.4 reference material consumed by this project.