LoginSignup
6
6

More than 5 years have passed since last update.

MySQLサーバのスワップ対策

Last updated at Posted at 2015-01-09

変更前

# sysctl vm.swappiness
vm.swappiness = 60

カーネルパラメータ変更

# echo 'vm.swappiness = 0' >> /etc/sysctl.conf

設定反映

# sysctl -p
vm.swappiness = 0

設定後

# sysctl vm.swappiness
vm.swappiness = 0

スワップ開放

# swapoff -a && swapon -a
6
6
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6