nixpkgs-suyu/nixos/doc/manual/release-notes
danbst 8d8a7210e4 zramSwap: allow configure compression algorithm + cleanups
- add `zramSwap.algorithm` option, which allows to change compressor
declaratively. zstd as default
- add `zramSwap.swapDevices` option, which allows to define how many zram
devices will be used as swap. Rest devices can be managed freely
- simpler floating calculations
- fix udev race condition
- some documentation changes
- replaced `/sys/block/zram*` handling with `zramctl`, because I had occasional
"Device is busy" error (looks like zram has to be configured in predefined order)
- added `memoryPercent` and `algorithm` as restart triggers. I think, it was
a bug that changing `memoryPercent` in configuration wasn't applied immediately.
- removed a bind to .swap device. While it looks natural (when swap device goes
off, so should zram device), it wasn't implemented properly. This caused problems
with swapon/swapoff:
```
$ cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/zram0                              partition       8166024 0       -2
/var/swapfile                           file            5119996 5120    1

$ sudo swapoff -a

$ sudo swapon -a
swapon: /dev/zram0: read swap header failed

$ cat /proc/swaps
Filename                                Type            Size    Used    Priority
/var/swapfile                           file            5119996 0       1
```
2019-01-17 15:58:53 +02:00
..
release-notes.xml release-notes: Adds 19.03 — Koi 2018-09-02 17:47:24 -04:00
rl-1310.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1404.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1412.xml treewide: Fix broken Gmane URLs 2018-12-25 22:34:55 -05:00
rl-1509.xml docs: format 2018-09-29 20:51:11 -04:00
rl-1603.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1609.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1703.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1709.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1803.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1809.xml nixos/release-notes for 18.09: fix missing entry 2018-10-30 08:41:13 +01:00
rl-1903.xml zramSwap: allow configure compression algorithm + cleanups 2019-01-17 15:58:53 +02:00