Kernel/OS/RAID
CPU frequency - see T225713: CPU scaling governor audit
- frdb1005 for example drops to 1200 MHz at idle
- BIOS is configured to powersave profile by default
- prod uses cpufrequtils/cpupower
- on frav1005 I set it like this:
racadm set BIOS.SysProfileSettings.SysProfile PerfOptimized racadm jobqueue create BIOS.Setup.1-1 -r pwrcycle -s TIME_NOW
Reevaluate use of LVM
- LVM is expected to slow writes a bit
- we don't using snapshots or thin provisioning
Raise async I/0 (fs.aio-max-nr)
- currently 65536
- in theory could cause resource-unavailable errors, not observed AFAIK
- increasing some other limits could increase async I/O activity
- possibly raise to 1048576?
Raise mariadb user's open files limits
- currently 5000/5000
- should accomodate max_conn + table_open_cache + a couple k for other db files
- increase to 15-20K?
MariaDB
innodb_log_file_size
- currently 512MB, single log
- smaller file means greater checkpoint frequency
- should we increase it to 2-8 GB?
innodb_io_capacity
- currently 5000
- IOPS capacity measured with fio on frdb1006 was ~ 58K
- should we raise it to more like 20K?
innodb_io_capacity_max
- currently 10K
- we don't set it, but make sure it increases along with innodb_io_capacity
innodb_write_io_threads
- currently 4 (default)
- we have a 32 and 48 core machines
- increase to 16?
innodb_read_io_threads
- increase to 16?
innodb_flush_neighbors:
- default/current: 1
- best SSDs: 0
table_open_cache
- currently 3000
- considering 5K max connections this is probably too low
- increase to 8000?
table_open_cache_instances:
- currently 4
- servers are 32 or 48 core
- increase to 16?