<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 26 Jul 2017, at 16:50, Jakub Niedermertl &lt;<a href="mailto:jniederm@redhat.com" class="">jniederm@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Hello Ladislav,<br class=""><br class=""></div>the function computing size of default maximum memory size is currently not configurable from DB.<br class=""><br class=""></div>If you want it to be so please feel free to file an RFE [1].<br class=""><br class="">[1]: <a href="https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine" class="">https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine</a><br class=""><br class=""></div>Best regards,<br class=""></div>Jakub<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jul 26, 2017 at 1:59 PM, Ladislav Humenik <span dir="ltr" class="">&lt;<a href="mailto:ladislav.humenik@1und1.de" target="_blank" class="">ladislav.humenik@1und1.de</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hallo, after engine update to 4.1.2 from 4.0.6 we have following bug<br class="">
<br class="">
*Your Future Description: *<br class="">
<br class="">
Maximum memory value is stored in |VmBase.maxMemorySizeMb| property. It is validated against range [/memory of VM/, /*MaxMemorySizeInMB/], where /*MaxMemorySizeInMB/ is one of |VM32BitMaxMemorySizeInMB|, |VM64BitMaxMemorySizeInMB| and |VMPpc64BitMaxMemorySizeInMB| configuration options depending on selected operating system of the VM. Default value in webadmin UI is 4x size of memory.<br class="">
<br class="">
During migration of engine 4.0 -&gt; 4.1 all VM-like entities will get max memory = 4x memory.<br class="">
<br class="">
If a VM (or template) is imported (from export domain, snapshot, external system) and doesn't have max memory set yet, the maximum value of max memory is set (|*MaxMemorySizeInMB| config options).<br class="">
<br class="">
*Our engine settings:*<br class="">
[root@ovirt]# engine-config -g VM64BitMaxMemorySizeInMB<br class="">
VM64BitMaxMemorySizeInMB: 8388608 version: 4.1<br class="">
VM64BitMaxMemorySizeInMB: 8388608 version: 3.6<br class="">
VM64BitMaxMemorySizeInMB: 8388608 version: 4.0<br class="">
[root@ovirt# engine-config -g VM32BitMaxMemorySizeInMB<br class="">
VM32BitMaxMemorySizeInMB: 20480 version: general<br class="">
<br class="">
*Template:<br class="">
*engine=# select vm_guid,vm_name,mem_size_mb,ma<wbr class="">x_memory_size_mb from vm_static where vm_name LIKE 'Blank';<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vm_guid&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | vm_name | mem_size_mb | max_memory_size_mb<br class="">
------------------------------<wbr class="">--------+---------+-----------<wbr class="">--+--------------------<br class="">
&nbsp;00000000-0000-0000-0000-00000<wbr class="">0000000 | Blank&nbsp; &nbsp;|&nbsp; &nbsp; &nbsp; &nbsp; 8192 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32768<br class="">
(1 row)<br class="">
<br class="">
*Created VM*<br class="">
- expected is mem_size_mb * VM64BitMaxMemorySizeInMB<br class="">
- we get mem_size_mb * 4 (default)<br class="">
<br class="">
*Engine: *engine=# select vm_guid,vm_name,mem_size_mb,ma<wbr class="">x_memory_size_mb from vm_static where vm_name LIKE 'vm-hotplug%';<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vm_guid&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; &nbsp;vm_name&nbsp; &nbsp;| mem_size_mb | max_memory_size_mb<br class="">
------------------------------<wbr class="">--------+-------------+-------<wbr class="">------+--------------------<br class="">
&nbsp;254a0c61-3c0a-41e7-a2ec-5f77c<wbr class="">abbe533 | vm-hotplug&nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; 1024 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4096<br class="">
&nbsp;c0794a03-58ba-4e68-8f43-e0320<wbr class="">032830c | vm-hotplug2 |&nbsp; &nbsp; &nbsp; &nbsp; 3072 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 12288<br class="">
(2 rows)<br class="">
<br class="">
*Question:*<br class="">
It is possible to change this (default * 4) behavior in DB??<br class=""></blockquote></div></div></div></blockquote><div><br class=""></div></div><div>if the issue is with GUI then setting the max memory in the template would be inherited to all VMs from that template, you can even change that in “Blank” I think, Jakube?</div><div>That’s for the default case, you can change that any way you like for the concrete VM you’re creating.</div><div><div>if the issue is with API you can simply provide any number for the max mem in all the requests</div><div><br class=""></div><div>the VM[64|32]BitMaxMemorySizeInMB values are for the total maximum the particular qemu we ship supports, it’s not anything you should need to change.</div><div class=""><br class=""></div></div><div>Thanks,</div><div>michal</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="">
Kind Regards,<br class="">
Ladislav Humenik, System administrator<br class="">
<br class="">
</blockquote></div><br class=""></div>
_______________________________________________<br class="">Users mailing list<br class=""><a href="mailto:Users@ovirt.org" class="">Users@ovirt.org</a><br class="">http://lists.ovirt.org/mailman/listinfo/users<br class=""></div></blockquote></div><br class=""></body></html>