Centos system memory buff/cache is too high
Case description: centos system, buff/cache occupies too much, resulting in high server memory, but through the top view of the system process does not take up too much memory
The actual situation:
Processing steps:
1. Execute the sync command
Sync
two。 Execute the free memory command:
The echo 3 > / proc/sys/vm/drop_caches command explains that the sync command forces the data stored in buffer to be written to the hard disk. Echo 1 > / proc/sys/vm/drop_caches: means to clear pagecache. Echo 2 > / proc/sys/vm/drop_caches: means to clear the objects in the recycled slab allocator (including directory item cache and inode cache). Echo 3 > / proc/sys/vm/drop_caches: means to clear the cache objects in the pagecache and slab allocators.