Bug 484221

Summary: Error running ***: Cannot allocate memory
Product: Red Hat Enterprise Linux 5 Reporter: Karel Volný <kvolny>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CANTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: adkhune
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-12 20:16:51 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:
Attachments:
Description Flags
anaconda dump none

Description Karel Volný 2009-02-05 15:24:30 UTC
Created attachment 330995 [details]
anaconda dump

Description of problem:
It looks like the installation eats up too much memory. The installation fails after installing the packages. See the attached log.

Version-Release number of selected component (if applicable):
RHEL5.3-Server-20090106.0-x86_64-DVD.iso

How reproducible:
always

Steps to Reproduce:
1. Try to install RHEL 5.3 on machine (virtual guest) with 512 MiB RAM.
2. During partitioning, select Create custom layout.
3. Do not create swap partition.

Actual results:
installation fails

Expected results:
system installed without any problems

Additional info:
https://www.redhat.com/rhel/compare/ says that the 512 MB RAM fits the minimal requirements for AMD64 (= x86_64)

http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/ch04s18s04s02.html says that a swap partition is recommended, not mandatory. Even if we would agree to the premise that swap is really needed, it makes sense not to require swap partition, as you may use a swapfile instead (which can - and most probably would - be done later, and thus the installer cannot rely on it).

Comment 1 Aditya Khune 2009-07-26 17:53:29 UTC
After creating boot partition a small space of 2 MB is automatically gets created and then it says can not allocate memory for root partition as space for allocation is not sufficient though there is enough space for root partition.

Comment 2 Chris Lumens 2010-02-12 20:16:51 UTC
I don't know that there's really all that much we can do, unfortunately.  The number of components that anaconda uses is really quite extensive and becoming moreso all the time, making it difficult to figure out where the memory work needs to be done.  It's likely to be yum in this instance, but that's not always easy to pinpoint.

yum is constantly working on performance enhancements.  We've made some changes in RHEL6/rawhide anaconda to store the install image where it won't consume so much memory.  However, none of those fixes are good backport candidates.  My only real advise is that if you've got the recommended amount of memory and are still seeing memory-related problems, go with a swap partition and anaconda will make use of that as soon as it's formatted.