amazon ec2 - Swappiness getting reset to default on reboot -
i wanted set vm.swappiness
value amazon ec2 instance runnign redhat enterprise 7. able set manually after machine starts using
sudo sysctl -w vm.swappiness=10
but vm.swappiness
gets reset default 30 once stop , start instance. googled , found couple of solutions like
adding
vm.swappiness = 10
in/etc/sysctl.conf
. didn't work.adding
vm.swappiness = 10
in/etc/sysctl.conf
, addingsysctl -p
in/etc/rc.local
. didn't work. when runsysctl -p
manually, works correctly.
nevermind. found solution after consulting aws support same. need change value in /usr/lib/tuned/virtual-guest/tuned.conf
.
Comments
Post a Comment