Nova - too much memory reported

asked 2019-04-29 05:32:57 -0500

hello, i'm having an issue with the Nova module where the hypervisor reported memory is greater than the system available memory:

nova hypervisor-stats

+----------------------+-------+

| Property | Value | +----------------------+-------+ | count | 1 | | current_workload | 0 | | disk_available_least | 131 | | free_disk_gb | 151 | | free_ram_mb | 8078 | | local_gb | 461 | | local_gb_used | 277 | | memory_mb | 65422 | | memory_mb_used | 64771 | | running_vms | 14 | | vcpus | 32 | | vcpus_used | 28 | +----------------------+-------+

free -mh total used free shared buff/cache available Mem: 62G 60G 497M 1.5M 1.4G 412M Swap: 23G 23G 352M

as you can see, i have a total of 62G of memory on my controller, but the hypervisor is reporting 65G

also, i tried setting the following option on /etc/nova/nova.conf reserved_host_memory_mb = 2048

and as far as i can see it is being ignored.

how should i configure nova to report the existing memory, and restrict the available memory on the hipervisor not to overwhelm the controller?

thank you,

Tiago

edit retag flag offensive close merge delete

Comments

What is your memory ratio in nova.conf nova can overcommit ram...

jsm gravatar imagejsm ( 2019-04-30 16:09:03 -0500 )edit

i have not setup a ratio in nova.conf, but from 62g available to 65g reported it does not seem a default ratio. also, the reserved_host_memory_mb = 2048 is not being applied as far as i can see.

tiago.diogo gravatar imagetiago.diogo ( 2019-05-02 04:29:19 -0500 )edit