← Documents Documentation/ABI/testing/procfs-diskstats GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

/proc/diskstats block I/O statistics ABI

Block device별 read·write I/O 14 fields와 Linux 4.18 discard 4 fields, Linux 5.5 flush 2 fields를 번호·단위·version 순서대로 설명합니다.

Source pathDocumentation/ABI/testing/procfs-diskstats
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

Base 14 block-I/O fields

procfs-diskstats:1-24

/proc/diskstats의 각 line은 major·minor·name 뒤에 completed·merged reads/writes, sectors, elapsed milliseconds, in-progress I/O와 total·weighted time을 담습니다.

Discard·flush field extensions

procfs-diskstats:26-43

Kernel 4.18+는 discard tracking fields 15..18을, 5.5+는 flush request fields 19..20을 뒤에 추가합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /proc/diskstats
2 Date: February 2008
3 Contact: Jerome Marchand <[email protected]>
4 Description:
5 The /proc/diskstats file displays the I/O statistics
6 of block devices. Each line contains the following 14
7 fields:
8
9 == ===================================
10 1 major number
11 2 minor number
12 3 device name
13 4 reads completed successfully
14 5 reads merged
15 6 sectors read
16 7 time spent reading (ms)
17 8 writes completed
18 9 writes merged
19 10 sectors written
20 11 time spent writing (ms)
21 12 I/Os currently in progress
22 13 time spent doing I/Os (ms)
23 14 weighted time spent doing I/Os (ms)
24 == ===================================
25
26 Kernel 4.18+ appends four more fields for discard
27 tracking putting the total at 18:
28
29 == ===================================
30 15 discards completed successfully
31 16 discards merged
32 17 sectors discarded
33 18 time spent discarding
34 == ===================================
35
36 Kernel 5.5+ appends two more fields for flush requests:
37
38 == =====================================
39 19 flush requests completed successfully
40 20 time spent flushing
41 == =====================================
42
43 For more details refer to Documentation/admin-guide/iostats.rst
44

3. 한국어 전문 번역

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

/proc/diskstats 기본 14 fields

1-24
항목내용
What/proc/diskstats
Date2008년 2월
ContactJerome Marchand <[email protected]>
Description/proc/diskstats file은 block device의 I/O statistics를 표시합니다. 각 line은 다음 14 fields를 포함합니다.
Field전문 번역
1Major number
2Minor number
3Device name
4성공적으로 완료된 read 수
5Merge된 read 수
6읽은 sector 수
7Read에 소비한 시간(ms)
8완료된 write 수
9Merge된 write 수
10쓴 sector 수
11Write에 소비한 시간(ms)
12현재 진행 중인 I/O 수
13I/O 수행에 소비한 시간(ms)
14I/O 수행에 소비한 weighted time(ms)

Discard와 flush 확장 fields

26-43

Kernel 4.18+는 discard tracking을 위한 field 네 개를 더 붙여 전체 18 fields로 만듭니다.

Field전문 번역
15성공적으로 완료된 discard 수
16Merge된 discard 수
17Discard한 sector 수
18Discard에 소비한 시간

Kernel 5.5+는 flush request를 위한 field 두 개를 더 붙입니다.

Field전문 번역
19성공적으로 완료된 flush request 수
20Flush에 소비한 시간

자세한 내용은 Documentation/admin-guide/iostats.rst를 참조하십시오.

/proc/diskstats record 확장
Base ABI fields 1 through 14Device identityRead and write statisticsIn-progress and weighted I/O time
Kernel 4.18 and laterAppend fields 15 through 18Discard completed, merged, sectors, time
Kernel 5.5 and laterAppend fields 19 and 20Flush completed and time

기존 field 순서를 바꾸지 않고 kernel version이 올라가며 discard와 flush fields를 record 뒤에 append했다.