요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
Area capacity and availability
sysfs-kernel-mm-cma:33-44CMA area의 전체 page capacity와 현재 allocation 가능한 pages를 함께 제공합니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
1
What: /sys/kernel/mm/cma/
2
Date: Feb 2021
3
Contact: Minchan Kim <[email protected]>
4
Description:
5
/sys/kernel/mm/cma/ contains a subdirectory for each CMA
6
heap name (also sometimes called CMA areas).
8
Each CMA heap subdirectory (that is, each
9
/sys/kernel/mm/cma/<cma-heap-name> directory) contains the
10
following items:
12
alloc_pages_success
13
alloc_pages_fail
15
What: /sys/kernel/mm/cma/<cma-heap-name>/alloc_pages_success
16
Date: Feb 2021
17
Contact: Minchan Kim <[email protected]>
18
Description:
19
the number of pages CMA API succeeded to allocate
21
What: /sys/kernel/mm/cma/<cma-heap-name>/alloc_pages_fail
22
Date: Feb 2021
23
Contact: Minchan Kim <[email protected]>
24
Description:
25
the number of pages CMA API failed to allocate
27
What: /sys/kernel/mm/cma/<cma-heap-name>/release_pages_success
28
Date: Feb 2024
29
Contact: Anshuman Khandual <[email protected]>
30
Description:
31
the number of pages CMA API succeeded to release
33
What: /sys/kernel/mm/cma/<cma-heap-name>/total_pages
34
Date: Jun 2024
35
Contact: Frank van der Linden <[email protected]>
36
Description:
37
The size of the CMA area in pages.
39
What: /sys/kernel/mm/cma/<cma-heap-name>/available_pages
40
Date: Jun 2024
41
Contact: Frank van der Linden <[email protected]>
42
Description:
43
The number of pages in the CMA area that are still
44
available for CMA allocation.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
CMA cma
1-14| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/kernel/mm/cma/ |
| Date | 2021년 2월 |
| Contact | Minchan Kim <[email protected]> |
| Description | `/sys/kernel/mm/cma/`에는 각 CMA heap name(CMA areas라고도 함)의 subdirectory가 있습니다. 각 `/sys/kernel/mm/cma/<cma-heap-name>` directory는 `alloc_pages_success`와 `alloc_pages_fail` items를 포함합니다. |
CMA alloc pages success
15-20| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/kernel/mm/cma/<cma-heap-name>/alloc_pages_success |
| Date | 2021년 2월 |
| Contact | Minchan Kim <[email protected]> |
| Description | CMA API가 allocation에 성공한 pages 수입니다. |
CMA alloc pages fail
21-26| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/kernel/mm/cma/<cma-heap-name>/alloc_pages_fail |
| Date | 2021년 2월 |
| Contact | Minchan Kim <[email protected]> |
| Description | CMA API가 allocation에 실패한 pages 수입니다. |
CMA release pages success
27-32| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/kernel/mm/cma/<cma-heap-name>/release_pages_success |
| Date | 2024년 2월 |
| Contact | Anshuman Khandual <[email protected]> |
| Description | CMA API가 release에 성공한 pages 수입니다. |
CMA total pages
33-38| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/kernel/mm/cma/<cma-heap-name>/total_pages |
| Date | 2024년 6월 |
| Contact | Frank van der Linden <[email protected]> |
| Description | CMA area의 size를 pages 단위로 표시합니다. |
CMA available pages
39-44| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/kernel/mm/cma/<cma-heap-name>/available_pages |
| Date | 2024년 6월 |
| Contact | Frank van der Linden <[email protected]> |
| Description | CMA area에서 CMA allocation에 아직 사용할 수 있는 pages 수입니다. |
AttributeMeaningUnit
alloc_pages_successPages successfully allocatedPages
alloc_pages_failPages that failed allocationPages
release_pages_successPages successfully releasedPages
total_pagesCMA area sizePages
available_pagesPages still available for CMA allocationPages
Heap name별 allocation·release 결과와 capacity를 pages 단위로 제공합니다.
Allocation and release outcomes
sysfs-kernel-mm-cma:1-32CMA area마다 page allocation 성공·실패와 release 성공 횟수를 제공해 allocator 동작을 관찰합니다.