요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Operation과 shared-memory slot timeout
sysfs-fs-orangefs:43-60Service operation과 kernel module–user-space 통신 slot을 기다리는 최대 시간을 초 단위로 설정합니다.
OrangeFS cache configuration
sysfs-fs-orangefs:62-87Attribute, name, capability와 credential cache별 configurable setting을 제공합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/fs/orangefs/perf_counters/*
Date: Jun 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
Counters and settings for various caches.
Read only.
What: /sys/fs/orangefs/perf_counter_reset
Date: June 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
echo a 0 or a 1 into perf_counter_reset to
reset all the counters in
/sys/fs/orangefs/perf_counters
except ones with PINT_PERF_PRESERVE set.
What: /sys/fs/orangefs/perf_time_interval_secs
Date: Jun 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
Length of perf counter intervals in
seconds.
What: /sys/fs/orangefs/perf_history_size
Date: Jun 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
The perf_counters cache statistics have N, or
perf_history_size, samples. The default is
one.
Every perf_time_interval_secs the (first)
samples are reset.
If N is greater than one, the "current" set
of samples is reset, and the samples from the
other N-1 intervals remain available.
What: /sys/fs/orangefs/op_timeout_secs
Date: Jun 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
Service operation timeout in seconds.
What: /sys/fs/orangefs/slot_timeout_secs
Date: Jun 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
"Slot" timeout in seconds. A "slot"
is an indexed buffer in the shared
memory segment used for communication
between the kernel module and userspace.
Slots are requested and waited for,
the wait times out after slot_timeout_secs.
What: /sys/fs/orangefs/acache/*
Date: Jun 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
Attribute cache configurable settings.
What: /sys/fs/orangefs/ncache/*
Date: Jun 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
Name cache configurable settings.
What: /sys/fs/orangefs/capcache/*
Date: Jun 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
Capability cache configurable settings.
What: /sys/fs/orangefs/ccache/*
Date: Jun 2015
Contact: Mike Marshall <hubcap@omnibond.com>
Description:
Credential cache configurable settings.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Cache performance counter와 reset
1-25이 문서의 모든 ABI는 2015년 6월에 도입됐고 Mike Marshall <hubcap@omnibond.com>이 담당한다.
| 경로 | 설명 |
|---|---|
| /sys/fs/orangefs/perf_counters/* | 여러 cache의 counter와 setting을 제공하는 read-only group이다. |
| /sys/fs/orangefs/perf_counter_reset | 0 또는 1을 쓰면 /sys/fs/orangefs/perf_counters의 모든 counter를 reset한다. 단, PINT_PERF_PRESERVE가 설정된 counter는 제외한다. |
| /sys/fs/orangefs/perf_time_interval_secs | Performance-counter interval 길이를 초 단위로 정한다. |
Performance sample history depth
27-41| 항목 | 내용 |
|---|---|
| What | /sys/fs/orangefs/perf_history_size |
| Default | 1 sample |
| Meaning | perf_counters cache statistic이 유지하는 sample 수 N |
매 perf_time_interval_secs마다 첫 번째 또는 현재 sample set을 reset한다. N이 1보다 크면 current sample set만 reset하고 다른 N-1 interval의 sample은 계속 조회할 수 있다.
Interval 경계마다 current bucket만 초기화되고 이전 N-1 bucket은 history로 남는다.
Service operation과 communication slot timeout
43-60| 경로 | 단위 | 설명 |
|---|---|---|
| /sys/fs/orangefs/op_timeout_secs | 초 | Service operation timeout이다. |
| /sys/fs/orangefs/slot_timeout_secs | 초 | Slot request를 기다리는 timeout이다. Slot은 kernel module과 user space가 통신할 때 사용하는 shared-memory segment 안의 indexed buffer다. Slot을 요청해 기다리다가 이 시간이 지나면 timeout된다. |
Kernel module과 user-space service 사이 요청은 indexed shared-memory slot을 확보해야 진행된다.
Cache별 configurable setting group
62-87| 경로 | 설정 대상 |
|---|---|
| /sys/fs/orangefs/acache/* | Attribute cache |
| /sys/fs/orangefs/ncache/* | Name cache |
| /sys/fs/orangefs/capcache/* | Capability cache |
| /sys/fs/orangefs/ccache/* | Credential cache |
이 ABI 문서는 각 group 안의 구체적인 파일 이름이나 값 범위를 추가로 정의하지 않고 configurable setting group이라는 범위만 명시한다.
Performance counter와 history window
sysfs-fs-orangefs:1-41Cache counter를 읽고 preserved 항목을 제외해 reset하며 interval 길이와 유지할 sample 수 N을 설정합니다.