<div dir="ltr">Did you copied or onehost sync the modified rb to the hosts?. If the output is ok running the probes directly then OpenNebula should update the value.<div><br></div><div>Could you send the ouput of the probe?, just to doble check it is ok.</div>
<div><br></div><div>VMEMORY is not ready for 4.4...</div><div><br></div><div>Ruben</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 21, 2013 at 2:24 PM, Gerry O'Brien <span dir="ltr"><<a href="mailto:gerry@scss.tcd.ie" target="_blank">gerry@scss.tcd.ie</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 18/10/2013 20:10, Michał Madziar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2013-10-18 17:36, Gerry O'Brien wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 16/10/2013 20:40, Michał Madziar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2013-10-16 21:00, Gerry O'Brien wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 16/10/2013 17:19, Michał Madziar wrote: _requirements" lives?<br>
</blockquote>
I didn't touch the scheduler, just patched the reporting script.<br>
On my system it exists in ~oneadmin/remotes/im/kvm.d/<u></u>kvm.rb and is<br>
copied by ON (idr when exactly - restart?) to /var/tmp/one/im/kvm.d/ on<br>
every host in cluster.<br>
I just added above lines near the end of script - before printing,<br>
copied it manually and about minute later changes were visible in chart.<br>
</blockquote>
Hi,<br>
This file get copied over to the host when oned is restarted. If<br>
you run it on the host it reports the increased memory size. However,<br>
the scheduler seems to ignore this. I'm running version 4.2. Is that<br>
what you are running?<br>
</blockquote>
Remember that values reported to ON must be consistent - total == free +<br>
used or ON will ignore them.<br>
<br>
That how it's look like on our system:<br>
<a href="http://img822.imageshack.us/img822/1152/n5g6.png" target="_blank">http://img822.imageshack.us/<u></u>img822/1152/n5g6.png</a><br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote>
Hi,<br>
<br>
Below is the modified section of kvm.rb. I have only added three lines to try to report double the actual memory.<br>
<br>
39d38<br>
< $total_memory = $total_memory.to_i * 2<br>
70d68<br>
< $total_memory = $total_memory.to_i * 2<br>
75d72<br>
< $free_memory=$total_memory - $used_memory.to_i<br>
<br>
<br>
When I run the modified kvm.rb on the host it reports back twice the memory but ON seems to ignore it.<br>
Do you know if VMEMORY has been implemented?<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
nodeinfo_text.split(/\n/).<u></u>each{|line|<br>
if line.match('^CPU\(s\)')<br>
$total_cpu = line.split(":")[1].strip.to_i * 100<br>
elsif line.match('^CPU frequency')<br>
$cpu_speed = line.split(":")[1].strip.<u></u>split(" ")[0]<br>
elsif line.match('^Memory size')<br>
$total_memory = line.split(":")[1].strip.<u></u>split(" ")[0]<br>
$total_memory = $total_memory.to_i * 2<br>
end<br>
}<br>
<br>
######<br>
# for everything else, top & proc<br>
#####<br>
<br>
NETINTERFACE = "eth1"<br>
<br>
top_text=`top -bin2`<br>
exit(-1) if $?.exitstatus != 0<br>
<br>
top_text.gsub!(/^top.*^top.*?$<u></u>/m, "") # Strip first top output<br>
<br>
top_text.split(/\n/).each{|<u></u>line|<br>
if line.match('^%?Cpu')<br>
line[7..-1].split(",").each{|<u></u>elemento|<br>
temp = elemento.strip.split(/[% ]/)<br>
if temp[1]=="id"<br>
idle = temp[0]<br>
$free_cpu = idle.to_f * $total_cpu.to_f / 100<br>
$used_cpu = $total_cpu.to_f - $free_cpu<br>
break<br>
end<br>
<br>
}<br>
end<br>
}<br>
<br>
$total_memory = `free -k|grep "Mem:" | awk '{print $2}'`<br>
$total_memory = $total_memory.to_i * 2<br>
tmp=`free -k|grep "buffers\/cache"|awk '{print $3 " " $4}'`.split<br>
<br>
$used_memory=tmp[0]<br>
$free_memory=tmp[1]<br>
$free_memory=$total_memory - $used_memory.to_i<br>
<br>
<br>
<br>
<br>
-- <br>
Gerry O'Brien<br>
<br>
Systems Manager<br>
School of Computer Science and Statistics<br>
Trinity College Dublin<br>
Dublin 2<br>
IRELAND<br>
<br>
00 353 1 896 1341<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div></div>
</div>