Skip to content

Commit 25f47e4

Browse files
committed
Create separate sub-window listing each MDT
Create a separate sub-window which lists each MDT, as already existed for OSTs. Like the existing OST sub-window, the MDT sub-window supports sorting, collapsing MDTs to MDSs, and scrolling when there are more rows to display than rows available on the terminal. For scrolling and selecting the sort column, the user switches between the MDT and OST sub-windows via 'z' or 'Z'. This, and the new keys introduced for selecting an MDT sort column, are listed in the help display. If room is available in the terminal window, the summary as well as rows for each MDT and OST are displayed. Otherwise, the MDT sub-window and OST sub-window sizes are adjusted to fit in the available space. The MDT and OST sections each occupy a number of rows, respectively, proportional to the MDT and OST counts. Updated manpage to reflect new sub-window and keys.
1 parent adc9f65 commit 25f47e4

File tree

2 files changed

+929
-372
lines changed

2 files changed

+929
-372
lines changed

utils/ltop.1.in

Lines changed: 87 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,38 @@ Log raw data from the session to FILE, so it can be played back with \fI\-p\fR.
2424
.I "-p,--play FILE"
2525
Play back raw data from FILE recorded with \fI\-r\fR or with the
2626
interactive \fIR\fR command.
27+
.SH "MDT FIELD DESCRIPTIONS"
28+
.TP
29+
\fIMDT\fR
30+
The mdt index, in hex. In the compressed view (c below), the number of MDT's
31+
on the MDS is displayed in parenthesis.
32+
.TP
33+
\fIMDS\fR
34+
The MDS hostname.
35+
.TP
36+
\fIOpen\fR
37+
The number of file opens per second.
38+
.TP
39+
\fIClose\fR
40+
The number of file closes per second.
41+
.TP
42+
\fIGetattr\fR
43+
The number of file or directory getattrs per second.
44+
.TP
45+
\fISetattr\fR
46+
The number of file or directory setattrs per second.
47+
.TP
48+
\fIUnlink\fR
49+
The number of file unlinks per second.
50+
.TP
51+
\fIMkdir\fR
52+
The number of mkdirs per second.
53+
.TP
54+
\fIRmdir\fR
55+
The number of rmdirs per second.
56+
.TP
57+
\fIRename\fR
58+
The number of files or directories renamed per second.
2759
.SH "OST FIELD DESCRIPTIONS"
2860
.TP
2961
\fIOST\fR
@@ -66,14 +98,15 @@ The lock grant rate.
6698
\fILCR\fR
6799
The lock cancellation rate.
68100
.TP
101+
\fI%spc
102+
The percentage of OST storage space in use.
103+
.SH "COMMON FIELD DESCRIPTIONS"
104+
.TP
69105
\fI%cpu
70-
The percentage of cpu in use on the OSS.
106+
The percentage of cpu in use on the server.
71107
.TP
72108
\fI%mem
73-
The percentage of memory in use on the OSS.
74-
.TP
75-
\fI%spc
76-
The percentage of OST storage space in use.
109+
The percentage of memory in use on the server.
77110
.SH "INTERACTIVE COMMANDS"
78111
.B ltop
79112
responds to the following single character commands interactively:
@@ -84,61 +117,89 @@ Terminate the
84117
program.
85118
.TP
86119
\fIPageDown\fR
87-
Page down through OST information if it won't fit on screen.
120+
Page down through target information if it won't fit on screen.
88121
.TP
89122
\fIPageUp\fR
90-
Page up through OST information if it won't fit on screen.
123+
Page up through target information if it won't fit on screen.
91124
.TP
92125
\fIc\fR
93-
Toggle compressed OST view. The default mode is to display one line per OST.
94-
In compressed mode, one line per OSS is displayed. Numerical data is summed
95-
in the OSS view except for the export count where the minimum export count
96-
of any OST is displayed. Also if any of the OST's is in recovery, recovery
97-
information for that OST will be shown in the OSS view.
126+
Toggle compressed target view. The default mode is to display one line per
127+
target. In compressed mode, one line per server is displayed. Numerical data
128+
is summed in the server view except for the export count where the minimum
129+
export count of any target is displayed. Also if any of the target's is in
130+
recovery, recovery information for that target will be shown in the server
131+
view.
98132
.TP
99133
\fI>\fR
100-
Sort OST/OSS view by the next field to the right, wrapping around at the end.
101-
Initially, entries are sorted by the leftmost field, OST index.
134+
Sort MDT/OST window by the next field to the right, wrapping around at the end.
135+
Initially, entries are sorted by the leftmost field, OST/MDT index.
102136
.TP
103137
\fI<\fR
104-
Sort OST/OSS view by the next field to the left, wrapping around at the end.
105-
Initially, entries are sorted by the leftmost field, OST index.
138+
Sort MDT/OST window by the next field to the left, wrapping around at the end.
139+
Initially, entries are sorted by the leftmost field, OST/MDT index.
140+
.TP
141+
\fIt\fR
142+
Sort by target index, ascending order.
106143
.TP
107144
\fIs\fR
108-
Sort by OSS name, ascending order.
145+
Sort by server name, ascending order.
109146
.TP
110147
\fIx\fR
111148
Sort by export count, ascending order.
112149
.TP
113150
\fIC\fR
114-
Sort by (re-)connect rate, descending order.
151+
Sort by (re-)connect rate, descending order (OST).
115152
.TP
116153
\fIr\fR
117-
Sort by read bandwidth, descending order.
154+
Sort by read bandwidth, descending order (OST).
118155
.TP
119156
\fIw\fR
120-
Sort by write bandwidth, descending order.
157+
Sort by write bandwidth, descending order (OST).
121158
.TP
122159
\fIi\fR
123-
Sort by IOPS, descending order.
160+
Sort by IOPS, descending order (OST).
124161
.TP
125162
\fIl\fR
126-
Sort by lock count, descending order.
163+
Sort by lock count, descending order (OST).
127164
.TP
128165
\fIg\fR
129-
Sort by lock grant rate, descending order.
166+
Sort by lock grant rate, descending order (OST).
130167
.TP
131168
\fIL\fR
132-
Sort by lock cancellation rate, descending order.
169+
Sort by lock cancellation rate, descending order (OST).
170+
.TP
171+
\fIo\fR
172+
Sort by file open rate, descending order (MDT).
173+
.TP
174+
\fIC\fR
175+
Sort by file close rate, descending order (MDT).
176+
.TP
177+
\fIg\fR
178+
Sort by getattr rate, descending order (MDT).
179+
.TP
180+
\fIS\fR
181+
Sort by setattr rate, descending order (MDT).
182+
.TP
183+
\fIU\fR
184+
Sort by file unlink rate, descending order (MDT).
185+
.TP
186+
\fIM\fR
187+
Sort by mkdir rate, descending order (MDT).
188+
.TP
189+
\fIr\fR
190+
Sort by rmdir rate, descending order (MDT).
191+
.TP
192+
\fIR\fR
193+
Sort by rename rate, descending order (MDT).
133194
.TP
134195
\fIu\fR
135196
Sort by percent cpu utilization, descending order.
136197
.TP
137198
\fIm\fR
138-
Sort by percent memory utilization , descending order.
199+
Sort by percent memory utilization, descending order.
139200
.TP
140201
\fIS\fR
141-
Sort by percent disk space utilization , descending order.
202+
Sort by percent disk space utilization, descending order (OST).
142203
.TP
143204
\fIDOWN\fR
144205
Move cursor down.

0 commit comments

Comments
 (0)