tips
9 tips Performance
One command, setting or habit at a time about Performance: what it does, the line to copy and a caveat or two.
Benchmarks 2
-
Benchmark two ways of doing something with repeated, comparable runs.
sudo apt install hyperfine -
Test small random reads, which feel closer to real use than big copies.
sudo apt install fio
Settings and access 2
-
Changes the temperature at which the Pi 5 fan starts spinning.
dtparam=fan_temp0=55000 -
Switches the CPU governor to powersave to cut idle power use.
sudo cpufreq-set -g powersave
WP-CLI 2
-
Shows how many bytes of WordPress options load on every page request, and which ones are biggest.
wp option list --autoload=on --format=total_bytes -
Removes expired cached values from the WordPress database without touching the ones still in use.
wp transient delete --expired
Config constants 1
-
Limits how many old versions WordPress keeps of each post so the database stops growing.
define( 'WP_POST_REVISIONS', 5 );
Library and imports 1
-
Cuts disk reads during Sonarr and Radarr refreshes by switching off MediaInfo analysis you do not use.
Settings > Media Management > File Management > Analyze video files
Query tuning 1
-
Adds a line to the plan with every planner-related setting that has a non-default value.
EXPLAIN (SETTINGS) SELECT * FROM my_table WHERE id = 42;
Nothing in this filter yet.