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

I have done the following commands trying to make Ubuntu work faster:

echo 100 > /proc/sys/vm/overcommit_ratio
echo 2 > /proc/sys/vm/overcommit_memory

#/etc/sysctl.conf прописываем:

It's become worse. I want to "undo" those commands. So deleted these 2 lines from /etc/sysctl.conf but I can't neither change no delete the first two files, it says "permission denied" even when I say "sudo su" or just "sudo".

share|improve this question
What is the exact command you use? – Jo-Erlend Schinstad Jul 15 '13 at 4:36
@Jo-ErlendSchinstad, "sudo rm /proc/sys/vm/overcommit_ratio" – Oskar K. Jul 15 '13 at 4:45
I think to reboot is enough, because first 2 files are located on VFS and probably depend on configuration parameters. However, I may be wrong suggesting this. If so, I will be glad if somebody reveal my misconception. – Danatela Jul 15 '13 at 4:47
up vote 3 down vote accepted

Try this:

$ echo 50 | sudo tee /proc/sys/vm/overcommit_ratio 
$ echo 0 | sudo tee /proc/sys/vm/overcommit_memory 

This will revert those files to the default parameters. Notice that you can not delete them because they are virtual and your system relies on that they are persist.

share|improve this answer
@gertvdijk, thanks! I forgot the right redirection symbol :) – Danatela Jul 15 '13 at 5:17

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.