buffer and cache are the cache of the Linux server, and the swap partition occupancy rate will affect the system when it is too high, so the Linux system should be cleaned up in time. The following small series will introduce you how to clean up the Linux system. Swap, buffer and cache, let's learn together.
swap Cleanup:
code is as follows:
swapoff -a & & swapon -a
Note: this cleaning there is a premise Condition, free memory must be larger than the swap space already used
cache cleanup:
The code is as follows:
sync; sync; sync; && echo3 》/Proc/sys/vm/drop_caches
sleep 2
echo 0》/proc/sys/vm/drop_caches
To free pagecache:
Code below :
echo 1 》/proc/sys/vm/drop_caches
To free dentries and inodes:
The code is as follows:
echo 2 》/proc /sys/vm/drop_caches
To free pagecache,dentries and inodes:
The code is as follows:
echo 3 》 /proc/sys/vm/drop_caches
< The value of /proc/sys/vm/drop_caches defaults to 0 (so we will restore it to 0 after we empty it)
The above is the way to clean up swap, buffer and cache in Linux system. Introduced, the cleaning of swap is Preconditions, and regularly clean swap, buffer is also necessary.
PlayOnLinux is a very good software for friends who like Windows software but use L
In Linux system, if you want Vim editor to play a bigger role, you need to install some plug-ins for
If the head command is used to view the header of the file, then the tail command i
Linux system regular expressions are string description methods. The main regular expressions are se
Linux uses PXE to install virtual machines
Linux system call fork() function method
What is the command to specify the line in the Linux view file?
Krita software in the Linux system tutorial
How to use Linux to clear Bash environment variables with commands
Summary of screenshots under Ubuntu
How to use the command line to change the date and time of the Linux system
What is the meaning and authority of the Linux system chmod command?
Suggestions for Linux system desktops
How Linux can quickly modify the sql file in the specified ID
Win 2003 automatic upgrade patch knows how much
Windows XP Optimization Settings and Broadband Application Tips
XP comes with fault recovery console application skills
Windows 7 system library practical skills
How to create a colorful interface under XP system
How to manage the Win10 right-click menu
Two alternative uses of WinHex
The best way to install Realtek HD sound card in win7 system