<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 3:26 PM, David Vrabel <span dir="ltr">&lt;<a href="mailto:david.vrabel@citrix.com" target="_blank">david.vrabel@citrix.com</a>&gt;</span> wrote:<br>
<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"><div class="im">On 15/07/13 20:44, Rushikesh Jadhav wrote:<br>

&gt; Hi List,<br>
&gt;<br>
&gt; It seems that the xen balloon functionality for guest is not enabled in<br>
&gt; CentOS 3.4.50-8.el6 xen kernel by default via centos-release-xen.x86_64<br>
&gt; repo. I think this should have been present since this extra Xen repo<br>
&gt; needs to support as both Guest and Host (Dom0).<br>
<br>
</div>The kernel is only intended for use as a dom0 kernel.  We recommend the<br>
use of the existing 2.6.32 kernel for guests.<br>
<div class="im"><br></div></blockquote><div><br></div><div>Any idea for not using 3.4.50 as guest kernel ?</div><div>2.6.32 is giving lot of trouble in ballooning, I have filed below bugs for it.</div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=969601">https://bugzilla.redhat.com/show_bug.cgi?id=969601</a><br>
</div><div><a href="http://bugs.centos.org/view.php?id=6484">http://bugs.centos.org/view.php?id=6484</a><br></div><div><br></div><div>Please have a look at comment <a href="https://bugzilla.redhat.com/show_bug.cgi?id=969601#c2">https://bugzilla.redhat.com/show_bug.cgi?id=969601#c2</a></div>
<div><br></div><div> </div><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"><div class="im">
&gt; The kernel had to be recompiled with CONFIG_XEN_SELFBALLOONING.<br>
&gt; How can I request to make it default enable in centos repo ? or is there<br>
&gt; any reason to not have it default ?<br>
<br>
</div>We do not want self-ballooning enabled in the dom0 kernel.  This option<br>
is also not required for toolstack-directed ballooning.<br></blockquote><div><br></div><div>I&#39;m currently using only xl toolstack and not using XAPI/Xenserver toolstack, I have both environments and intent to fix in both.</div>
<div>Since 2.6.32 is not ballooning, I had to find another kernel which supports this. 3.4.50 seems to be working in Xenserver but does not work on native Xen,</div><div><br></div><div>I&#39;m using centos-release-xen repo to setup host ( dom0 CentOS6 + 3.4.50 )  &amp; guest ( domU CentOS6 + 3.4.50 ).</div>
<div>In my testing it was observed that if CONFIG_XEN_SELFBALLOONING is not set then the guest does not balloon. ( Verified by xl mem-set )</div><div><br></div><div>Problem may be with CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y as well. What do you think ?</div>
<div>I&#39;ll try to disable selfballooning and test with only CONFIG_XEN_BALLOON_MEMORY_HOTPLUG.</div><div><br></div><div>Thanks.</div><div><br></div><div> </div><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">

<div class="im"><br>
&gt; On Fri, Jul 12, 2013 at 7:42 PM, Rushikesh Jadhav &lt;<a href="mailto:2rushikeshj@gmail.com">2rushikeshj@gmail.com</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:2rushikeshj@gmail.com">2rushikeshj@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi List,<br>
&gt;<br>
&gt;     I&#39;m trying to work out the balloon driver on CentOS6 HVM but it<br>
&gt;     seems to be not working with default 2.6.32 or newer 3.4 kernel.<br>
&gt;<br>
&gt;     Does balloon driver work on HVM linux guests with Linux Kernel 3.4<br>
&gt;     from centos repo ?<br>
&gt;<br>
&gt;     PV is fine and is able to balloon.<br>
&gt;<br>
&gt;     My host is Xen 4.1.2 with dom0 as 3.4.46-8.el6.centos.alt.x86_64<br>
&gt;     My guest is CentOS6.4 with kernel 3.4.46-8.el6.centos.alt.x86_64<br>
&gt;<br>
&gt;     Please have a look at below guest logs,<br>
&gt;     [root@hvmc6 ~]# uname -a Linux hvmc6 3.4.50-8.el6.centos.alt.x86_64<br>
&gt;     #1 SMP Fri Jun 21 03:14:22 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux<br>
&gt;     [root@hvmc6 ~]# xenstore-ls memory initial-reservation = &quot;1193984&quot;<br>
&gt;     initial-target = &quot;1048576&quot; static-max = &quot;16777216&quot; target =<br>
&gt;     &quot;1048576&quot; dynamic-min = &quot;1048576&quot; dynamic-max = &quot;1048576&quot;<br>
&gt;     memory-offset = &quot;-258100&quot;<br>
&gt;     [root@hvmc6 ~]# dmesg | grep -i balloon xen/balloon: Initialising<br>
&gt;     balloon driver. xen-balloon: Initialising balloon driver.<br>
&gt;     [root@hvmc6 ~]# free -m total used free shared buffers cached Mem:<br>
&gt;     463 221 241 0 24 13 -/+ buffers/cache: 184 278 Swap: 9987 7 9980<br>
<br>
</div>It&#39;s not clear what sequence of toolstack operations you&#39;ve done prior<br>
to the above commands.  Are you trying to increase or decrease the<br>
amount of memory in the guest, what were the toolstack commands you used<br>
and what is the initial guest configuration.<br>
<div class="im"><br>
&gt;     When I try to set it manually from host, I get<br>
&gt;     # xl mem-set 229 2049 xc: error: do_memory_op: WARNING: op=16 not<br>
&gt;     converted to safe ioctls: Internal error<br>
<br>
</div>This (harmless) warning only occurs on XenServer hosts.  What host are<br>
you actually running?<br>
<span class=""><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div></div>