← Documents Documentation/ABI/stable/sysfs-fs-orangefs GitHub 원문 ↗

Linux 6.18.37 · ABI / stable

OrangeFS stable sysfs ABI

OrangeFS cache performance counter의 reset·sample interval·history depth, service·shared-memory slot timeout과 attribute·name·capability·credential cache 설정 group을 설명합니다.

Source pathDocumentation/ABI/stable/sysfs-fs-orangefs
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

Performance counter와 history window

sysfs-fs-orangefs:1-41

Cache counter를 읽고 preserved 항목을 제외해 reset하며 interval 길이와 유지할 sample 수 N을 설정합니다.

Operation과 shared-memory slot timeout

sysfs-fs-orangefs:43-60

Service operation과 kernel module–user-space 통신 slot을 기다리는 최대 시간을 초 단위로 설정합니다.

OrangeFS cache configuration

sysfs-fs-orangefs:62-87

Attribute, name, capability와 credential cache별 configurable setting을 제공합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/fs/orangefs/perf_counters/*
2 Date: Jun 2015
3 Contact: Mike Marshall <[email protected]>
4 Description:
5 Counters and settings for various caches.
6 Read only.
7
8
9 What: /sys/fs/orangefs/perf_counter_reset
10 Date: June 2015
11 Contact: Mike Marshall <[email protected]>
12 Description:
13 echo a 0 or a 1 into perf_counter_reset to
14 reset all the counters in
15 /sys/fs/orangefs/perf_counters
16 except ones with PINT_PERF_PRESERVE set.
17
18
19 What: /sys/fs/orangefs/perf_time_interval_secs
20 Date: Jun 2015
21 Contact: Mike Marshall <[email protected]>
22 Description:
23 Length of perf counter intervals in
24 seconds.
25
26
27 What: /sys/fs/orangefs/perf_history_size
28 Date: Jun 2015
29 Contact: Mike Marshall <[email protected]>
30 Description:
31 The perf_counters cache statistics have N, or
32 perf_history_size, samples. The default is
33 one.
34
35 Every perf_time_interval_secs the (first)
36 samples are reset.
37
38 If N is greater than one, the "current" set
39 of samples is reset, and the samples from the
40 other N-1 intervals remain available.
41
42
43 What: /sys/fs/orangefs/op_timeout_secs
44 Date: Jun 2015
45 Contact: Mike Marshall <[email protected]>
46 Description:
47 Service operation timeout in seconds.
48
49
50 What: /sys/fs/orangefs/slot_timeout_secs
51 Date: Jun 2015
52 Contact: Mike Marshall <[email protected]>
53 Description:
54 "Slot" timeout in seconds. A "slot"
55 is an indexed buffer in the shared
56 memory segment used for communication
57 between the kernel module and userspace.
58 Slots are requested and waited for,
59 the wait times out after slot_timeout_secs.
60
61
62 What: /sys/fs/orangefs/acache/*
63 Date: Jun 2015
64 Contact: Mike Marshall <[email protected]>
65 Description:
66 Attribute cache configurable settings.
67
68
69 What: /sys/fs/orangefs/ncache/*
70 Date: Jun 2015
71 Contact: Mike Marshall <[email protected]>
72 Description:
73 Name cache configurable settings.
74
75
76 What: /sys/fs/orangefs/capcache/*
77 Date: Jun 2015
78 Contact: Mike Marshall <[email protected]>
79 Description:
80 Capability cache configurable settings.
81
82
83 What: /sys/fs/orangefs/ccache/*
84 Date: Jun 2015
85 Contact: Mike Marshall <[email protected]>
86 Description:
87 Credential cache configurable settings.
88

3. 한국어 전문 번역

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

Cache performance counter와 reset

1-25

이 문서의 모든 ABI는 2015년 6월에 도입됐고 Mike Marshall <[email protected]>이 담당한다.

경로설명
/sys/fs/orangefs/perf_counters/*여러 cache의 counter와 setting을 제공하는 read-only group이다.
/sys/fs/orangefs/perf_counter_reset0 또는 1을 쓰면 /sys/fs/orangefs/perf_counters의 모든 counter를 reset한다. 단, PINT_PERF_PRESERVE가 설정된 counter는 제외한다.
/sys/fs/orangefs/perf_time_interval_secsPerformance-counter interval 길이를 초 단위로 정한다.

Performance sample history depth

27-41
항목내용
What/sys/fs/orangefs/perf_history_size
Default1 sample
Meaningperf_counters cache statistic이 유지하는 sample 수 N

매 perf_time_interval_secs마다 첫 번째 또는 현재 sample set을 reset한다. N이 1보다 크면 current sample set만 reset하고 다른 N-1 interval의 sample은 계속 조회할 수 있다.

N개 interval의 performance history
Interval 경계Current sample이전 sample
01 t0Counter 누적 시작없음
02 t1새 current를 0으로 resett0 보존
03 t2다음 current를 0으로 resett1, t0 보존
04 N개 초과새 current 생성가장 오래된 sample 제거

Interval 경계마다 current bucket만 초기화되고 이전 N-1 bucket은 history로 남는다.

Service operation과 communication slot timeout

43-60
경로단위설명
/sys/fs/orangefs/op_timeout_secsService operation timeout이다.
/sys/fs/orangefs/slot_timeout_secsSlot request를 기다리는 timeout이다. Slot은 kernel module과 user space가 통신할 때 사용하는 shared-memory segment 안의 indexed buffer다. Slot을 요청해 기다리다가 이 시간이 지나면 timeout된다.
OrangeFS shared-memory slot wait
Kernel module이 communication slot 요청Shared-memory segment의 indexed buffer 대기Slot 확보 시 user-space service와 통신slot_timeout_secs가 지나면 wait 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이라는 범위만 명시한다.