Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

zh_CN/admin-guide: Add zh_CN/admin-guide/numastat.rst translation document

Add translation zh_CN/admin-guide/numastat.rst and link it to
zh_CN/admin-guide/index.rst while clean its todo entry.

commit 77691ee92d4a ("Documentation: update numastat explanation")

Signed-off-by: Tao Zou <wodemia@linux.alibaba.com>
Reviewed-by: Yanteng Si <siyanteng@loongson.cn>
Reviewed-by: Alex Shi <alexs@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/tencent_AB1A2D84652D748A2290F5305B94D4612307@qq.com

authored by

Tao Zou and committed by
Jonathan Corbet
bcc14d6f 543d67de

+49 -1
+1 -1
Documentation/translations/zh_CN/admin-guide/index.rst
··· 68 68 cpu-load 69 69 cputopology 70 70 lockup-watchdogs 71 + numastat 71 72 unicode 72 73 sysrq 73 74 mm/index ··· 110 109 * module-signing 111 110 * mono 112 111 * namespaces/index 113 - * numastat 114 112 * parport 115 113 * perf-security 116 114 * pm/index
+48
Documentation/translations/zh_CN/admin-guide/numastat.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + .. include:: ../disclaimer-zh_CN.rst 3 + 4 + :Original: Documentation/admin-guide/numastat.rst 5 + :Translator: Tao Zou <wodemia@linux.alibaba.com> 6 + 7 + 8 + ======================= 9 + Numa策略命中/未命中统计 10 + ======================= 11 + 12 + /sys/devices/system/node/node*/numastat 13 + 14 + 所有数据的单位都是页面。巨页有独立的计数器。 15 + 16 + numa_hit、numa_miss和numa_foreign计数器反应了进程是否能够在他们偏好的节点上分配内存。 17 + 如果进程成功在偏好的节点上分配内存则在偏好的节点上增加numa_hit计数,否则在偏好的节点上增 18 + 加numa_foreign计数同时在实际内存分配的节点上增加numa_miss计数。 19 + 20 + 通常,偏好的节点是进程运行所在的CPU的本地节点,但是一些限制可以改变这一行为,比如内存策略, 21 + 因此同样有两个基于CPU本地节点的计数器。local_node和numa_hit类似,当在CPU所在的节点上分 22 + 配内存时增加local_node计数,other_node和numa_miss类似,当在CPU所在节点之外的其他节点 23 + 上成功分配内存时增加other_node计数。需要注意,没有和numa_foreign对应的计数器。 24 + 25 + 更多细节内容: 26 + 27 + =============== ============================================================ 28 + numa_hit 一个进程想要从本节点分配内存并且成功。 29 + 30 + numa_miss 一个进程想要从其他节点分配内存但是最终在本节点完成内存分配。 31 + 32 + numa_foreign 一个进程想要在本节点分配内存但是最终在其他节点完成内存分配。 33 + 34 + local_node 一个进程运行在本节点的CPU上并且从本节点上获得了内存。 35 + 36 + other_node 一个进程运行在其他节点的CPU上但是在本节点上获得了内存。 37 + 38 + interleave_hit 内存交叉分配策略下想要从本节点分配内存并且成功。 39 + =============== ============================================================ 40 + 41 + 你可以使用numactl软件包(http://oss.sgi.com/projects/libnuma/)中的numastat工具 42 + 来辅助阅读。需要注意,numastat工具目前只在有少量CPU的机器上运行良好。 43 + 44 + 需要注意,在包含无内存节点(一个节点有CPUs但是没有内存)的系统中numa_hit、numa_miss和 45 + numa_foreign统计数据会被严重曲解。在当前的内核实现中,如果一个进程偏好一个无内存节点(即 46 + 进程正在该节点的一个本地CPU上运行),实际上会从距离最近的有内存节点中挑选一个作为偏好节点。 47 + 结果会导致相应的内存分配不会增加无内存节点上的numa_foreign计数器,并且会扭曲最近节点上的 48 + numa_hit、numa_miss和numa_foreign统计数据。