-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GZIP 6 RPM Compression To Fix Install On AL2 Without Kernel Patch #889
Conversation
327c833
to
45a9c9d
Compare
What happens if the OS doesn't have Gzip0 ? |
nit: Do you know the installation times for al2? Can you check with |
It installed almost instantly |
|
45a9c9d
to
6686e36
Compare
@@ -10,6 +10,8 @@ Source: amazon-cloudwatch-agent.tar.gz | |||
|
|||
%define _enable_debug_packages 0 | |||
%define debug_package %{nil} | |||
%define _source_payload w9.xzdio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For testing, set this to 0, so build is faster bc compression takes a long time when set to 9
6686e36
to
71460e0
Compare
71460e0
to
ebc6b84
Compare
@@ -10,6 +10,8 @@ Source: amazon-cloudwatch-agent.tar.gz | |||
|
|||
%define _enable_debug_packages 0 | |||
%define debug_package %{nil} | |||
%define _source_payload w6.gzdio | |||
%define _binary_payload w6.gzdio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overview still says gzip 0.
After evaluating xz compression and gzip compression with different compression levels we are choosing level 6 (which is the default)
Current binary size is X compared to before it was Y.
Current install time is X compared to before it was Y.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Description of the issue
Can't install rpm on the kernel patchless version of al2
Description of changes
Use Gzip 6 RPM Compression for rpm build spec
Current binary size 76mb new binary size 96mb
Current install time 11 seconds new install time 5 seconds
License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
Manually build on al2 with kernel patch.
Install on al2 without kernel patch.
Requirements
Before commit the code, please do the following steps.
make fmt
andmake fmt-sh
make lint