VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

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

danthemannewtolinux

  • Vectorite
  • ***
  • Posts: 107
how to load swappiness at boot help(solved)
« on: March 15, 2012, 05: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, 09:47:50 pm by danthemannewtolinux »
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4103
Re: how to load swappiness at boot help
« Reply #1 on: March 15, 2012, 06: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
Logged

danthemannewtolinux

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

thank you nightflier
Logged