Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to change the swappiness of my 12.10 Ubuntu System from 60 to 10.

Getting response as permission denied:-

Steps - I am following are below:

neeta@neeta-desktop:~$ cat /proc/sys/vm/swappiness 60 neeta@neeta-desktop:~$ sysctl vm.swappiness=10 sysctl: permission denied on key 'vm.swappiness'

share|improve this question
up vote 1 down vote accepted

You need to use sudo before your command.

sudo sysctl vm.swappiness=10

then type in your password

share|improve this answer
did not worked for me, I was using openVz vps – user01 Mar 2 '14 at 8:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.