From: "Robbie Garertt" Subject: xen balloon issue? Date: Tue, 16 Mar 2010 10:46:46 -0400 Message-ID: <67C84CCFBA7570459B81345BA19100052CB6@ex02.hostourweb.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0768838682==" Return-path: Content-class: urn:content-classes:message List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0768838682== Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CAC517.8051E1D0" Content-class: urn:content-classes:message This is a multi-part message in MIME format. ------_=_NextPart_001_01CAC517.8051E1D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I know this may not be the correct place here and hopefully I will not = get flamed for this but I am searching for an answer to my problem and I = think it may be a bug? =20 I have a xen server setup and running version 3.4.2. Kernel version is = 2.6.31.12. My issue here is that when I do a free -m within the Vm is shows less, = some times more ram then what the config files shows. Here is an = example of what I see from xend starting the domU. [2010-03-14 17:09:45 2598] DEBUG (balloon:166) Balloon: 7766704 KiB = free; need 526336; done.=20 526336 /1024 =3D 514MB When I do a free -m within the domU I get it showing me a total of = 506mb. when I do cat /proc/meminfo is shows a total of 518220 which is 506mb. =20 =20 It would appear that for what ever reason my system is off by 19MB when = it comes to 512mb, and 28mb per gb. I had to set my testing.cfg file = to 531MB to get free -m to show 512mb of total memory inside a domU and = 1052 to get it to so show 1024. =20 can anyone provide any insight as to why or where i may go in an attempt = to get this solved? 20mb adds up to a lot when you run several domu's =20 Config options below. =20 Made the dom0 and domU kernel by doing git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git = linux-2.6-xen cd linux-2.6-xen make && make modules && make modules_install && make bzImage && make = install =20 my domU config is=20 kernel =3D '/boot/vmlinuz-2.6.31.12-XenDom0' ramdisk =3D '/boot/initrd.img-2.6.31.12-XenDom0' memory =3D '512' # # Disk device(s). # root =3D '/dev/xvda2 ro' disk =3D [ 'phy:/dev/Xen/Testing-disk,xvda2,w', 'phy:/dev/Xen/Testing-swap,xvda1,w', ] # # Physical volumes # =20 # # Hostname # name =3D 'Testing' # # Networking # vif =3D [ 'ip=3D192.168.5.2,mac=3D00:16:3E:78:FB:92' ] # # Behaviour # on_poweroff =3D 'destroy' on_reboot =3D 'restart' on_crash =3D 'restart' ------_=_NextPart_001_01CAC517.8051E1D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =0A= =0A= =0A= =0A=
=0A=
I know this = may not be the correct place here and hopefully I will not get = flamed for this but I am searching for an answer to my problem = and I think it may be a bug?
=0A=
 
=0A=
=0A=
=0A=
I have a xen server = setup and running version 3.4.2. Kernel version is = 2.6.31.12.
=0A=
=0A=
=0A=
=0A=
My issue here is that when I = do a free -m within the Vm is shows less, some times more ram then what = the config files shows.   Here is an example of what I see = from xend starting the domU.
=0A=
[2010-03-14 17:09:45 2598] DEBUG (balloon:166) Balloon: = 7766704 KiB free; need 526336; done.
=0A=
526336 /1024 =3D 514MB
=0A=
When I do a free -m within the domU I get it showing = me a total of 506mb.
=0A=
when I do cat /proc/meminfo is shows a total of = 518220 which is 506mb.
=0A=
 
=0A=
 =0A=
=0A=
It would = appear that for what ever reason my system is off by 19MB when it comes = to 512mb, and 28mb per gb.   I had to set my testing.cfg file = to 531MB to get free -m to show 512mb of total memory inside a domU and = 1052 to get it to so show 1024.
=0A=
=0A=
=0A=
 
=0A=
can anyone provide any = insight as to why or where i may go in an attempt to get this = solved?  20mb adds up to a lot when you run several = domu's
=0A=
 
=0A=
Config options below.
=0A=
 
=0A=
Made the dom0 and domU kernel = by doing
=0A=
git clone = git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git = linux-2.6-xen
cd linux-2.6-xen
=0A=
make && make modules = && make modules_install && make bzImage && make = install
=0A=
 
=0A=
my domU config is
=0A=
kernel      =3D = '/boot/vmlinuz-2.6.31.12-XenDom0'
ramdisk     =3D = '/boot/initrd.img-2.6.31.12-XenDom0'
=0A=
memory      =3D '512'
=0A=
#
#  Disk = device(s).
#
root        =3D = '/dev/xvda2 ro'
disk        =3D = [
           &n= bsp;      = 'phy:/dev/Xen/Testing-disk,xvda2,w',
     &nb= sp;            = 'phy:/dev/Xen/Testing-swap,xvda1,w',
     &nb= sp;        ]
=0A=

#
#  Physical volumes
#
=0A=
 
=0A=
#
#  = Hostname
#
name        =3D = 'Testing'
=0A=
#
#  = Networking
#
vif         = =3D [ 'ip=3D192.168.5.2,mac=3D00:16:3E:78:FB:92' ]
=0A=
#
#  Behaviour
#
on_poweroff =3D = 'destroy'
on_reboot   =3D = 'restart'
on_crash    =3D = 'restart'
------_=_NextPart_001_01CAC517.8051E1D0-- --===============0768838682== 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 --===============0768838682==--