4 ms·
I've never understood why zswap decompresses the pages before writing them out to disk. Disk IO is the slowest part of the whole chain, you've already paid to
by cellularmitosis 7y ago
I've never understood why zswap decompresses the pages before writing them out to disk. Disk IO is the slowest part of the whole chain, you've already paid to compress the data, why on earth would you throw that away AND use up more disk IO?
- phh 7y agoCompressing improves disk's bandwidth
- m4rtink 7y agoMy guess is that this is due to some inherent limitations of the Linux kernel swap mechanism ? Possibly so that you can safely disable zswap at runtime (you can) ? Or quite possibly no one implemented it just yet & writing uncompressed pages is transparently compatible with what normal swapping does.