Closed Bug 2070996 Opened 2 months ago Closed 2 months ago

Repack execution is too slow

Categories

(Enterprise Products :: Firefox, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

Details

Attachments

(1 external file, 1 obsolete file)

Execution of python/mozrelease/mozrelease/partner_repack.py takes ~90 mins: https://treeherder.mozilla.org/jobs?repo=enterprise-main&searchStr=enterprise-repack&selectedTaskRun=F_YWPU1GRSinftj0EwGajw.0

Most of the time is spent in xz:

[task 2026-09-10T11:58:58.238+00:00] 11:58:58     INFO -  2026-09-10 11:58:58,238 - DEBUG - Executing xz -f -z -e -9 target.tar
[task 2026-09-10T11:58:58.238+00:00] 11:58:58     INFO -  2026-09-10 11:58:58,238 - DEBUG - in /builds/worker/artifacts/hosted/pilotStage/fr/working
[task 2026-09-10T12:02:27.669+00:00] 12:02:27     INFO -  2026-09-10 12:02:27,669 - INFO - Done repacking linux-x86_64 fr build target.tar.xz

xz calls https://searchfox.org/enterprise-main/rev/2d301aa7e07671f46357c2fa9b1af60a35211f53/python/mozrelease/mozrelease/partner_repack.py#465-487

system is debian bookworm so xz 5.4, for which -T1 for threading is the default value, so we are not making use of the 16 CPUs there. That is a first trivial fix to iterate on.

Tested with xz -T0 --block-size=16MiB in: https://firefox-ci-tc.services.mozilla.com/tasks/VuDBGHGGRPuD9hPCXrgIoQ/runs/0/logs/public/logs/live.log

Looks like we go from ~190s to ~25

Flags: needinfo?(jcristau)
partner/locale reference shipit delta %
generic/de 98,370,376 101,808,928 +3,438,552 +3.50%
generic/en-US 98,445,552 101,797,784 +3,352,232 +3.41%
generic/es-ES 98,547,212 101,956,912 +3,409,700 +3.46%
generic/fr 98,781,200 102,245,636 +3,464,436 +3.51%
generic/it 98,487,328 101,963,044 +3,475,716 +3.53%
generic/nl 99,159,524 102,622,788 +3,463,264 +3.49%
prodGCP/de 98,370,408 101,808,960 +3,438,552 +3.50%
prodGCP/en-US 98,445,600 101,797,824 +3,352,224 +3.41%
prodGCP/es-ES 98,547,244 101,956,936 +3,409,692 +3.46%
prodGCP/fr 98,781,264 102,245,664 +3,464,400 +3.51%
prodGCP/it 98,487,396 101,963,072 +3,475,676 +3.53%
prodGCP/nl 99,159,588 102,622,816 +3,463,228 +3.49%
stageGCP/de 98,370,412 101,808,960 +3,438,548 +3.50%
stageGCP/en-US 98,445,596 101,797,828 +3,352,232 +3.41%
stageGCP/es-ES 98,547,248 101,956,944 +3,409,696 +3.46%
stageGCP/fr 98,781,272 102,245,668 +3,464,396 +3.51%
stageGCP/it 98,487,404 101,963,076 +3,475,672 +3.53%
stageGCP/nl 99,159,592 102,622,820 +3,463,228 +3.49%
TOTAL 1,775,374,216 1,837,185,660 +61,811,444 +3.48%
Assignee: nobody → lissyx+mozillians
Attachment #9641020 - Attachment description: WIP: Bug 2070996 - Make linux repacks use xz -T0 --block-size=16MiB → Bug 2070996 - Make linux repacks use xz -T0 --block-size=16MiB r?jcristau!
Status: NEW → ASSIGNED
Attachment #9641020 - Attachment is obsolete: true
Flags: needinfo?(jcristau)

Authored by Alexandre Lissy
https://github.com/mozilla/enterprise-firefox/commit/04d5fcf49c88aed40e8f256d65c09c292af79fcc
[enterprise-main] Bug 2070996 - Use XZ_OPT for repacks faster

Authored by https://github.com/lissyx
https://github.com/mozilla/enterprise-firefox/commit/92d3ca38baf8879c1bdeaed6399224b04d789bbb
[enterprise-main] Merge pull request #1490 from lissyx/enterprise-bug2070996_xz_opt_linux

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: