Please support VectorLinux!

Author Topic: how to load swappiness at boot help(solved)  (Read 988 times)

danthemannewtolinux

  • Vectorite
  • ***
  • Posts: 107
how to load swappiness at boot help(solved)
« on: March 15, 2012, 04:19:13 pm »
I'm trying to load swappiness at boot, i tried editing the rc.local file and adding the line vm.swappiness=10 but it doesn't work.... how can I turn on swap at boot?  Does sysctrl.conf exist in linux because i thought i was supposed to add swappiness there and if so where is it located?
« Last Edit: March 15, 2012, 08:47:50 pm by danthemannewtolinux »

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4072
Re: how to load swappiness at boot help
« Reply #1 on: March 15, 2012, 05:07:51 pm »
The command would be:
Code: [Select]
sysctl vm.swappiness=10
To disable swap, comment out the line for it in /etc/fstab

danthemannewtolinux

  • Vectorite
  • ***
  • Posts: 107
Re: how to load swappiness at boot help
« Reply #2 on: March 15, 2012, 05:33:31 pm »
thank you nightflier