From 17bf74e9b57b6077ba2f75ced5a1263d0692cd14 Mon Sep 17 00:00:00 2001 From: jdisnard Date: May 03 2017 00:49:07 +0000 Subject: XZ threads are very bad about memory, so use only two threads. In koji #380 we setup -T0 That will use all available compute resources. It also has the potential to exhaust system memnory, and cause errors. This PR seeks a middle ground with 2 XZ threads similar to createrepo_c. https://github.com/rpm-software-management/createrepo_c/blob/master/src/compression_wrapper.c#L490 Signed-off-by: jdisnard --- diff --git a/builder/kojid b/builder/kojid index 8905525..1a10483 100755 --- a/builder/kojid +++ b/builder/kojid @@ -3698,7 +3698,7 @@ class BaseImageTask(OzImageTask): 'xz-cp-%s-%s.log' % (format, self.arch)) log_output(self.session, cmd[0], cmd, conlog, self.getUploadDir(), logerror=1) - cmd = ['/usr/bin/xz', '-z9T0', rawimg] + cmd = ['/usr/bin/xz', '-z9T2', rawimg] conlog = os.path.join(self.workdir, 'xz-%s-%s.log' % (format, self.arch)) log_output(self.session, cmd[0], cmd, conlog, self.getUploadDir(),