![]() |
如何判断 OpenVZ VPS 是否超售 - 可打印的版本 +- Netflix优惠码论坛 (https://www.sinovoter.com) +-- 版块: 合租专栏 (https://www.sinovoter.com/forum-18.html) +--- 版块: VPS 主机 服务器优惠 (https://www.sinovoter.com/forum-20.html) +--- 主题: 如何判断 OpenVZ VPS 是否超售 (/thread-8127.html) |
如何判断 OpenVZ VPS 是否超售 - netflix - 09-11-2023 VPS 真的有“保证内存”吗?当你运行 代码: free 代码: $ free -m 让我们挖掘出 ol' user_beancounters。 代码: $ sudo cat /proc/user_beancounters | grep -E '(uid|physpages|oomguarpages)' 引用:physpages看起来一个是容器使用的物理页面总数,而另一个是容器使用的页面总数(物理+交换)。这意味着当您获取oomguarpages(您获得的 physpages)时,该容器中进程的交换页面数!现在回到 UBC 读数,这里有 引用:(8085 – 6662) * 4096 / 1024 / 1024 = 5.56MB!已换出的 31.58MB(8,085 页)。而“ 代码: free 这样你你就可以判断你的 VPS 供应商是否“超售”内存并导致您的页面换出。 |