Hi, On Sun, 19 Feb 2017 13:53:49 +0100 Helmut Jarausch wrote: > Hi, > > sometime I have some memory hungry ebuilds in the background, when I > start (e.g.) Chromium which needs very much memory if you have a lot of > open tabs. > > In that case my system nearly freezes. I cannot even kill chrome. > What can I do in that case. (Remote login doesn't work either) > > Can I have any additional program (like Chromium) die if there is not > enough memory.
1. Use reasonable -j and -l options in MAKEOPTS. A good start will be -j N and -l 2*N, where N is a number of your logical cores. 2. Set the lowest CPU and I/O priorities for emerge: PORTAGE_NICENESS=19 and run emerge as `ionice -c3 emerge ...`, you have to use CFQ scheduler to be able to use ionice. 3. Use zswap with z3fold allocator. It helps me well on my laptop with 2GB RAM. 4. If everything above doesn't help: a) reduce -j to a value where memory usage is suitable for you; b) consider using -Os in your {C,CXX,F,FC}FLAGS, since such system is certainly short of memory. 5. If even 4. doesn't help, consider using more powerful host to build binary packages for this one. Best regards, Andrew Savchenko
pgpfJpZXTRw2Y.pgp
Description: PGP signature