1
设置/ proc / sys / vm / drop_caches清除缓存
作为一些冷缓存时间的一部分,我试图释放OS缓存。该内核文档(检索2019日)说: drop_caches Writing to this will cause the kernel to drop clean caches, as well as reclaimable slab objects like dentries and inodes. Once dropped, their memory becomes free. To free pagecache: echo 1 > /proc/sys/vm/drop_caches To free reclaimable slab objects (includes dentries and inodes): echo 2 > /proc/sys/vm/drop_caches To …