From: Michael Tremer Date: Sat, 5 Jun 2021 13:44:52 +0000 (+0000) Subject: system: Remove parallelism X-Git-Tag: 0.9.28~1285^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=943f69022de304504acfc4e4429473f4f225f66e;p=pakfire.git system: Remove parallelism Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/system.py b/src/pakfire/system.py index 631ee33b9..337a9563d 100644 --- a/src/pakfire/system.py +++ b/src/pakfire/system.py @@ -170,23 +170,6 @@ class System(object): def get_mountpoint(self, path): return Mountpoint(path) - @property - def parallelism(self): - """ - Calculates how many processes should be run - simulatneously when compiling. - """ - # Check how many processes would fit into the - # memory when each process takes up to 192MB. - multiplicator = self.memory / (192 * 1024 * 1024) - multiplicator = round(multiplicator) - - # Count the number of online CPU cores. - cpucount = os.sysconf("SC_NPROCESSORS_CONF") * 2 - cpucount += 1 - - return min(multiplicator, cpucount) - # Create an instance of this class to only keep it once in memory. system = System()