1 From 369ac3b365091ba1a26fb266a94d97adb3719cbc Mon Sep 17 00:00:00 2001
2 From: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Thu, 24 Jan 2013 01:51:29 +0100
4 Subject: [PATCH 1/4] A new try to get the parallelism straight.
6 Getting back to CPU cores * 2.
8 python/pakfire/system.py | 7 +------
9 1 file changed, 1 insertion(+), 6 deletions(-)
11 diff --git a/python/pakfire/system.py b/python/pakfire/system.py
12 index a9154de..6f67d31 100644
13 --- a/python/pakfire/system.py
14 +++ b/python/pakfire/system.py
15 @@ -156,15 +156,10 @@ class System(object):
16 Calculates how many processes should be run
17 simulatneously when compiling.
19 - # Check how many processes would fit into the
20 - # memory when each process takes up to 500MB.
21 - multiplicator = self.memory / (500 * 1024 * 1024)
22 - multiplicator = round(multiplicator)
24 # Count the number of online CPU cores.
25 cpucount = os.sysconf("SC_NPROCESSORS_CONF")
27 - return min(multiplicator, cpucount * 2)
31 # Create an instance of this class to only keep it once in memory.