Re: [gentoo-user] Re: Out of memory error
On Saturday 19 Nov 2011 17:37:59 Hans Müller wrote: On Saturday, 19. November 2011 20:08:36 Pandu Poluan wrote: On Nov 19, 2011 7:28 PM, Michael Mol mike...@gmail.com wrote: And, finally, yeah..that isn't just not much, that's a terribly small amount of memory. Assuming you've kept the software current, some of your applications have certainly not been maintained with 600MB of system memory in mind. Indeed. With less than 800MB, gcc fails to upgrade. Always. For some RAM-constrained systems (e.g. the VMs in my company's cloud), I even have to do an out-of-the-box upgrade, i.e., upgrade an identical copy on the physical data center, grab the binpkg tarball, and upload the tarball to the cloud. If you provide enough swap this shouldn't be an issue. I have a box running Xen dom0 with 680MB RAM and 1.5GB swap and it compiles everything fine so far. Of course I didn't emerge firefox, libreoffice or similar packages on this system, but at least for gcc this is fine. Best regards Thanks again for all the advice received. I've added a few swap files to bring swap up to 1206984k and libxul.so was finally built and installed without bringing the machine to its knees. :-) It seems that with time applications are getting bigger than what they used to be. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: Out of memory error
Mick wrote: It seems that with time applications are getting bigger than what they used to be. It shouldn't just seem that way, they are. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] Re: Out of memory error
On Saturday 19 Nov 2011 09:13:33 Nikos Chantziaras wrote: On 11/18/2011 07:42 PM, Mick wrote: I've changed the title ever so slightly. I am getting an out of memory error with kernel-2.6.39-gentoo-r3 too, so I can't blame it on the kernel. The error as far as firefox is concerned is the same. Is this a firefox bug, or is my decrepit old laptop incapable of compiling Firefox ... Am I the only one suffering from this? How much RAM do you have? How big if your swap? # free total used free sharedbuffers cached Mem:640392 133084 507308 0 81360 23972 -/+ buffers/cache: 27752 612640 Swap: 257004 6156 250848 May not be much by today's standards, but I never had an out of memory error that I can recall just compiling packages in the past. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: Out of memory error
On Nov 19, 2011 6:31 AM, Mick michaelkintz...@gmail.com wrote: On Saturday 19 Nov 2011 09:13:33 Nikos Chantziaras wrote: On 11/18/2011 07:42 PM, Mick wrote: I've changed the title ever so slightly. I am getting an out of memory error with kernel-2.6.39-gentoo-r3 too, so I can't blame it on the kernel. The error as far as firefox is concerned is the same. Is this a firefox bug, or is my decrepit old laptop incapable of compiling Firefox ... Am I the only one suffering from this? How much RAM do you have? How big if your swap? # free total used free sharedbuffers cached Mem:640392 133084 507308 0 81360 23972 -/+ buffers/cache: 27752 612640 Swap: 257004 6156 250848 May not be much by today's standards, but I never had an out of memory error that I can recall just compiling packages in the past. You've never compiled OOo or chromium on that box, have you? Chromium alone takes 4GB on my box at the final link step. Have you changed your CFLAGS since the last time you succesfully built FF? Is -g new? Consider switching to -Os; it won't solve the immediate problem, but it may help reduce overall system pressure by keeping binaries smaller. Also look at adding splitdebug to FEATURES. Perhaps adding 2-3GB of swap. What about any new or larger apps consuming system RAM? What does free -m show before your emerge? And, finally, yeah..that isn't just not much, that's a terribly small amount of memory. Assuming you've kept the software current, some of your applications have certainly not been maintained with 600MB of system memory in mind.
Re: [gentoo-user] Re: Out of memory error
On Nov 19, 2011 7:28 PM, Michael Mol mike...@gmail.com wrote: - 8 snip And, finally, yeah..that isn't just not much, that's a terribly small amount of memory. Assuming you've kept the software current, some of your applications have certainly not been maintained with 600MB of system memory in mind. Indeed. With less than 800MB, gcc fails to upgrade. Always. For some RAM-constrained systems (e.g. the VMs in my company's cloud), I even have to do an out-of-the-box upgrade, i.e., upgrade an identical copy on the physical data center, grab the binpkg tarball, and upload the tarball to the cloud. Rgds,
Re: [gentoo-user] Re: Out of memory error
Am Samstag 19 November 2011, 14:42:07 schrieb Nikos Chantziaras: On 11/19/2011 01:29 PM, Mick wrote: On Saturday 19 Nov 2011 09:13:33 Nikos Chantziaras wrote: On 11/18/2011 07:42 PM, Mick wrote: I've changed the title ever so slightly. I am getting an out of memory error with kernel-2.6.39-gentoo-r3 too, so I can't blame it on the kernel. The error as far as firefox is concerned is the same. Is this a firefox bug, or is my decrepit old laptop incapable of compiling Firefox ... Am I the only one suffering from this? How much RAM do you have? How big if your swap? # free total used free shared buffers cached Mem:640392 133084 507308 0 81360 23972 -/+ buffers/cache: 27752 612640 Swap: 257004 6156 250848 May not be much by today's standards, but I never had an out of memory error that I can recall just compiling packages in the past. You have 640MB RAM and 256MB swap. That isn't nearly enough to compile big packages nowadays. You can try to increase your swap partition from 256MB to 3GB. However, hitting the swap during a compile is going to strangle your system. To maximize available RAM, logout of the desktop first, then shutdown the graphical environment entirely: /etc/init.d/xdm stop and then compile. Start the desktop again after that: /etc/init.d/xdm start Modern versions of GCC and binutils are quite memory hungry, so your only real option is to add more RAM. You should have at least 2GB of it these days for a Gentoo system. makeopts -j1 helps too. -- #163933
Re: [gentoo-user] Re: Out of memory error
On Saturday 19 Nov 2011 15:57:58 Volker Armin Hemmann wrote: Am Samstag 19 November 2011, 14:42:07 schrieb Nikos Chantziaras: On 11/19/2011 01:29 PM, Mick wrote: On Saturday 19 Nov 2011 09:13:33 Nikos Chantziaras wrote: On 11/18/2011 07:42 PM, Mick wrote: I've changed the title ever so slightly. I am getting an out of memory error with kernel-2.6.39-gentoo-r3 too, so I can't blame it on the kernel. The error as far as firefox is concerned is the same. Is this a firefox bug, or is my decrepit old laptop incapable of compiling Firefox ... Am I the only one suffering from this? How much RAM do you have? How big if your swap? # free total used free shared buffers cached Mem:640392 133084 507308 0 81360 23972 -/+ buffers/cache: 27752 612640 Swap: 257004 6156 250848 May not be much by today's standards, but I never had an out of memory error that I can recall just compiling packages in the past. You have 640MB RAM and 256MB swap. That isn't nearly enough to compile big packages nowadays. You can try to increase your swap partition from 256MB to 3GB. However, hitting the swap during a compile is going to strangle your system. To maximize available RAM, logout of the desktop first, then shutdown the graphical environment entirely: /etc/init.d/xdm stop and then compile. Start the desktop again after that: /etc/init.d/xdm start Modern versions of GCC and binutils are quite memory hungry, so your only real option is to add more RAM. You should have at least 2GB of it these days for a Gentoo system. makeopts -j1 helps too. Thanks guys. From your comments it seems that it's been touch go so far. This is an old PIII laptop which I have been keeping up to date without any problems until now. OOo was never emerged on this machine, I have always used ooo-bin. I did emerge chromium though (early versions) and have not had problems with gcc. Perhaps the latest Firefox broke its back. Will try again to emerge it with - j1 and see if it makes a difference or if that fails I will add a swap file to give it some breathing space. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: Out of memory error
On Saturday, 19. November 2011 20:08:36 Pandu Poluan wrote: On Nov 19, 2011 7:28 PM, Michael Mol mike...@gmail.com wrote: And, finally, yeah..that isn't just not much, that's a terribly small amount of memory. Assuming you've kept the software current, some of your applications have certainly not been maintained with 600MB of system memory in mind. Indeed. With less than 800MB, gcc fails to upgrade. Always. For some RAM-constrained systems (e.g. the VMs in my company's cloud), I even have to do an out-of-the-box upgrade, i.e., upgrade an identical copy on the physical data center, grab the binpkg tarball, and upload the tarball to the cloud. If you provide enough swap this shouldn't be an issue. I have a box running Xen dom0 with 680MB RAM and 1.5GB swap and it compiles everything fine so far. Of course I didn't emerge firefox, libreoffice or similar packages on this system, but at least for gcc this is fine. Best regards