<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 10 Dec 2015, at 13:16, Gianluca Cecchi &lt;<a href="mailto:gianluca.cecchi@gmail.com" class="">gianluca.cecchi@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 10, 2015 at 12:24 PM, Michal Skrivanek <span dir="ltr" class="">&lt;<a href="mailto:mskrivan@redhat.com" target="_blank" class="">mskrivan@redhat.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br class=""><br class="">
&gt;<br class="">
&gt; Yes, CentOS 7.1 updated up to a couple of days ago.<br class="">
<br class="">
</span>Can you try 7.2? I don’t remember exactly but it may be that in earlier guests it’s not automatic. Check some tips for onlining memory explicitly<br class="">
<br class="">
5.2. How to online memory<br class="">
&nbsp;------------<br class="">
Even if the memory is hot-added, it is not at ready-to-use state.<br class="">
For using newly added memory, you have to "online" the memory block.<br class="">
<br class="">
For onlining, you have to write "online" to the memory block's state file as:<br class="">
<br class="">
% echo online &gt; /sys/devices/system/memory/memoryXXX/state<br class="">
<div class=""><div class="h5"><br class=""></div></div></blockquote><div class="">&nbsp;</div></div><br class=""></div><div class="gmail_extra">Hello,</div><div class="gmail_extra">with your suggestions it worked as expected, without updating any packages in VM 7.1 guest (I seemed to remember that the forced online operation should not be necessary any more…):</div></div></div></blockquote><div><br class=""></div>great!</div><div>with 7.2 it should be automatic. I think with Windows it works automatically as well.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""></div><div class="gmail_extra">Starting state with 10Gb of ram inside the VM</div><div class="gmail_extra"><div class="gmail_extra">[root@racclient1 ~]# ll -d &nbsp;/sys/devices/system/memory/memory* | wc -l</div><div class="gmail_extra">80</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">slots defined:</div><div class="gmail_extra">0 --&gt; 23</div><div class="gmail_extra">32 --&gt; 87</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">Increase from web gui memory from 10240 to 12288</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">I see this in messages as expected</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">Dec 10 12:59:32 racclient1 kernel: init_memory_mapping: [mem 0x2c0000000-0x33fffffff]</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">In&nbsp;/sys/devices/system/memory I see 16 new memoryxx directories (probably each one addressing 128Mb...)</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">88</div><div class="gmail_extra">89</div><div class="gmail_extra">90</div><div class="gmail_extra">91</div><div class="gmail_extra">92</div><div class="gmail_extra">93</div><div class="gmail_extra">94</div><div class="gmail_extra">95</div><div class="gmail_extra">96</div><div class="gmail_extra">97</div><div class="gmail_extra">98</div><div class="gmail_extra">99</div><div class="gmail_extra">100</div><div class="gmail_extra">101</div><div class="gmail_extra">102</div><div class="gmail_extra">103</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">They have indeed been added but are offline, eg</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">latest previous one:</div><div class="gmail_extra">[root@racclient1 ~]# cat /sys/devices/system/memory/memory87/state&nbsp;</div><div class="gmail_extra">online</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">first newly added one:</div><div class="gmail_extra">[root@racclient1 ~]# cat /sys/devices/system/memory/memory88/state&nbsp;</div><div class="gmail_extra">offline</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">[root@racclient1 ~]# cat /sys/devices/system/memory/memory87/online&nbsp;</div><div class="gmail_extra">1</div><div class="gmail_extra">[root@racclient1 ~]# cat /sys/devices/system/memory/memory88/online&nbsp;</div><div class="gmail_extra">0</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">put online the new segments:</div><div class="gmail_extra">[root@racclient1 ~]# for i in $(seq 88 103)</div><div class="gmail_extra">&gt; do</div><div class="gmail_extra">&gt; echo online &gt; /sys/devices/system/memory/memory${i}/state</div><div class="gmail_extra">&gt; done</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">Memory has been increased now, also from inside the OS.</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">[root@racclient1 ~]# free</div><div class="gmail_extra">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total &nbsp; &nbsp; &nbsp; &nbsp;used &nbsp; &nbsp; &nbsp; &nbsp;free &nbsp; &nbsp; &nbsp;shared &nbsp;buff/cache &nbsp; available</div><div class="gmail_extra">Mem: &nbsp; &nbsp; &nbsp; 12334428 &nbsp; &nbsp; &nbsp;222080 &nbsp; &nbsp;11934044 &nbsp; &nbsp; &nbsp; &nbsp;8480 &nbsp; &nbsp; &nbsp;178304 &nbsp; &nbsp;12019544</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">NOTE: no new entries after online memory, neither in messages file nor in dmesg output.</div><div class=""><br class=""></div><div class="">Questions:</div><div class="">1) which component to bugzilla against for message confusing window of the gui?</div></div></div></div></blockquote><div><br class=""></div>doesn’t matter much, ovirt-engine, frontend.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="">2) Initially I see that my VM (in webadmin gui) has 8Gb of defined memory AND 8Gb of "Physical Memory Guaranteed".</div><div class="">After increasing memory, the second one remains the same and doesn't change even after shutdown / Power on.</div></div></div></div></blockquote></div><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="">I think it could be an enhancement to ask the user if he/she wants to change it too, instead of manually go through&nbsp;</div><div class="">Edit --&gt; resource allocation --&gt; memory allocation screen</div><div class="">If seen as a agreed enhancement, which components to bugzilla against for RFE?</div></div></div></div></blockquote><div><br class=""></div><div>yeah, these are two separate fields. The suggestion sounds reasonable to me, Roy, thoughts on that?</div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="">Gianluca</div></div></div>
</div></blockquote></div><br class=""></body></html>