Skip to content

Instantly share code, notes, and snippets.

MySQL/MariaDB Tuning And Optimization For Best Performance

OS Level Optimization

Swappiness

sysctl -w vm.swappiness=1
echo "vm.swappiness = 1" | sudo tee -a /etc/sysctl.conf

noatime

server {
listen 80;
listen [::]:80 ipv6only=on;
server_name domainname.com;
root /var/pro/; #change this with the right location
index index.php index.html index.htm;
location / {