Get the App
SLTechnology News&Howtos  ›  Servers  › 

Centos system memory buff/cache is too high

Shulou Source: shulou.com Published: 2022-06-03 00:06:17 11月11日 Update

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.

Tags: Memory command cache system allocator object case allocation high actual instruction server step directory hard disk data too much process processing enforcement Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Technology vpn Shulou Information NVidia