Wednesday, 4 September 2013

Clear memory cache on your Linux server

This command will clear pagecache:
/sbin/sysctl vm.drop_caches=1
To clear dentries and inodes you can use:
/sbin/sysctl vm.drop_caches=2
To free memory of the all above use a following command:
/sbin/sysctl vm.drop_caches=3
What the above commands will do is that they will sync your memory and edit a following file with appropriate number entry. :
/proc/sys/vm/drop_caches

Related Posts:

  • Find Files in LINUX The find command locates files in many different ways. Unlike the rest of the commands in this section, find does not look at the… Read More
  • Connecting Ubuntu to Internet using Dlink Modem   Found out that many people are also having the same problem with connecting this specific usb modem to Ubuntu 12.04.1,12.04.2, including… Read More
  • LINUX LINUX COMMANDS... Command Description adduserAdd a new user archPrint machine architecture awkFind and Replace text within file(s) … Read More
  • Is LINUX Virus Free??? Linux System is considered to be free from Viruses and Malware. What is the truth behind this notion and how far it is correct ? We will be discussin… Read More
  • Connect To Internet via Bluetooth in LINUX Steps To Connect Internet Via Bluetooth: 1. Use the bluetooth-applet to setup your phone if it is not yet paired with your PC. Alternatively you c… Read More

0 comments:

Post a Comment