ESXI только 4,7 ГБ ОЗУ доступно для виртуальных машин из 8 ГБ ОЗУ. почему так мало?

3528
Iuri G.

У меня есть ESXI 6.0 с 8GB RAM. По какой-то причине я могу использовать только 4,7 ГБ для виртуальных машин. Я пытался использовать, esxtopно ничего не видел, используя много оперативной памяти. Ниже скриншоты из сферы. Может кто-нибудь помочь мне понять, куда идет Память? Как вы можете видеть ниже, для ESXI доступно всего 8104 МБ ОЗУ, но почему-то у меня есть только 4,7 ГБ ОЗУ для виртуальных машин. Когда я выключаю все виртуальные машины, esxi использует 1,4 ГБ, что нормально, но у меня остается только 4,7 ГБ для использования виртуальными машинами. Куда идет остаток ОЗУ и как я могу получить больше ОЗУ для использования виртуальными машинами?

Резюме

Физическая память

Доступная память

Потребляемая память

4

2 ответа на вопрос

2
harrymc

From VMware KB article The ESXi Summary tab and Resource Allocation tab do not show the same values for memory and CPU

The ESXi or Cluster Resource Allocation tab displays three values:

  • Total Capacity – Amount of resource that is guaranteed to be available to the resource pool (ESXi host).
  • Reserved Capacity – Total amount of resources that have been used for the reservation requirements of all descendants of the resource pool. This includes both child resource pools and virtual machines.
  • Available Capacity – Total amount or resources available for reservation of a child virtual machine.

The values in the Resource Allocation tab are the resources, with the system resource pools already subtracted.

Your values are :

Total Capacity: 4708 MB = amount guaranteed to always be available Reserved Capacity: 2698 MB = amount used now Available Capacity: 2010 MB = amount still available 

The VMware vSphere 6.0 Documentation says in the section Create a Resource Pool :

Reservation

Specify a guaranteed CPU or memory allocation for this resource pool. Defaults to 0.

A nonzero reservation is subtracted from the unreserved resources of the parent (host or resource pool). The resources are considered reserved, regardless of whether virtual machines are associated with the resource pool.

Expandable Reservation

When the check box is selected (default), expandable reservations are considered during admission control.

If you power on a virtual machine in this resource pool, and the combined reservations of the virtual machines are larger than the reservation of the resource pool, the resource pool can use resources from its parent or ancestors.

It is important to note that resource pools are created by default as expandable on need.

The article Managed Object - ResourcePool describes the root resource pool, which takes up the entire computer and is the ancestor of any other pool:

A resource pool is configured with a set of CPU (in MHz) and memory (in MB) resources. These resources are specified in absolute terms with a resource reservation and a resource limit, along with a shares setting. The shares are used during resource contention, to ensure graceful degradation.

For the root resource pool, the values of the reservation and the limit are set by the system and are not configurable. The reservation and limit are set to the same value, indicating the total amount of resources the system has available to run virtual machines. This is computed as the aggregated CPU and memory resources provided by the set of current available hosts in the parent compute resource minus the overhead of the virtualization layer.

The 5.1 manual for Listing and Registering Virtual Machines says this :

The default datacenter is ha-datacenter and the default resource pool is Resources.

According to your first screenshot, Resources is defined as having the CPU capacity of 2 x 2.194 GHZ and the memory capacity of 8103.84 MB. ESXi is therefore aware of your configuration and has taken up the entire memory.

Although you have not created any resource pool, a default resource pool was created for you with the Reserved value of 4708 MB, which is the amount that is subtracted immediately from the host memory.

Since in your case you haven't exceeded the minimum of 4708 MB, ESXi did not do any additional allocation from the root pool. This will be done when needed.

