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 , adding sysctl -p in /etc/rc.local. didn't work. when run sysctl -p manually, works correctly.

nevermind. found solution after consulting aws support same. need change value in /usr/lib/tuned/virtual-guest/tuned.conf.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -