← Documents Documentation/ABI/testing/sysfs-kernel-mm-numa GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

NUMA memory-management sysfs ABI

NUMA interface root와 reclaim 중 fast memory tier의 pages를 slow tier로 demote하는 정책, cpuset location guarantee의 주의점을 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-kernel-mm-numa
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

NUMA policy interface

sysfs-kernel-mm-numa:1-5

NUMA 관련 memory-management controls의 sysfs root를 정의합니다.

Reclaim-time tier demotion

sysfs-kernel-mm-numa:6-28

Fast tier가 압박받을 때 eligible slow-tier NUMA node로 pages를 swap 전에 옮기며, runtime cpuset 변경과 shared memory 때문에 strict location guarantee를 지킬 수 없는 경우를 경고합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 What: /sys/kernel/mm/numa/
2 Date: June 2021
3 Contact: Linux memory management mailing list <linux-mm@kvack.org>
4 Description: Interface for NUMA
5
6 What: /sys/kernel/mm/numa/demotion_enabled
7 Date: June 2021
8 Contact: Linux memory management mailing list <linux-mm@kvack.org>
9 Description: Enable/disable demoting pages during reclaim
10
11 Page migration during reclaim is intended for systems
12 with tiered memory configurations. These systems have
13 multiple types of memory with varied performance
14 characteristics instead of plain NUMA systems where
15 the same kind of memory is found at varied distances.
16 Allowing page migration during reclaim enables these
17 systems to migrate pages from fast tiers to slow tiers
18 when the fast tier is under pressure. This migration
19 is performed before swap if an eligible numa node is
20 present in cpuset.mems for the cgroup (or if cpuset v1
21 is being used). If cpusets.mems changes at runtime, it
22 may move data to a NUMA node that does not fall into the
23 cpuset of the new cpusets.mems, which might be construed
24 to violate the guarantees of cpusets. Shared memory,
25 such as libraries, owned by another cgroup may still be
26 demoted and result in memory use on a node not present
27 in cpusets.mem. This should not be enabled on systems
28 which need strict cpuset location guarantees.
29

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

NUMA numa

1-5
항목한국어 전문 번역
What/sys/kernel/mm/numa/
Date2021년 6월
ContactLinux memory management mailing list <linux-mm@kvack.org>
DescriptionNUMA를 위한 interface입니다.

NUMA demotion enabled

6-28
항목한국어 전문 번역
What/sys/kernel/mm/numa/demotion_enabled
Date2021년 6월
ContactLinux memory management mailing list <linux-mm@kvack.org>
DescriptionReclaim 중 page demotion을 enable하거나 disable합니다. Reclaim 도중의 page migration은 단순 NUMA systems처럼 같은 종류의 memory가 서로 다른 거리에 있는 구성과 달리, 성능 특성이 서로 다른 여러 memory 종류를 갖는 tiered memory configurations를 위한 것입니다. Reclaim 중 page migration을 허용하면 fast tier가 memory pressure를 받을 때 pages를 fast tier에서 slow tier로 migrate할 수 있습니다. cgroup의 `cpuset.mems`에 eligible NUMA node가 있거나 cpuset v1을 사용 중이면 이 migration은 swap보다 먼저 수행됩니다. `cpusets.mems`가 runtime에 변경되면 새 `cpusets.mems`의 cpuset에 속하지 않는 NUMA node로 data가 이동할 수 있으며, 이는 cpusets의 guarantees를 위반하는 것으로 해석될 수 있습니다. Libraries처럼 다른 cgroup이 소유한 shared memory도 demote되어 `cpusets.mem`에 없는 node에서 memory를 사용할 수 있습니다. Strict cpuset location guarantees가 필요한 systems에서는 이 기능을 enable하면 안 됩니다.
NUMA reclaim demotion
Fast tier under pressureEligible node in cpuset.memsDemote pages to slow tierSwap remains later fallback
cpusets.mems changes or shared memoryData may remain outside new cpusetStrict location guarantee risk

Eligible slow-tier node가 있을 때 demotion은 swap보다 먼저 시도되지만, runtime cpuset 변경과 shared memory는 strict location guarantee를 깨뜨릴 수 있습니다.