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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -