在我们的服务器中,我们习惯于在午夜丢弃缓存。
sync; echo 3 > /proc/sys/vm/drop_caches
当我运行代码时,它似乎释放了大量 RAM,但我真的需要这样做吗?空闲内存不是浪费吗?
linux memory cache
cache ×1
linux ×1
memory ×1