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!
[gentoo-user] Re: Out of memory error
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?
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.
[gentoo-user] Re: Out of memory error
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 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 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.
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
[gentoo-user] Re: Out of memory error
On Thursday 17 Nov 2011 06:53:29 Mick wrote: What started as a Firefox make error revealed an out of memory error. Since this is the first time ever that this old x86 laptop has developed such an ailment I am not sure what may be causing this? The error is repeatable. This is what dmesg shows: === lowmem_reserve[]: 0 618 618 Normal free:3092kB min:3140kB low:3924kB high:4708kB active_anon:297788kB inactive_anon:297872kB active_file:1480kB inactive_file:1632kB unevictable:656kB isolated(anon):0kB isolated(file):0kB present:633792kB mlocked:0kB dirty:0kB writeback:0kB mapped:12kB shmem:8kB slab_reclaimable:4560kB slab_unreclaimable:5528kB kernel_stack:1160kB pagetables:1648kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:5424 all_unreclaimable? yes lowmem_reserve[]: 0 0 0 DMA: 1*4kB 287*8kB 14*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2556kB Normal: 773*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 3092kB 4263 total pagecache pages 3318 pages in swap cache Swap cache stats: add 100110, delete 96792, find 12476/15173 Free swap = 0kB Total swap = 257004kB 163776 pages RAM 3742 pages reserved 833 pages shared 157340 pages non-shared [ pid ] uid tgid total_vm rss cpu oom_adj oom_score_adj name [ 3989] 0 3989 622 22 0 -17 -1000 udevd [ 4257] 0 4257 621 42 0 -17 -1000 udevd [ 5093] 0 5093 4817 0 0 0 ifplugd [ 5316] 0 5316 5241 0 0 0 dhcpcd [ 5358] 0 5358 860 25 0 0 0 smartd [ 5359] 104 5359 693 30 0 0 0 dbus-daemon [ 5381] 0 5381 9436 0 0 0 syslog-ng [ 5382] 0 5382 1588 57 0 0 0 syslog-ng [ 5429] 0 5429 1048 11 0 0 0 cron [ 5435] 0 5435 477 12 0 0 0 acpid [ 5469] 0 5469 6548 68 0 0 0 console-kit- dae [ 5548] 0 5548 5719 78 0 0 0 polkitd [ 5575] 0 5575 590 36 0 0 0 chronyd [ 5599] 0 5599 8251 0 0 0 login [ 5600] 0 5600 4861 0 0 0 agetty [ 5601] 0 5601 4861 0 0 0 agetty [ 5602] 0 5602 4861 0 0 0 agetty [ 5603] 0 5603 4861 0 0 0 agetty [ 5604] 0 5604 4861 0 0 0 agetty [ 5613] 1000 5613 1333 31 0 0 0 bash [ 5621] 1000 5621 1325 111 0 0 0 screen [ 5622] 1000 5622 13331 0 0 0 bash [ 5628] 0 5628 12001 0 0 0 su [ 5629] 0 5629 13331 0 0 0 bash [ 5665] 0 5665 1578 26 0 -17 -1000 sshd [ 5705] 65534 5705 5481 0 0 0 boa [ 5722] 0 5722 10991 0 0 0 rsync [ 6194] 0 619422569 1083 0 0 0 emerge [ 8944] 0 8944 4771 0 0 0 sandbox [ 8945] 0 8945 18321 0 0 0 ebuild.sh [ 8965] 0 8965 24491 0 0 0 ebuild.sh [ 8983] 0 8983 9741 0 0 0 emake [ 8988] 0 8988 7341 0 0 0 make [ 9275] 0 9275 7981 0 0 0 make [17096] 0 17096 785 43 0 0 0 make [17871] 0 17871 7691 0 0 0 make [23499] 0 23499 871 49 0 0 0 make [ 4249] 0 4249 24212 0 0 0 sshd [ 4266] 1000 4266 24211 0 0 0 sshd [ 4267] 1000 4267 13331 0 0 0 bash [ 6224] 0 6224 8031 0 0 0 make [ 6243] 0 6243 22321 0 0 0 python2.7 [ 6244] 0 6244 6791 0 0 0 i686-pc-linux- g [ 6245] 0 6245 6501 0 0 0 collect2 [ 6246] 0 6246 187711 147110 0 0 0 ld Out of memory: Kill process 6246 (ld) score 803 or sacrifice child Killed process 6246 (ld) total-vm:750844kB, anon-rss:588432kB, file-rss:8kB ld: page allocation failure: order:0, mode:0x20058 Pid: 6246, comm: ld Not tainted 3.0.6-gentoo #1 Call Trace: [c107109c] ? warn_alloc_failed+0xbc/0xf0 [c107399d] ? __alloc_pages_nodemask+0x52d/0x700 [c106d936] ?