Bug 426926 - XEN consistently crash with <=512Mb RAM
Summary: XEN consistently crash with <=512Mb RAM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel-xen
Version: 5.1
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Xen Maintainance List
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On:
Blocks: 514491
TreeView+ depends on / blocked
 
Reported: 2007-12-28 14:40 UTC by Gavin
Modified: 2010-11-09 13:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-22 18:51:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
xend.log (882.59 KB, text/plain)
2007-12-28 17:08 UTC, Gavin
no flags Details
Guest log x86_64 (248.41 KB, text/plain)
2007-12-28 17:34 UTC, Gavin
no flags Details
xend.log (12.30 KB, text/plain)
2007-12-28 17:49 UTC, Shad L. Lords
no flags Details
Guest console log (309.44 KB, text/plain)
2007-12-28 17:50 UTC, Shad L. Lords
no flags Details

Description Gavin 2007-12-28 14:40:58 UTC
Description of problem:
When trying to install via XEN this applies to both i386 and x86_64 it
consistently crashes with <=512Mb RAM i.e crashes when installing packages.

How reproducible:

Install giving your XEN 512Mb of RAM.

Please advise on more information if required. Thanks.

Comment 1 Daniel Berrangé 2007-12-28 16:06:38 UTC
Please provide the logs from virt-manager / virt-install  - whichever you used -
they are in /root/.virt-install or /root/.virt-manager.

Also provide /var/log/xen/xend.log. 

What architecture is the host OS.
What architecture is the guest OS.
What version are the 'kernel-xen' and 'xen' RPMs. 

Is it a fullvirt or paravirt guest ?
If it is a paravirt guest, and you get a kernel-panic please enable guest
logging in /etc/sysconfig/xend, reboot and do the install again - you should
then get a log of the guest kernel in /var/log/xen/console/ which you can attach
to this BZ.


Comment 2 Gavin 2007-12-28 17:05:42 UTC
(In reply to comment #1)
> Please provide the logs from virt-manager / virt-install  - whichever you used -
> they are in /root/.virt-install or /root/.virt-manager.
>

I don't have anything in the /root/.virt-manager going back to the 25th December
2007
 
> Also provide /var/log/xen/xend.log. 

Please see attached.

> What architecture is the host OS.

My host is x86_64.

> What architecture is the guest OS.

The guest is either i386 or x86_64

> What version are the 'kernel-xen' and 'xen' RPMs. 

[root@localhost /]# rpm -qa xen*
xen-libs-3.0.3-41.el5
xen-3.0.3-41.el5
xen-libs-3.0.3-41.el5
[root@localhost /]#

[root@localhost /]# rpm -q kernel-xen
kernel-xen-2.6.18-53.1.4.el5
[root@localhost /]# uname -r
2.6.18-53.1.4.el5xen
[root@localhost /]# 
 
> Is it a fullvirt or paravirt guest ?

paravirt

> If it is a paravirt guest, and you get a kernel-panic please enable guest
> logging in /etc/sysconfig/xend, reboot and do the install again - you should
> then get a log of the guest kernel in /var/log/xen/console/ which you can 
> attach to this BZ.

Will set parameter and attach shortly.



Comment 3 Gavin 2007-12-28 17:08:40 UTC
Created attachment 290491 [details]
xend.log

Attached /var/log/xen/xend.log

Comment 4 Daniel Berrangé 2007-12-28 17:13:34 UTC
NB - do not run  i386  guests on an x86_64 host. This is known to crash and is
not supported in RHEL5.1.  If you can reproduce crashes running x86_64 guest on
x86_64 host, that is useful and we can continue to debug in this BZ, but we
can't debug i386 guests on x86_64 hosts.


Comment 5 Daniel Berrangé 2007-12-28 17:14:37 UTC
Opps, just to clarify - my comment about i386 on x86-64 not being supported was
only wrt to paravirt guest. Fullvirt can run  i386 on x86_64 without issue.

Comment 6 Shad L. Lords 2007-12-28 17:23:00 UTC
I've been working with Gavin and can consistently reproduce a crash at the same
place as he can.  Difference is that my xen host is i386 with a i386 guest. 
I'll need to schedule downtime to restart the xen host to enable client logging
then I'll attach same logs.

Comment 7 Gavin 2007-12-28 17:34:47 UTC
Created attachment 290494 [details]
Guest log x86_64

Attached from /var/log/xen/console

This is from trying a guest os install x86_64

Comment 8 Shad L. Lords 2007-12-28 17:49:32 UTC
Created attachment 290495 [details]
xend.log

Comment 9 Shad L. Lords 2007-12-28 17:50:05 UTC
Created attachment 290496 [details]
Guest console log

Comment 10 Chris Lalancette 2009-11-24 21:33:09 UTC
This is a very old bug, so sorry about that.  Is this still an issue?  I assume it is, but we can't do much about some of them.  For instance, it's well-known that in an x86_64 guest, 512MB is not enough to run anaconda.  It runs out of memory, the OOM killer kicks in, and the installation fails.

I've been able to successfully install i386 guests with = 512MB of memory in the past, but going much below that will probably run into problems.  Is this consistent with your observations using the latest software?

Chris Lalancette

Comment 12 Paolo Bonzini 2010-02-23 17:07:11 UTC
This is a very old bug, but it still seems interesting to give it a look.

The strange part is that vbd.c calls blk_queue_max_phys_segments(rq, BLKIF_MAX_SEGMENTS_PER_REQUEST) but still we get a request beyond that limit.

Comment 13 Andrew Jones 2010-06-22 17:00:27 UTC
If this isn't still reproducing, then I would like to close it out. Gavin, does this still happen?

Comment 14 Gavin 2010-06-22 18:25:50 UTC
Hi Andrew,

I believe we can close this bug as I'm now running a new machine with 8GB of RAM so no longer have the need to run with <=512MB

Just out of curiosity I did try a install with the same scenario as  per comment#2 and managed to install successfully. Below are the rpm output with a xen running 512 MB successfully.

[root@localhost ~]# rpm -qa xen*
xen-3.0.3-94.el5_4.3
xen-libs-3.0.3-94.el5_4.3
[root@localhost ~]# rpm -q kernel-xen
kernel-xen-2.6.18-164.10.1.el5
kernel-xen-2.6.18-164.11.1.el5
kernel-xen-2.6.18-164.15.1.el5
[root@localhost ~]# uname -r
2.6.18-164.15.1.el5xen
[root@localhost ~]#


Thanks.

Comment 15 Andrew Jones 2010-06-22 18:51:25 UTC
Thanks Gavin!

Comment 16 Chris Lalancette 2010-07-19 13:52:02 UTC
Clearing out old flags for reporting purposes.

Chris Lalancette


Note You need to log in before you can comment on or make changes to this bug.