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".

  • 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
  • 1
    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

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.

  • @gertvdijk, thanks! I forgot the right redirection symbol :) – Danatela Jul 15 '13 at 5:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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