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

Linux 6.18.37 · ABI / testing

CMA statistics sysfs ABI

CMA heap/area별 allocation 성공·실패, release 성공과 total·available page counters를 설명합니다.

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

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

1. 요약·해설

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

Allocation and release outcomes

sysfs-kernel-mm-cma:1-32

CMA area마다 page allocation 성공·실패와 release 성공 횟수를 제공해 allocator 동작을 관찰합니다.

Area capacity and availability

sysfs-kernel-mm-cma:33-44

CMA area의 전체 page capacity와 현재 allocation 가능한 pages를 함께 제공합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/kernel/mm/cma/
2 Date: Feb 2021
3 Contact: Minchan Kim <minchan@kernel.org>
4 Description:
5 /sys/kernel/mm/cma/ contains a subdirectory for each CMA
6 heap name (also sometimes called CMA areas).
7
8 Each CMA heap subdirectory (that is, each
9 /sys/kernel/mm/cma/<cma-heap-name> directory) contains the
10 following items:
11
12 alloc_pages_success
13 alloc_pages_fail
14
15 What: /sys/kernel/mm/cma/<cma-heap-name>/alloc_pages_success
16 Date: Feb 2021
17 Contact: Minchan Kim <minchan@kernel.org>
18 Description:
19 the number of pages CMA API succeeded to allocate
20
21 What: /sys/kernel/mm/cma/<cma-heap-name>/alloc_pages_fail
22 Date: Feb 2021
23 Contact: Minchan Kim <minchan@kernel.org>
24 Description:
25 the number of pages CMA API failed to allocate
26
27 What: /sys/kernel/mm/cma/<cma-heap-name>/release_pages_success
28 Date: Feb 2024
29 Contact: Anshuman Khandual <anshuman.khandual@arm.com>
30 Description:
31 the number of pages CMA API succeeded to release
32
33 What: /sys/kernel/mm/cma/<cma-heap-name>/total_pages
34 Date: Jun 2024
35 Contact: Frank van der Linden <fvdl@google.com>
36 Description:
37 The size of the CMA area in pages.
38
39 What: /sys/kernel/mm/cma/<cma-heap-name>/available_pages
40 Date: Jun 2024
41 Contact: Frank van der Linden <fvdl@google.com>
42 Description:
43 The number of pages in the CMA area that are still
44 available for CMA allocation.
45

3. 한국어 전문 번역

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

CMA cma

1-14
항목한국어 전문 번역
What/sys/kernel/mm/cma/
Date2021년 2월
ContactMinchan Kim <minchan@kernel.org>
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
Date2021년 2월
ContactMinchan Kim <minchan@kernel.org>
DescriptionCMA API가 allocation에 성공한 pages 수입니다.

CMA alloc pages fail

21-26
항목한국어 전문 번역
What/sys/kernel/mm/cma/<cma-heap-name>/alloc_pages_fail
Date2021년 2월
ContactMinchan Kim <minchan@kernel.org>
DescriptionCMA API가 allocation에 실패한 pages 수입니다.

CMA release pages success

27-32
항목한국어 전문 번역
What/sys/kernel/mm/cma/<cma-heap-name>/release_pages_success
Date2024년 2월
ContactAnshuman Khandual <anshuman.khandual@arm.com>
DescriptionCMA API가 release에 성공한 pages 수입니다.

CMA total pages

33-38
항목한국어 전문 번역
What/sys/kernel/mm/cma/<cma-heap-name>/total_pages
Date2024년 6월
ContactFrank van der Linden <fvdl@google.com>
DescriptionCMA area의 size를 pages 단위로 표시합니다.

CMA available pages

39-44
항목한국어 전문 번역
What/sys/kernel/mm/cma/<cma-heap-name>/available_pages
Date2024년 6월
ContactFrank van der Linden <fvdl@google.com>
DescriptionCMA area에서 CMA allocation에 아직 사용할 수 있는 pages 수입니다.
Per-CMA-area page counters
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 단위로 제공합니다.