Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Release-Script: Slow, single-threaded xz compression of factory images #850
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
thestinger
Apr 2, 2018
Contributor
It's intentionally using a huge dictionary and spending a lot of time compressing because it only happens for release builds, not development builds. I have more than enough memory to use some threads but that would hurt the compression ratio.
You can just comment it out. In fact, you don't need to generate factory images at all after your initial build so you can comment out everything but generating over-the-air updates.
|
It's intentionally using a huge dictionary and spending a lot of time compressing because it only happens for release builds, not development builds. I have more than enough memory to use some threads but that would hurt the compression ratio. You can just comment it out. In fact, you don't need to generate factory images at all after your initial build so you can comment out everything but generating over-the-air updates. |
thestinger
added
the
Type: question
label
Apr 2, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
thestinger
Apr 2, 2018
Contributor
And technically, for the first build, you didn't need to generate an over-the-air update.
|
And technically, for the first build, you didn't need to generate an over-the-air update. |
thestinger
closed this
Apr 2, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Rudd-O
Apr 27, 2018
Glad to take patches here https://github.com/Rudd-O/copperheados-build/ to skip certain steps via build variables.
Rudd-O
commented
Apr 27, 2018
|
Glad to take patches here https://github.com/Rudd-O/copperheados-build/ to skip certain steps via build variables. |
kuleszdl commentedApr 2, 2018
The last line of the release script does only use one cpu thread for compressing the factory image:
In theory,
xzsupports multiple threads using the-Tparameter. I tried setting it to-T0but then xz failed as it was out of memory (I tried in a VM with 30G of RAM and 15 cpu cores). Is there a way how this could be improved?