gpt4 book ai didi

centos - 如何清除 OpenVZ 中的缓存?

转载 作者:太空宇宙 更新时间:2023-11-03 17:13:09 27 4
gpt4 key购买 nike

我有 OpenVZ VPS,但在清除缓存时遇到问题: enter image description here

在 OpenVZ 中不工作 echo 3 >/proc/sys/vm/drop_caches enter image description here

这个缓存怎么清除?

最佳答案

这是 reported在 OpenVZ 错误跟踪器上。它已被解析为 RESOLVED WONTFIX

来自 Kir Kolyshkinbug report (OpenVZ项目负责人):

All containers share the same page cache (although there is per-container accounting), so to drop caches of one single container we have to check each page:

1 Whether it belongs to the container or not -- supposing we do have that information, which I am not sure of

2 Whether this page is used by other containers.

So, while this is trivial on the host system, it is much less trivial for a container. And this is not a critical piece of functionality -- drop_caches is only useful for running various sorts of benchmarks.

由于您没有使用 OpenVZ 获得自己的内核实例,因此您无法运行该命令。

关于centos - 如何清除 OpenVZ 中的缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28916484/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com