Я думаю, что вы читаете документы неправильно. 2698 (используется) + 2010 (доступно) составляет ** точно ** 4708 (Общая емкость для виртуальных машин). Так что 4708 + 2010 просто неправильно. Я согласен, что 4,7 ГБ - это то, что Vmware гарантирует как общий объем памяти, доступный для виртуальных машин. Вопрос в том, как мне сделать это больше, так как 3,7 ГБ для 8 ГБ системы с 2 ВМ звучат немного чрезмерно и неправильно. Iuri G. 8 лет назад 0
Единственное место, где я могу найти `` `Расширяемое резервирование```, находится в пулах ресурсов, и у меня нет настроенных пулов ресурсов. речь идет о ванильной установке ESXI 6.0. Я попытался установить esxi 5.5 в ВМ с 8 ГБ, и у меня было доступно 5,5 ГБ ... Интересно, есть ли сервисы, которые я могу отключить, чтобы выделить больше оперативной памяти для Vms, так как я не использую vcenter или какие-либо "корпоративные" функции Iuri G. 8 лет назад 0
Я понимаю, что ESXI резервирует 4,7 ГБ для виртуальных машин, мой вопрос заключается в том, как сделать это резервирование выше? Я попробовал ESXI 5.5, и он зарезервировал 5.2GB. Итак, как мне изменить пул ресурсов по умолчанию? Я могу только создать новый с ограничением 4,7 ГБ - зарезервированная сумма как общая доступная сумма Iuri G. 8 лет назад 0
Я включил все мои комментарии выше в мой ответ. Я думаю, что показал, что ESXi знает о вашей памяти и будет использовать все, поэтому никаких действий не требуется. harrymc 8 лет назад 0
Я зарезервировал 4,5 ГБ для 1VM. поэтому я создал новую виртуальную машину с 1 ГБ оперативной памяти. Если я правильно понимаю ваши комментарии, я должен был запустить его, и он должен был использовать дополнительную оперативную память, которая не была зарезервирована пулом ресурсов по умолчанию. ВМ не запускалась. Более того, машина использовала 6 ГБ из 8 ГБ, поэтому для этой виртуальной машины было 2 ГБ ... Не похоже, что я могу использовать более 4,7 ГБ для vms. Могу ли я изменить резервирование пула ресурсов по умолчанию? Iuri G. 8 лет назад 0
Weird. Вопросы: (1) Вы удалили созданный вами дополнительный пул ресурсов? (2) Можете ли вы перечислить все пулы ресурсов? (3) Есть ли у вас [PowerCLI] (http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.powercli.cmdletref.doc)? harrymc 8 лет назад 0
Да, я удалил это. Я не создал пулы ресурсов вручную. У меня есть PowerCLI. У меня есть доступ SSH к ESXI. У меня есть vSphere. У меня нет vCenter. Я не знаю, как список пулов ресурсов без vCenter. Iuri G. 8 лет назад 0
Я никогда не использовал [Командлеты PowerCLI] (http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.powercli.cmdletref.doc/Overview.html), но, похоже, можно сделать вполне много с ними. Вы также должны изучить журналы. harrymc 8 лет назад 0
Замечание: из-за того, что у вас нет vCenter, я делаю вывод, что вы используете бесплатную версию ESXi 6.0. Есть много сообщений о том, что ограничения памяти резко сокращаются ([пример] (http://datacenteroverlords.com/2011/07/17/free-esxi-now-with-8-gb-limit/)) с каждой новой версией бесплатно ESXi. Это может объяснить вашу проблему и почему ваш опыт противоречит опыту пользователей платной версии, а также почему ограничение памяти уменьшается с каждой последующей версией ESXi. Попробуйте самую последнюю версию 6.0, и если это не сработает, используйте предыдущую версию; или продукт не от VMware harrymc 8 лет назад 0
1
nKn

The Resource allocation tab describes the minimum guaranteed resources the host will be able to provide in case of a heavy-load scenario. It doesn't mean it cannot provide the whole amount of RAM, this only represents the minimum of it if you're reaching a treshold of extreme resource consumption.

In our case, we have hosts that have 262115.5 MB of RAM and our minimum guaranteed amount of RAM in a heavy-load scenario is 251577 MB. The bigger the RAM, the bigger the minimum of guaranteed resources.

If you want an official source for that, there's a VMware document explaining it for vSphere 4.0 but same applies for current versions.

Похожие вопросы