Added some lines in rc.local and mysqlinit.sh
swappiness=0