From: Kurt Garloff Subject: unstable: no ballooning Date: Mon, 10 Oct 2005 12:46:39 +0200 Message-ID: <20051010104639.GA18307@tpkurt.garloff.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1721476606==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen development list List-Id: xen-devel@lists.xenproject.org --===============1721476606== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tjCHc7DPkfUGtrlw" Content-Disposition: inline --tjCHc7DPkfUGtrlw Content-Type: multipart/mixed; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, when using xm mem-set on current (7278) unstable, you'll see [2005-10-10 10:25:51 xend] ERROR (SrvBase:87) Request mem_target_set failed. Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in p= erform return op_method(op, req) File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomain.py", lin= e 132, in op_mem_target_set return self.call(self.dom.setMemoryTarget TypeError: unsubscriptable object in xend.log. The fix is trivial, a comma is missing, see (first) attached patch. HOWEVER, this still does not make balllooning work. Nobody ever writes to /proc/xen/balloon. I guess some message should go over xenbus and someone should then=20 write to it's balloon file. For dom0, we could do it directly in=20 XendDomainInfo.setMemoryTarget(). See attached second patch. It's a hack and certainly not the right solution. Who should do it? Best, --=20 Kurt Garloff [Koeln, DE] Physics:Plasma modeling [TU Eindhoven, NL] Linux: SUSE Labs (Director) [Novell Inc] --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xen-SrvDomain-typo.diff" Content-Transfer-Encoding: quoted-printable --- xen-unstable/tools/python/xen/xend/server/SrvDomain.py.orig 2005-10-09 = 21:22:58.000000000 +0200 +++ xen-unstable/tools/python/xen/xend/server/SrvDomain.py 2005-10-10 11:06= :50.428679844 +0200 @@ -129,7 +129,7 @@ =20 =20 def op_mem_target_set(self, op, req): - return self.call(self.dom.setMemoryTarget + return self.call(self.dom.setMemoryTarget, [['target', 'int']], req) =20 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xen-balloon-dom0.diff" Content-Transfer-Encoding: quoted-printable --- xen-unstable/tools/python/xen/xend/XendDomainInfo.py.orig 2005-10-09 21= :22:58.000000000 +0200 +++ xen-unstable/tools/python/xen/xend/XendDomainInfo.py 2005-10-10 12:33:4= 5.938319517 +0200 @@ -796,7 +796,10 @@ class XendDomainInfo: t =3D target << 10 self.info['memory_KiB'] =3D t self.storeDom("memory/target", t) - + # BAD HACK -- this should be done somewhere else !!! + if self.domid =3D=3D 0: + balloon =3D open("/proc/xen/balloon", "w") + balloon.write("%iM" % target) =20 def update(self, info =3D None): """Update with info from xc.domain_getinfo(). --YiEDa0DAkWCtVeE4-- --tjCHc7DPkfUGtrlw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDSkaPxmLh6hyYd04RAtxCAJ9RyOPo9NpRVpkvNc6y0um6yR1WjQCfaila 8JSkdIdhGVgHVsZVdCCzzsw= =svCY -----END PGP SIGNATURE----- --tjCHc7DPkfUGtrlw-- --===============1721476606== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1721476606==--