]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
Perform less parallelism
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Apr 2015 21:37:58 +0000 (23:37 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Apr 2015 21:37:58 +0000 (23:37 +0200)
Sometimes we have trouble with latest versions of g++
that requires too much RAM so that the OOM killer kills
all the compiler processes. Hence we will start less processes
at once for now.

This may to be increased even more in the future as it
seems that g++ requires much more memory with every release.

src/pakfire/system.py

index 950bb83652516e3a9f72c89a65cc1204b275cb47..f6ff1dc57ea91742ceebb9d9754013346ee7b266 100644 (file)
@@ -248,8 +248,8 @@ class System(object):
                        simulatneously when compiling.
                """
                # Check how many processes would fit into the
-               # memory when each process takes up to 128MB.
-               multiplicator = self.memory / (128 * 1024 * 1024)
+               # memory when each process takes up to 192MB.
+               multiplicator = self.memory / (192 * 1024 * 1024)
                multiplicator = round(multiplicator)
 
                # Count the number of online CPU cores.