Red Hat Bugzilla – Bug 484221
Error running ***: Cannot allocate memory
Last modified: 2010-02-12 15:16:51 EST
Created attachment 330995 [details]
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):
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.
system installed without any problems
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).
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.
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.