Skip to content
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

Allow compressing lima-guestagent with zstd #2427

Closed
wants to merge 5 commits into from

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented Jun 18, 2024

Closes #2426

Compressing using highest level 19 takes forever (30 seconds), so should use something like 3 during development...

Everything is handled in the code, so that user doesn't need to have zstd installed - neither on the host or in instance

@afbjorklund
Copy link
Member Author

Example development config:

CONFIG_GUESTAGENT_OS_LINUX=y
CONFIG_GUESTAGENT_ARCH_X8664=y
CONFIG_GUESTAGENT_ARCH_AARCH64=y
# CONFIG_GUESTAGENT_ARCH_ARMV7L is not set
# CONFIG_GUESTAGENT_ARCH_RISCV64 is not set
CONFIG_GUESTAGENT_COMPRESS_ZSTD=y
CONFIG_GUESTAGENT_COMPRESS_LEVEL=3

Example release config:

CONFIG_GUESTAGENT_OS_LINUX=y
CONFIG_GUESTAGENT_ARCH_X8664=y
CONFIG_GUESTAGENT_ARCH_AARCH64=y
CONFIG_GUESTAGENT_ARCH_ARMV7L=y
CONFIG_GUESTAGENT_ARCH_RISCV64=y
CONFIG_GUESTAGENT_COMPRESS_ZSTD=y
CONFIG_GUESTAGENT_COMPRESS_LEVEL=19

@afbjorklund

This comment was marked as off-topic.

@AkihiroSuda
Copy link
Member

Can we just use gzip, to avoid requiring an extra dependency for downstream packages

@afbjorklund
Copy link
Member Author

Can we just use gzip, to avoid requiring an extra dependency for downstream packages

We could. It would be slower to decompress, but I don't think that it matters much here.

@afbjorklund
Copy link
Member Author

This PR is mostly for evaluation, to compare the sizes/speeds of the different options...

  • none
  • gzip (-6)
  • gzip (-9)
  • zstd (-3)
  • zstd (-19)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compress the lima-guestagent in the installation directory
2 participants