Bug 419771
Summary: | Creating full virt domain fails showing 'cannot allocate memory' | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Sachin Prabhu <sprabhu> | ||||||||
Component: | xen | Assignee: | Michal Novotny <minovotn> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 5.1 | CC: | areis, astokes, batkisso, clasohm, cward, gozen, llim, madko, mfuruta, scoleris, tao, xen-maint, yshao | ||||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | xen-3.0.3-85.el5 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | |||||||||||
: | 524624 (view as bug list) | Environment: | |||||||||
Last Closed: | 2009-09-02 10:06:26 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 445799, 477162, 524624 | ||||||||||
Attachments: |
|
Description
Sachin Prabhu
2007-12-11 14:09:23 UTC
Created attachment 284061 [details]
information from i386 machine
balloon.txt xend.log xm-info.txt xm-list.txt taken after a failed attempt
on i386 machine
Created attachment 284071 [details]
information from x86_64 machine
balloon.txt xend.log xm-info.txt xm-list.txt
taken after failed attempt on x86_64 machine
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Is there a update (even prerelease) for this yet? Has anyone come up with a work around other than rebooting the HV? Only effects me on fully virtuals as the original comment. Anyway to detect when I'm close to running out of this type of memory since xm list isn't reporting it correctly? *** Bug 251295 has been marked as a duplicate of this bug. *** Well, I was unable to duplicate this problem using Chris' virttest11xen kernel. I have tried to figure it out for some time and this is what happened sometimes when starting up new domains and mixing PV and FV ones too. I finally found them in the kernel-xen package connected to memory allocation but later I got advised to use virttest11xen kernel so I did and since then I was unable to replicate it. Unfortunatelly I don't know what solved this issue... Hi Masaki, please try Chris' xen kernel. You can download it from: http://people.redhat.com/clalance/virttest/ I tested it using this kernel and I was unable to replicate the problem anymore and if you find any problem please tell me steps to replicate the problem on this kernel. Regards, Michal Created attachment 336771 [details] Domain creation 4M memory allocation patch This is a patch for domain memory creation. There was an error about domain memory creation because there was not enough memory allocated it. This patch fixes this issue. It's been tested using this scenario on 8G physical memory machine: 1. xm create RHEL53 maxmem=2500 memory=2500 2. xm create RHEL5FV maxmem=2500 memory=2500 3. virt-install -l http://path/to/install/ -r 2500 -v --nodisks -n RHELtest It was working correctly and before my patch it was not working at all and it returned error: "Cannot allocate memory". Later I tried it using virt-manager and to allocate 2500M of memory and it was working as well. Please try it using my patch... Hi, has any triage been done using my RPMs? Thanks, Michal Fix built into xen-3.0.3-85.el5 Here it is: http://people.redhat.com/jdenemar/xen.el5/ . Could you provide me /var/log/xen/xend.log if it fails again? Anyway could you give me exact steps to reproduce it and provide some information about platform (i386, x86_64, ia64) etc.? I was unable to reproduce it using my patch on x86_64 one. Michal ~~ Attention - RHEL 5.4 Beta Released! ~~ RHEL 5.4 Beta has been released! There should be a fix present in the Beta release that addresses this particular request. Please test and report back results here, at your earliest convenience. RHEL 5.4 General Availability release is just around the corner! If you encounter any issues while testing Beta, please describe the issues you have encountered and set the bug into NEED_INFO. If you encounter new issues, please clone this bug to open a new issue and request it be reviewed for inclusion in RHEL 5.4 or a later update, if it is not of urgent severity. Please do not flip the bug status to VERIFIED. Only post your verification results, and if available, update Verified field with the appropriate value. Questions can be posted to this bug or your customer or partner representative. This bug has been verified with xen 3.0.3-91.el5 on RHEL-5.4. Already fixed, set status to VERIFIED. Masaki, Sorry for the late response and followings are my verification steps. If you think anything not appropriate, please do not hesitate correting me. Thanks. Suppose there is totally 4GB memory in the testing host: Steps: 1. balloon up dom0 memory to 3.5GB by "xm mem-set 0 3584"; 2. create one pv domain rhel5u4pv by "xm create rhel5u4pv maxmem=3584 memory=3584", note that the unit is MB and 3584MB equals to 3.5GB; 3. destroy domain created in step 2; 4. repeat step 1 ~3 by picking up other different values for "maxmem" & "memory" above. Result: In step 2, during dom rhel5u4pv creation, because system free memory(equas to 4GB minus dom0 memory approximately) can not satisfy the requirement, dom0 is forced to balloon out some of its memory, it is expected and just the result of this bug fixing. Based on this(dom0 can balloon out part of its memory in a rational scope), I tell that this bug is fixed. Note: It is must to reserve certain minimal memory for dom0 which is defined in xend config file "/etc/xen/xend-config.sxp". Thanks and hope it is what you needed Edward Wang An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-1328.html |