Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 прописываем:
vm.overcommit_memory=2
vm.overcommit_ratio=100

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" –  Grienders 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

1 Answer 1

up vote 3 down vote accepted

Try this:

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

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

 
discard

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.