@
fantasticfears 这个有点误会,相信你用过XEN的VPS都是这样的,包括Linode,不是按照1000来计算内存,而是隐藏了该镜像内核本身使用的内存。说到底虚拟化实际上是在一个操作系统上运行一个程序,这个程序做了模拟硬件的事情,做了各种隔离手段,使用户用VPS或者VM的时候感觉像运行了一个独立的一台机器,这个程序本身总是要一些内存运行的,一般情况下为了平衡这部分开销成本,会把这个内存也计入用户购买的主机内存里面,当然,如果有些主机提供商超卖那是另外一回事了,你用free命令去看的话就会多一点内存,因为成本在超卖的时候被消化了。
以下是Linode客服回答我的原文(我买的是linode 768 plan):
Thank you for contacting us. When you run the "free" command on a system using a paravirt kernel, the memory that is reserved for the kernel is hidden from view. You can rest assured that you still have the full 768 megabytes of memory, however the amount that is not being shown is simply being used for the kernel.