From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: XEN 4.0 + 2.6.31.13 pvops kernel : system crashes on starting 155th domU Date: Tue, 27 Apr 2010 22:29:11 +0300 Message-ID: <20100427192911.GA17817@reaktio.net> References: <019701cae5dd$01b36e70$051a4b50$@ucsd.edu> <20100427090206.GT17817@reaktio.net> <07dd01cae62d$20027830$60076890$@ucsd.edu> <20100427171842.GY17817@reaktio.net> <07f201cae63b$a847fef0$f8d7fcd0$@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <07f201cae63b$a847fef0$f8d7fcd0$@ucsd.edu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Yuvraj Agarwal Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Apr 27, 2010 at 11:58:42AM -0700, Yuvraj Agarwal wrote: > I did make that change (dom0_mem=3D8192M), but I still get the same err= or. > When I started the 154th domU (last time it was 155th) the dom0 crashes > (it kills network connections and I have to manually go and reboot it).= =20 > Hmm.. interesting. It should never crash..=20 Do you have a serial console so you could capture the error/crash message= s?=20 See: http://wiki.xensource.com/xenwiki/XenSerialConsole > I did get a little bit more information on xend.log and daemon.log > (attached). After the last successful VM startup I did check and make > sure the dom0 did indeed have enough memory. >=20 > root@MESL-BlackBox:/home/xen/noswap-configs# xm list | grep testing | w= c > -l > 153 > root@MESL-BlackBox:/home/xen/noswap-configs# xm info | grep mem >=20 > total_memory : 24490 > free_memory : 9254 Ok so over 9 GB of free memory in the hypervisor. How's the memory in dom0? It still has 8 GB and most of it is free? > node_to_memory : node0:2076 > node_to_dma32_mem : node0:2076 > xen_commandline : dom0_mem=3D8192M > root@MESL-BlackBox:/home/xen/noswap-configs# xm create > testing-ss-157.ucsd.edu > Using config file "./testing-ss-157.ucsd.edu". > Started domain testing-ss-157.ucsd.edu (id=3D154) >=20 How much memory does that ss-157 domU have configured?=20 > /var/log/daemon.log --> daemon.log > /var/log/xend.log --> xend.log >=20 > We'd appreciate any pointers to fix this... >=20 Did you disable dom0 ballooning from xend-config.sxp?=20 Did you make sure dom0 is NOT ballooned? Or does this crash happen when d= om0 is ballooned?=20 Please capture Xen and dom0 messages when it crashes.. -- Pasi > Thank you > --Yuvraj >=20 > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Pasi > K=E4rkk=E4inen > Sent: Tuesday, April 27, 2010 10:19 AM > To: Yuvraj Agarwal > Cc: xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] XEN 4.0 + 2.6.31.13 pvops kernel : system cras= hes > on starting 155th domU >=20 > On Tue, Apr 27, 2010 at 10:14:40AM -0700, Yuvraj Agarwal wrote: > > I am not using grub2; using grub-legacy instead. > > > > Also, once the dom0 boots up I do have to set the dom0 mem to: > > > > (1) xm mem-set 0 12000 (otherwise when starting up a lot of domU it > > would run out of memory) > > and > > (2) echo 1548576 > /proc/sys/fs/aio-max-nr > > >=20 > You might want to use dom0_mem=3DM option for xen.gz instead. >=20 > See: > http://wiki.xensource.com/xenwiki/XenBestPractices >=20 > -- Pasi >=20 > > > > My /boot/grub/menu.lst (pasted relevant lines) > > ************************************************** > > > > root@MESL-BlackBox:/usr/src# cat /boot/grub/menu.lst > > # menu.lst - See: grub(8), info grub, update-grub(8) > > # grub-install(8), grub-floppy(8), > > # grub-md5-crypt, /usr/share/doc/grub > > # and /usr/share/doc/grub-doc/. > > > > ## default num > > # Set the default entry to the entry number NUM. Numbering starts fro= m > 0, > > and > > # the entry number 0 is the default if the command is not used. > > # > > # You can specify 'saved' instead of a number. In this case, the defa= ult > > entry > > # is the entry saved with the command 'savedefault'. > > # WARNING: If you are using dmraid do not use 'savedefault' or your > > # array will desync and will not let you boot your system. > > default 0 > > > > ## timeout sec > > # Set a timeout, in SEC seconds, before automatically booting the > default > > entry > > # (normally the first entry defined). > > timeout 20 > > > > ### BEGIN AUTOMAGIC KERNELS LIST > > ## lines between the AUTOMAGIC KERNELS LIST markers will be modified > > ## by the debian update-grub script except for the default options be= low > > > > ## DO NOT UNCOMMENT THEM, Just edit them to your needs > > > > ## ## Start Default Options ## > > ## default kernel options > > ## default kernel options for automagic boot options > > ## If you want special options for specific kernels use kopt_x_y_z > > ## where x.y.z is kernel version. Minor versions can be omitted. > > ## e.g. kopt=3Droot=3D/dev/hda1 ro > > ## kopt_2_6_8=3Droot=3D/dev/hdc1 ro > > ## kopt_2_6_8_2_686=3Droot=3D/dev/hdc2 ro > > # kopt=3Droot=3DUUID=3D909f7c32-639a-469d-b34b-b418d2b6a2dc ro > > > > ## default grub root device > > ## e.g. groot=3D(hd0,0) > > # groot=3D909f7c32-639a-469d-b34b-b418d2b6a2dc > > > > ## should update-grub create alternative automagic boot options > > ## e.g. alternative=3Dtrue > > ## alternative=3Dfalse > > # alternative=3Dtrue > > > > ## should update-grub lock alternative automagic boot options > > ## e.g. lockalternative=3Dtrue > > ## lockalternative=3Dfalse > > # lockalternative=3Dfalse > > > > ## additional options to use with the default boot option, but not wi= th > > the > > ## alternatives > > ## e.g. defoptions=3Dvga=3D791 resume=3D/dev/hda5 > > # defoptions=3Dquiet splash > > > > ## should update-grub lock old automagic boot options > > ## e.g. lockold=3Dfalse > > ## lockold=3Dtrue > > # lockold=3Dfalse > > > > ## Xen hypervisor options to use with the default Xen boot option > > # xenhopt=3Ddom0_max_vcpus=3D1 dom0_mem=3D8192 > > > > ## Xen Linux kernel options to use with the default Xen boot option > > # xenkopt=3Dconsole=3Dtty0 > > > > ## altoption boot targets option > > ## multiple altoptions lines are allowed > > ## e.g. altoptions=3D(extra menu suffix) extra boot options > > ## altoptions=3D(recovery) single > > # altoptions=3D(recovery mode) single > > > > ## controls how many kernels should be put into the menu.lst > > ## only counts the first occurence of a kernel, not the > > ## alternative kernel options > > ## e.g. howmany=3Dall > > ## howmany=3D7 > > # howmany=3Dall > > > > ## specify if running in Xen domU or have grub detect automatically > > ## update-grub will ignore non-xen kernels when running in domU and v= ice > > versa > > ## e.g. indomU=3Ddetect > > ## indomU=3Dtrue > > ## indomU=3Dfalse > > # indomU=3Ddetect > > > > ## should update-grub create memtest86 boot option > > ## e.g. memtest86=3Dtrue > > ## memtest86=3Dfalse > > # memtest86=3Dtrue > > > > ## should update-grub adjust the value of the default booted system > > ## can be true or false > > # updatedefaultentry=3Dfalse > > > > ## should update-grub add savedefault to the default options > > ## can be true or false > > # savedefault=3Dfalse > > > > ## ## End Default Options ## > > > > title Xen 4.0.0 / Debian GNU/Linux, kernel 2.6.31.13 > > root (hd0,0) > > kernel /boot/xen-4.0.0.gz > > module /boot/vmlinuz-2.6.31.13 root=3D/dev/sda1 ro > > > > title Xen 3.4.2 / Debian GNU/Linux, kernel 2.6.31.8-xenapr2= 010 > > root (hd0,0) > > kernel /boot/xen-3.4.2.gz > > module /boot/vmlinuz-2.6.31.8-xenapr2010 root=3D/dev/sda1 ro > > console=3Dtty0 > > module /boot/initrd.img-2.6.31.8-xenapr2010 > > > > ### END DEBIAN AUTOMAGIC KERNELS LIST > > > > > > Please paste your dom0 grub.conf. > > Are you using memory ballooning? > > > > -- Pasi > > >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel