Skip to content

dkms: use saner compression defaults#390

Merged
evelikov merged 1 commit intodkms-project:masterfrom
evelikov:align-compression
Jan 31, 2024
Merged

dkms: use saner compression defaults#390
evelikov merged 1 commit intodkms-project:masterfrom
evelikov:align-compression

Conversation

@evelikov
Copy link
Collaborator

Currently our compression options vary from those used in upstream kernel. As of 6.8-rc2 upstream uses (ignoring force/rm input file etc):

  • gzip -9
  • xz --check=crc32 --lzma2=dict=1MiB Note: some older kernels lacked crc32 and/or used 2MiB
  • zstd -T0 (aka -3)

With the higher dictionary size (xz) and compression size (20+ zstd) more memory is required for decompression. Which may be a problem if the kernel itself is responsible for the decompression (instead of kmod), since it uses a smaller/limited ram amount.

Reduce the numbers of be compatible with upstream.

Closes: #386

@anbe42

@evelikov
Copy link
Collaborator Author

Currently our compression options vary from those used in upstream
kernel. As of 6.8-rc2 upstream uses (ignoring force/rm input file etc):

 - gzip -9
 - xz --check=crc32 --lzma2=dict=1MiB
   Note: some older kernels lacked crc32 and/or used 2MiB
 - zstd -T0 (aka -3)

With the higher dictionary size (xz) and compression size (20+ zstd)
more memory is required for decompression. Which may be a problem if the
kernel itself is responsible for the decompression (instead of kmod),
since it uses a smaller/limited ram amount.

Reduce the numbers of be compatible with upstream.

Closes: dkms-project#386

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
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.

dkms built modules may be compressed in a way unsupported by the kernel

2 participants