aboutsummaryrefslogtreecommitdiff
path: root/Documentation/translations
diff options
context:
space:
mode:
authorGravatar Yanteng Si <siyanteng01@gmail.com> 2022-03-28 17:59:53 +0800
committerGravatar Jonathan Corbet <corbet@lwn.net> 2022-04-05 10:08:06 -0600
commit2154e5e7d0123a7f1da2db527c59523f00cd7d3b (patch)
tree3ed5ecdb4d27271923172c256fbd7b78d91459d0 /Documentation/translations
parentdocs/zh_CN: add vm split_page_table_lock translation (diff)
downloadlinux-2154e5e7d0123a7f1da2db527c59523f00cd7d3b.tar.gz
linux-2154e5e7d0123a7f1da2db527c59523f00cd7d3b.tar.bz2
linux-2154e5e7d0123a7f1da2db527c59523f00cd7d3b.zip
docs/zh_CN: add vm z3fold translation
Translate .../vm/z3fold.rst into Chinese. Signed-off-by: Yanteng Si <siyanteng@loongson.cn> Reviewed-by: Alex Shi <alexs@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/translations')
-rw-r--r--Documentation/translations/zh_CN/vm/index.rst2
-rw-r--r--Documentation/translations/zh_CN/vm/z3fold.rst31
2 files changed, 32 insertions, 1 deletions
diff --git a/Documentation/translations/zh_CN/vm/index.rst b/Documentation/translations/zh_CN/vm/index.rst
index 8c7d0b1e5c3e..e28d0e919bfe 100644
--- a/Documentation/translations/zh_CN/vm/index.rst
+++ b/Documentation/translations/zh_CN/vm/index.rst
@@ -37,6 +37,7 @@ TODO:待引用文档集被翻译完毕后请及时修改此处)
page_table_check
remap_file_pages
split_page_table_lock
+ z3fold
TODOLIST:
* arch_pgtable_helpers
@@ -49,5 +50,4 @@ TODOLIST:
* transhuge
* unevictable-lru
* vmalloced-kernel-stacks
-* z3fold
* zsmalloc
diff --git a/Documentation/translations/zh_CN/vm/z3fold.rst b/Documentation/translations/zh_CN/vm/z3fold.rst
new file mode 100644
index 000000000000..57204aa08caa
--- /dev/null
+++ b/Documentation/translations/zh_CN/vm/z3fold.rst
@@ -0,0 +1,31 @@
+:Original: Documentation/vm/z3fold.rst
+
+:翻译:
+
+ 司延腾 Yanteng Si <siyanteng@loongson.cn>
+
+:校译:
+
+
+======
+z3fold
+======
+
+z3fold是一个专门用于存储压缩页的分配器。它被设计为每个物理页最多可以存储三个压缩页。
+它是zbud的衍生物,允许更高的压缩率,保持其前辈的简单性和确定性。
+
+z3fold和zbud的主要区别是:
+
+* 与zbud不同的是,z3fold允许最大的PAGE_SIZE分配。
+* z3fold在其页面中最多可以容纳3个压缩页面
+* z3fold本身没有输出任何API,因此打算通过zpool的API来使用
+
+为了保持确定性和简单性,z3fold,就像zbud一样,总是在每页存储一个整数的压缩页,但是
+它最多可以存储3页,不像zbud最多可以存储2页。因此压缩率达到2.7倍左右,而zbud的压缩
+率是1.7倍左右。
+
+不像zbud(但也像zsmalloc),z3fold_alloc()那样不返回一个可重复引用的指针。相反,它
+返回一个无符号长句柄,它编码了被分配对象的实际位置。
+
+保持有效的压缩率接近于zsmalloc,z3fold不依赖于MMU的启用,并提供更可预测的回收行
+为,这使得它更适合于小型和反应迅速的系统。