www.tips4linux.com is a place dedicated to the Linux user. Not only for the advanced but also for novice users who wish to learn how easy life with Linux can be and how customizable the operating system is. Linux can also be used as an OS platform servers and proves to be reliable when it comes [...]
How to do that with Ubuntu? I tried it with sudo, but it keeps saying Permission is needed.
faizlo
log on to root and try the command
or try
sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"Just wanted to say thanks been trying to do that all morning.
just want to thanks to Tarentrulle
sudo sh -c “sync; echo 3 > /proc/sys/vm/drop_caches”
saved my life!
I have test and working successfully on debian6. But I wonder if its a good habit to use on a daily cron on my vps has limited memory on it.
My vps has 512mb memory so I wonder does this function help to use my memory efficiently.
What do you think about it ?
@vga over cat5: It is completely useless to flush the block cache on Linux.
The Kernel wipes unecessary entries as soon as it needs memory for other purposes. Until them the chaces are kept. Unused RAM is just useless.
Thanks a tonn sir, sync; echo 3 > /proc/sys/vm/drop_caches
This command helped me a lot.
Cleared cached memory from 2GB to 500mb.. Excellent.
Thanks
ok this made no sense at all for me what do i type it into a word document or what??