Summary: | sys-kernel/gentoo-sources-3.3.8 - OSError: [Errno 12] Cannot allocate memory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeffrey Walton <noloader> |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Build log from failed install |
Description
Jeffrey Walton
2012-08-12 23:32:57 UTC
Created attachment 321174 [details]
Build log from failed install
Build log from failed install
> OSError: [Errno 12] Cannot allocate memory
This seems to be a problem with your system configuration rather than with a particular package.
Oops.... different problem this time. It would be nice if the issue was deterministic. #emerge gentoo-sources * Last emerge --sync was 134d 14h 49m 42s ago. Calculating dependencies ... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) sys-kernel/gentoo-sources-3.3.0 >>> Downloading 'http://distfiles.gentoo.org/distfiles/linux-3.3.tar.bz2' --2012-08-12 19:54:48-- http://distfiles.gentoo.org/distfiles/linux-3.3.tar.bz2 Resolving distfiles.gentoo.org... 216.165.129.135, 64.50.233.100, 64.50.236.52, ... Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 78963640 (75M) [application/x-tar] Saving to: `/usr/portage/distfiles/linux-3.3.tar.bz2' 100%[======================================>] 78,963,640 1.68M/s in 48s 2012-08-12 19:55:36 (1.58 MB/s) - `/usr/portage/distfiles/linux-3.3.tar.bz2' saved [78963640/78963640] * linux-3.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] >>> Downloading 'http://distfiles.gentoo.org/distfiles/genpatches-3.3-1.base.tar.bz2' --2012-08-12 19:55:37-- http://distfiles.gentoo.org/distfiles/genpatches-3.3-1.base.tar.bz2 Resolving distfiles.gentoo.org... 64.50.233.100, 64.50.236.52, 137.226.34.42, ... Connecting to distfiles.gentoo.org|64.50.233.100|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-08-12 19:55:37 ERROR 404: Not Found. >>> Downloading 'http://gentoo.osuosl.org/distfiles/genpatches-3.3-1.base.tar.bz2' --2012-08-12 19:55:37-- http://gentoo.osuosl.org/distfiles/genpatches-3.3-1.base.tar.bz2 Resolving gentoo.osuosl.org... 64.50.233.100, 64.50.236.52 Connecting to gentoo.osuosl.org|64.50.233.100|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-08-12 19:55:37 ERROR 404: Not Found. >>> Downloading 'http://ftp.halifax.rwth-aachen.de/gentoo/distfiles/genpatches-3.3-1.base.tar.bz2' --2012-08-12 19:55:37-- http://ftp.halifax.rwth-aachen.de/gentoo/distfiles/genpatches-3.3-1.base.tar.bz2 Resolving ftp.halifax.rwth-aachen.de... 137.226.34.42 Connecting to ftp.halifax.rwth-aachen.de|137.226.34.42|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-08-12 19:55:38 ERROR 404: Not Found. >>> Downloading 'http://gentoo.ussg.indiana.edu/distfiles/genpatches-3.3-1.base.tar.bz2' --2012-08-12 19:55:38-- http://gentoo.ussg.indiana.edu/distfiles/genpatches-3.3-1.base.tar.bz2 Resolving gentoo.ussg.indiana.edu... 156.56.247.195 Connecting to gentoo.ussg.indiana.edu|156.56.247.195|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-08-12 19:55:38 ERROR 404: Not Found. >>> Downloading 'http://gentoo-distfiles.mirrors.tds.net/distfiles/genpatches-3.3-1.base.tar.bz2' --2012-08-12 19:55:38-- http://gentoo-distfiles.mirrors.tds.net/distfiles/genpatches-3.3-1.base.tar.bz2 Resolving gentoo-distfiles.mirrors.tds.net... 216.165.129.135 Connecting to gentoo-distfiles.mirrors.tds.net|216.165.129.135|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-08-12 19:55:38 ERROR 404: Not Found. !!! Couldn't download 'genpatches-3.3-1.base.tar.bz2'. Aborting. * Fetch failed for 'sys-kernel/gentoo-sources-3.3.0', Log file: * '/var/tmp/portage/sys-kernel/gentoo-sources-3.3.0/temp/build.log' >>> Failed to emerge sys-kernel/gentoo-sources-3.3.0, Log file: >>> '/var/tmp/portage/sys-kernel/gentoo-sources-3.3.0/temp/build.log' * Messages for package sys-kernel/gentoo-sources-3.3.0: * Fetch failed for 'sys-kernel/gentoo-sources-3.3.0', Log file: * '/var/tmp/portage/sys-kernel/gentoo-sources-3.3.0/temp/build.log' (In reply to comment #2) > > OSError: [Errno 12] Cannot allocate memory > > This seems to be a problem with your system configuration rather than with a > particular package. Well, I have 7 other VMs running fine (Debian, Ubuntu, RedHat, Fedora, Windows XP, Windows Vista, and Windows 7). I'm not sure what's the problem with a VM with 2 cores and 1.5 to 2 GB of memory. Should I reduce the number of cores in case there is a race? Should I increase the memory in case the swap file is not being used? If so, how much does Gentoo need? This installation procedure is not too user friendly, in it appears to be rather fragile. Is it safe to shutdown in the middle due to a failed install (for configuration changes) and then try to pick back up? Or do I get to repeat most of the steps again? (In reply to comment #4) > (In reply to comment #2) > > > OSError: [Errno 12] Cannot allocate memory > > > > This seems to be a problem with your system configuration rather than with a > > particular package. > Well, I have 7 other VMs running fine (Debian, Ubuntu, RedHat, Fedora, > Windows XP, Windows Vista, and Windows 7). I'm not sure what's the problem > with a VM with 2 cores and 1.5 to 2 GB of memory. > > Should I reduce the number of cores in case there is a race? > Should I increase the memory in case the swap file is not being used? If so, > how much does Gentoo need? > > This installation procedure is not too user friendly, in it appears to be > rather fragile. Is it safe to shutdown in the middle due to a failed install > (for configuration changes) and then try to pick back up? Or do I get to > repeat most of the steps again? I booted to a LiveCD (amd64). I've only used it to try and install(In reply to comment #2) > > OSError: [Errno 12] Cannot allocate memory > > This seems to be a problem with your system configuration rather than with a > particular package. I booted to a recently downloaded Gentoo LiveCD (x64). The only thing(s) I've done in this environment is try to install Gentoo per the handbook (and look for answers to questions on the web). It looks like there are massive memory issue(s) with the software on this LiveCD. Nearly 1.5GB of RAM has been consumed. Gentoo-2012 linux # top top - 20:38:16 up 3:01, 5 users, load average: 0.07, 0.21, 0.17 Tasks: 163 total, 2 running, 153 sleeping, 0 stopped, 8 zombie %Cpu(s): 1.4 us, 1.4 sy, 0.0 ni, 97.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st Kb Mem: 1538216 total, 1508064 used, 30152 free, 36968 buffers Kb Swap: 0 total, 0 used, 0 free, 587652 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 17853 root 20 0 266m 135m 19m S 3.7 9.0 2:45.59 X 19758 gentoo 20 0 622m 35m 13m S 2.7 2.4 0:34.75 konsole 19187 gentoo 20 0 605m 22m 7572 S 0.7 1.5 0:47.87 kwin 18878 root 20 0 119m 9.8m 1656 S 0.3 0.7 0:06.21 wicd 19109 gentoo 20 0 21624 2452 680 S 0.3 0.2 0:01.41 dbus-daemon 19224 gentoo 20 0 418m 9m 3344 S 0.3 0.7 0:00.35 akonadi_mailfil 19465 root 20 0 0 0 0 R 0.3 0.0 0:00.07 kworker/1:1 20099 gentoo 20 0 265m 10m 3932 S 0.3 0.7 0:09.00 kdesu 20857 root 20 0 25652 1676 1220 R 0.3 0.1 0:00.17 top 1 root 20 0 4120 676 572 S 0.0 0.0 0:01.36 init 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:01.13 ksoftirqd/0 5 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kworker/u:0 6 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/1 9 root 20 0 0 0 0 S 0.0 0.0 0:00.27 ksoftirqd/1 11 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 cpuset (In reply to comment #5) > > > I booted to a recently downloaded Gentoo LiveCD (x64). The only thing(s) > I've done in this environment is try to install Gentoo per the handbook (and > look for answers to questions on the web). > > It looks like there are massive memory issue(s) with the software on this > Just a check. You have done the chroot and are installing onto the hard drive image? Otherwise you could be installing to the LiveCD RAM disk which will get filled and cause out of memory errors. (In reply to comment #5) > It looks like there are massive memory issue(s) with the software on this > LiveCD. Nearly 1.5GB of RAM has been consumed. > I'd suggest you use a minimal installation cd [0], rather than a full-fledged live dvd. The installation procedure doesn't require a graphical user environment anyway. If you experience the problem again, would you append the output of 'df' and 'free' to your comments? [0] http://distfiles.gentoo.org/releases/amd64/autobuilds/current-iso/ |