接前一篇文章:Linux内核中内存管理相关配置项的详细解析1
3. Default compressor(默认压缩器)
此项展开后如下图所示:
此项的内核源码详细解释为:
Selects the default compression algorithm for the compressed cache
for swap pages.
For an overview what kind of performance can be expected from
a particular compression algorithm please refer to the benchmarks
available at the following LWN page:
https://lwn.net/Articles/751795/
If in doubt, select 'LZO'.
The selection made here can be overridden by using the kernel
command line 'zswap.compressor=' option.
为交换页的压缩缓存选择默认压缩算法。
一个特定的压缩算法可以预期什么样的性能的概览,请请参阅以下LWN页面上提供的基准:
https://lwn.net/Articles/751795/
如果有疑问(不清楚),请选择“LZO”。
此处所做的选择可以使用kernel命令行“zswap.compressor=”选项覆盖。
4. Default allocator(默认分配器)
此项展开后如下图所示:
此项的内核源码详细解释为:
Selects the default allocator for the compressed cache for
swap pages.
The default is 'zbud' for compatibility, however please do
read the description of each of the allocators below before
making a right choice.
The selection made here can be overridden by using the kernel
command line 'zswap.zpool=' option.
为交换页的压缩缓存选择默认分配器。
为了兼容性,默认值为“zbud”,但是,在做出正确的选择之前,请先阅读下面每个分配器的描述。
此处所做的选择可以使用kernel命令行“zswap.zpool=”选项覆盖。
其它选项将在后续文章中继续介绍。