Skip to content

Commit 9d873b0

Browse files
committed
jobs: bump multi-arch xz limit to 4G
At 2G, we increased compression time from 2m to 15m. Let's bump it a little more to see if we can strike a better balance between performance and memory. Also fix the gaping typo of having the `cosa compress` invocation being commented out in 11f2ca6. Fixes: 11f2ca6 ("jobs: limit xz memory usage on multi-arch too")
1 parent 11f2ca6 commit 9d873b0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jobs/build-arch.Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ lock(resource: "build-${params.STREAM}-${basearch}") {
335335
}
336336

337337
stage('Archive') {
338-
// Limit to 2G to be good neighbours and reduce chances of getting OOMkilled.
339-
// shwrap("cosa shell -- env XZ_DEFAULTS=--memlimit=2G cosa compress")
338+
// Limit to 4G to be good neighbours and reduce chances of getting OOMkilled.
339+
shwrap("cosa shell -- env XZ_DEFAULTS=--memlimit=4G cosa compress")
340340

341341
if (uploading) {
342342
def acl = pipecfg.s3.acl ?: 'public-read'

jobs/bump-lockfile.Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ lock(resource: "bump-lockfile") {
221221
stage("${arch}:Build Live") {
222222
shwrap("cosa buildextend-live --fast")
223223
// Test metal4k with an uncompressed image and
224-
// metal with a compressed one. Limit to 2G to be
224+
// metal with a compressed one. Limit to 4G to be
225225
// good neighbours and reduce chances of getting
226226
// OOMkilled.
227-
shwrap("cosa shell -- env XZ_DEFAULTS=--memlimit=2G cosa compress --artifact=metal")
227+
shwrap("cosa shell -- env XZ_DEFAULTS=--memlimit=4G cosa compress --artifact=metal")
228228
}
229229
stage("${arch}:kola:testiso") {
230230
kolaTestIso(cosaDir: env.WORKSPACE, arch: arch, marker: arch)

0 commit comments

Comments
 (0)