← Documents Documentation/mm/damon/faq.rst GitHub 원문 ↗

Linux 6.18.37 · Memory management

DAMON Frequently Asked Questions

DAMON의 주소 공간 독립성과 page granularity 모니터링 설정을 설명합니다.

Source pathDocumentation/mm/damon/faq.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

faq.rst:1-27

DAMON core는 특정 주소 공간에 묶이지 않습니다. 기본 `vaddr`·`paddr` 구현 외에도 대상 region 구성과 접근 검사 동작을 교체할 수 있으며, `min_nr_regions`를 충분히 크게 두면 page 단위 모니터링도 가능합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0
2
3 ==========================
4 Frequently Asked Questions
5 ==========================
6
7 Does DAMON support virtual memory only?
8 =======================================
9
10 No. The core of the DAMON is address space independent. The address space
11 specific monitoring operations including monitoring target regions
12 constructions and actual access checks can be implemented and configured on the
13 DAMON core by the users. In this way, DAMON users can monitor any address
14 space with any access check technique.
15
16 Nonetheless, DAMON provides vma/rmap tracking and PTE Accessed bit check based
17 implementations of the address space dependent functions for the virtual memory
18 and the physical memory by default, for a reference and convenient use.
19
20
21 Can I simply monitor page granularity?
22 ======================================
23
24 Yes. You can do so by setting the ``min_nr_regions`` attribute higher than the
25 working set size divided by the page size. Because the monitoring target
26 regions size is forced to be ``>=page size``, the region split will make no
27 effect.
28

3. 한국어 전문 번역

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

DAMON은 가상 메모리만 지원합니까?

1-18

아닙니다. DAMON core는 주소 공간에 독립적입니다. 모니터링 대상 region 구성과 실제 접근 검사를 포함한 주소 공간별 모니터링 동작을 사용자가 구현해 DAMON core에 구성할 수 있습니다. 따라서 어떤 접근 검사 기법으로든 임의의 주소 공간을 모니터링할 수 있습니다.

다만 DAMON은 참고 구현이자 편리한 기본 기능으로 가상 메모리와 물리 메모리에 대해 VMA 및 rmap 추적과 PTE Accessed bit 검사에 기반한 주소 공간 의존 동작을 제공합니다.

.. SPDX-License-Identifier: GPL-2.0

==========================
Frequently Asked Questions
==========================

Does DAMON support virtual memory only?
=======================================

No.  The core of the DAMON is address space independent.  The address space
specific monitoring operations including monitoring target regions
constructions and actual access checks can be implemented and configured on the
DAMON core by the users.  In this way, DAMON users can monitor any address
space with any access check technique.

Nonetheless, DAMON provides vma/rmap tracking and PTE Accessed bit check based
implementations of the address space dependent functions for the virtual memory
and the physical memory by default, for a reference and convenient use.

Page 단위로 간단히 모니터링할 수 있습니까?

19-27

가능합니다. `min_nr_regions`를 working set 크기를 page 크기로 나눈 값보다 크게 설정합니다. 모니터링 대상 region의 크기는 `>= page size`가 되도록 강제되므로 이후 region split은 아무 효과를 내지 않고 page granularity가 유지됩니다.



Can I simply monitor page granularity?
======================================

Yes.  You can do so by setting the ``min_nr_regions`` attribute higher than the
working set size divided by the page size.  Because the monitoring target
regions size is forced to be ``>=page size``, the region split will make no
effect.