Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c6f607a940a9
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 940f396f590c
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Mar 7, 2019

  1. zram: revert "change default algorithm to zstd" (#56856)

    19.03 default kernel is still 4.14, which doesn't support zstd. So,
    zramSwap in current fasion fails on default kernel.
    danbst authored Mar 7, 2019
    Copy the full SHA
    940f396 View commit details
Showing with 4 additions and 4 deletions.
  1. +1 −1 nixos/doc/manual/release-notes/rl-1903.xml
  2. +3 −3 nixos/modules/config/zram.nix
2 changes: 1 addition & 1 deletion nixos/doc/manual/release-notes/rl-1903.xml
Original file line number Diff line number Diff line change
@@ -577,7 +577,7 @@
but is still possible by setting <literal>zramSwap.swapDevices</literal> explicitly.
</para>
<para>
Default algorithm for ZRAM swap was changed to <literal>zstd</literal>.
ZRAM algorithm can be changed now.
</para>
<para>
Changes to ZRAM algorithm are applied during <literal>nixos-rebuild switch</literal>,
6 changes: 3 additions & 3 deletions nixos/modules/config/zram.nix
Original file line number Diff line number Diff line change
@@ -91,13 +91,13 @@ in
};

algorithm = mkOption {
default = "zstd";
example = "lzo";
default = "lzo";
example = "lz4";
type = with types; either (enum [ "lzo" "lz4" "zstd" ]) str;
description = ''
Compression algorithm. <literal>lzo</literal> has good compression,
but is slow. <literal>lz4</literal> has bad compression, but is fast.
<literal>zstd</literal> is both good compression and fast.
<literal>zstd</literal> is both good compression and fast, but requires newer kernel.
You can check what other algorithms are supported by your zram device with
<programlisting>cat /sys/class/block/zram*/comp_algorithm</programlisting>
'';