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

squashfs: 4.4dev -> 4.4dev-20180612 #52965

Merged
merged 1 commit into from Jan 7, 2019
Merged

Conversation

danbst
Copy link
Contributor

@danbst danbst commented Dec 27, 2018

This squashfstools release finally has zstd support.

Inspired by https://discourse.nixos.org/t/install-nixos-on-512-mb-ram/1713/5. Building zstd-compressed squashfs is much faster than xz or zlib

Done a few tests over installation CD squashfs.

  • command: nix-build -A config.system.build.squashfsStore -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix <nixpkgs/nixos>
  • XZ (default): -comp xz -Xdict-size 100%
  • zstd: -comp zstd -Xcompression-level 6
  • gzip: -comp gzip -Xcompression-level 6
  • zstd1: -comp zstd -Xcompression-level 1
  • gzip1: -comp gzip -Xcompression-level 1
XZ:    time 4m41,017s, size 497Mb
zstd:  time 35s, size 529Mb
gzip:  time 59s, size 585Mb
zstd1: time 15s, size 609Mb
gzip1: time 31s, size 639Mb

Is 32Mb (zstd -6) too much to change default compressor?

cc @Mic92

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

This squashfstools release finally has `zstd` support.
@matthewbauer
Copy link
Member

@GrahamcOfBorg build squashfs

@worldofpeace
Copy link
Contributor

@GrahamcOfBorg build squashfsTools

@danbst
Copy link
Contributor Author

danbst commented Dec 29, 2018

@matthewbauer sorry, indeed attribute is called squashfsTools, but derivation name is squashfs. I can change derivation name as well, if there is confusion.

@matthewbauer matthewbauer merged commit 7b20706 into NixOS:master Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants