요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
NUMA memory removal과 restore
ppc-memtrace:9-20enable에 memblock-aligned byte size를 쓰면 각 NUMA node에서 그만큼 RAM을 kernel mappings에서 제거하고 node files를 만듭니다. 0을 쓰면 memory를 다시 추가하고 자동 online합니다.
Removed-memory node files
ppc-memtrace:22-46각 node-id directory는 제거한 memory의 size와 start address를 제공하고 hardware trace macro가 생성한 output을 trace file에 기록합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/kernel/debug/powerpc/memtrace
Date: Aug 2017
KernelVersion: 4.14
Contact: [email protected]
Description: This folder contains the relevant debugfs files for the
hardware trace macro to use. CONFIG_PPC64_HARDWARE_TRACING
must be set.
What: /sys/kernel/debug/powerpc/memtrace/enable
Date: Aug 2017
KernelVersion: 4.14
Contact: [email protected]
Description: Write an integer containing the size in bytes of the memory
you want removed from each NUMA node to this file - it must be
aligned to the memblock size. This amount of RAM will be removed
from each NUMA node in the kernel mappings and the following
debugfs files will be created. Once memory is successfully
removed from each node, the following files are created. To
re-add memory to the kernel, echo 0 into this file (it will be
automatically onlined).
What: /sys/kernel/debug/powerpc/memtrace/<node-id>
Date: Aug 2017
KernelVersion: 4.14
Contact: [email protected]
Description: This directory contains information about the removed memory
from the specific NUMA node.
What: /sys/kernel/debug/powerpc/memtrace/<node-id>/size
Date: Aug 2017
KernelVersion: 4.14
Contact: [email protected]
Description: This contains the size of the memory removed from the node.
What: /sys/kernel/debug/powerpc/memtrace/<node-id>/start
Date: Aug 2017
KernelVersion: 4.14
Contact: [email protected]
Description: This contains the start address of the removed memory.
What: /sys/kernel/debug/powerpc/memtrace/<node-id>/trace
Date: Aug 2017
KernelVersion: 4.14
Contact: [email protected]
Description: This is where the hardware trace macro will output the trace
it generates.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
PowerPC hardware trace root
1-7| 항목 | 내용 |
|---|---|
| What | /sys/kernel/debug/powerpc/memtrace |
| Date | 2017년 8월 |
| KernelVersion | 4.14 |
| Contact | [email protected] |
| Description | 이 folder는 hardware trace macro가 사용할 관련 debugfs file을 포함합니다. CONFIG_PPC64_HARDWARE_TRACING을 설정해야 합니다. |
각 NUMA node의 trace memory 예약
9-20| 항목 | 내용 |
|---|---|
| What | /sys/kernel/debug/powerpc/memtrace/enable |
| Date | 2017년 8월 |
| KernelVersion | 4.14 |
| Contact | [email protected] |
| Description | 각 NUMA node에서 제거하려는 memory의 byte 단위 크기를 integer로 이 file에 씁니다. 값은 memblock size에 정렬되어야 합니다. |
| Enable result | 각 NUMA node에서 이 양의 RAM을 kernel mapping에서 제거합니다. 각 node에서 memory를 성공적으로 제거하면 뒤따르는 debugfs file을 만듭니다. |
| Restore | Memory를 kernel에 다시 추가하려면 이 file에 0을 echo합니다. Memory는 자동으로 online됩니다. |
NUMA node별 removed-memory 정보
22-46| What | 전문 번역 |
|---|---|
| /sys/kernel/debug/powerpc/memtrace/<node-id> | 지정 NUMA node에서 제거한 memory에 관한 정보를 담는 directory입니다. |
| /sys/kernel/debug/powerpc/memtrace/<node-id>/size | Node에서 제거한 memory의 크기를 담습니다. |
| /sys/kernel/debug/powerpc/memtrace/<node-id>/start | 제거한 memory의 start address를 담습니다. |
| /sys/kernel/debug/powerpc/memtrace/<node-id>/trace | Hardware trace macro가 생성한 trace를 출력하는 위치입니다. |
| 공통 항목 | 내용 |
|---|---|
| Date | 2017년 8월 |
| KernelVersion | 4.14 |
| Contact | [email protected] |
Enable size는 모든 NUMA node에 적용되며 제거된 range의 metadata와 trace를 node directory에 노출하고 0 write가 memory를 복원한다.
Hardware trace debugfs root
ppc-memtrace:1-7powerpc/memtrace는 hardware trace macro용 debugfs files를 담으며 CONFIG_PPC64_HARDWARE_TRACING이 설정되어야 합니다.