On Mon, Dec 24, 2012 at 9:05 AM, Teodor Spæren <[email protected]> wrote: > Hello! > > I am trying to install gentoo on an old armada m700. The specs that I think > is relevant for this problem is the clocking speed of the cpu and the ram. > It got 223mhz of clocking speed and 116mb ram. I have added 512mb of swap > since I knew the ram was going to be a problem. > > The command I issue is: "emerge gentoo-sources" and the output of the > command is this: http://bpaste.net/raw/66293/ > > The only thing I can really read from the error message is that it runs out > of ram. This surprises me because all it is really doing is moving the > kernel sources into place? I asked around in #gentoo on irc.freenode.net and > someone adviced me to turn of "MAKEOPTS="-j2" and "-pipe", but this doesn't > fix it.
And in the case of this sources package, I think nothing is being compiled anyway. It simply unpacks, patches and copies the files to /usr/src/xxxxx so I don't think either of those options ever come into play. You can manually emerge using the "ebuild" command, would be interesting to see if it makes any difference. Could be some RAM usage by emerge is just too much for your system. You may need to use ulimit to keep python from using too much RAM when you run emerge. Do you have any daemons running in the background? Could you disable any to free up more RAM as a test? I think you will need even more than 512mb swap to be honest, I have a server with 256mb of RAM and have to use 1gb of swap or else I get out of memory conditions on occasion. I think you want 1gb or more if it is possible. In this case because it's out of memory while copying files, I wonder if some of sysctl vm.* options will have influence. Kernel sources have thousands of files and maybe I/O is not fast enough. I use nice and ionice to make emerge running at the lowest priority (meaning the least important) > The possible work around I have thought of is just getting the vanilla > kernel from kernel.org, but the gentoo wiki advise against it, since > gentoo-sources is a patched kernel. You can use vanilla, no problems. Please review the genpatches patch set and determine if you use/need any of the Gentoo patches: https://dev.gentoo.org/~mpagano/genpatches/ You can also manually apply this patchset to vanilla if you like, of course. Good luck and welcome to the list! :)

