1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include "include/common_fwd.h"
#include "common/perf_counters.h"
#include "common/perf_counters_key.h"
enum {
l_osd_first = 10000,
l_osd_op_wip,
l_osd_op,
l_osd_op_inb,
l_osd_op_outb,
l_osd_op_lat,
l_osd_op_process_lat,
l_osd_op_prepare_lat,
l_osd_op_r,
l_osd_op_r_outb,
l_osd_op_r_lat,
l_osd_op_r_lat_outb_hist,
l_osd_op_r_process_lat,
l_osd_op_r_prepare_lat,
l_osd_op_w,
l_osd_op_w_inb,
l_osd_op_w_lat,
l_osd_op_w_lat_inb_hist,
l_osd_op_w_process_lat,
l_osd_op_w_prepare_lat,
l_osd_op_rw,
l_osd_op_rw_inb,
l_osd_op_rw_outb,
l_osd_op_rw_lat,
l_osd_op_rw_lat_inb_hist,
l_osd_op_rw_lat_outb_hist,
l_osd_op_rw_process_lat,
l_osd_op_rw_prepare_lat,
l_osd_op_delayed_unreadable,
l_osd_op_delayed_degraded,
l_osd_op_before_queue_op_lat,
l_osd_op_before_dequeue_op_lat,
l_osd_sop,
l_osd_sop_inb,
l_osd_sop_lat,
l_osd_sop_w,
l_osd_sop_w_inb,
l_osd_sop_w_lat,
l_osd_sop_pull,
l_osd_sop_pull_lat,
l_osd_sop_push,
l_osd_sop_push_inb,
l_osd_sop_push_lat,
l_osd_pull,
l_osd_push,
l_osd_push_outb,
l_osd_rop,
l_osd_rbytes,
l_osd_recovery_push_queue_lat,
l_osd_recovery_push_reply_queue_lat,
l_osd_recovery_pull_queue_lat,
l_osd_recovery_backfill_queue_lat,
l_osd_recovery_backfill_remove_queue_lat,
l_osd_recovery_scan_queue_lat,
l_osd_recovery_queue_lat,
l_osd_recovery_context_queue_lat,
l_osd_loadavg,
l_osd_cached_crc,
l_osd_cached_crc_adjusted,
l_osd_missed_crc,
l_osd_pg,
l_osd_pg_primary,
l_osd_pg_replica,
l_osd_pg_stray,
l_osd_pg_removing,
l_osd_hb_to,
l_osd_map,
l_osd_mape,
l_osd_mape_dup,
l_osd_waiting_for_map,
l_osd_map_cache_hit,
l_osd_map_cache_miss,
l_osd_map_cache_miss_low,
l_osd_map_cache_miss_low_avg,
l_osd_map_bl_cache_hit,
l_osd_map_bl_cache_miss,
l_osd_stat_bytes,
l_osd_stat_bytes_used,
l_osd_stat_bytes_avail,
l_osd_copyfrom,
l_osd_tier_promote,
l_osd_tier_flush,
l_osd_tier_flush_fail,
l_osd_tier_try_flush,
l_osd_tier_try_flush_fail,
l_osd_tier_evict,
l_osd_tier_whiteout,
l_osd_tier_dirty,
l_osd_tier_clean,
l_osd_tier_delay,
l_osd_tier_proxy_read,
l_osd_tier_proxy_write,
l_osd_agent_wake,
l_osd_agent_skip,
l_osd_agent_flush,
l_osd_agent_evict,
l_osd_object_ctx_cache_hit,
l_osd_object_ctx_cache_total,
l_osd_op_cache_hit,
l_osd_tier_flush_lat,
l_osd_tier_promote_lat,
l_osd_tier_r_lat,
l_osd_pg_info,
l_osd_pg_fastinfo,
l_osd_pg_biginfo,
// scrubber related. Here, as the rest of the scrub counters
// are labeled, and histograms do not fully support labels.
l_osd_scrub_reservation_dur_hist,
l_osd_watch_timeouts,
l_osd_last,
};
PerfCounters *build_osd_logger(CephContext *cct);
// PeeringState perf counters
enum {
rs_first = 20000,
rs_initial_latency,
rs_started_latency,
rs_reset_latency,
rs_start_latency,
rs_primary_latency,
rs_peering_latency,
rs_backfilling_latency,
rs_waitremotebackfillreserved_latency,
rs_waitlocalbackfillreserved_latency,
rs_notbackfilling_latency,
rs_repnotrecovering_latency,
rs_repwaitrecoveryreserved_latency,
rs_repwaitbackfillreserved_latency,
rs_reprecovering_latency,
rs_activating_latency,
rs_waitlocalrecoveryreserved_latency,
rs_waitremoterecoveryreserved_latency,
rs_recovering_latency,
rs_recovered_latency,
rs_clean_latency,
rs_active_latency,
rs_replicaactive_latency,
rs_stray_latency,
rs_getinfo_latency,
rs_getlog_latency,
rs_waitactingchange_latency,
rs_incomplete_latency,
rs_down_latency,
rs_getmissing_latency,
rs_waitupthru_latency,
rs_notrecovering_latency,
rs_last,
};
PerfCounters *build_recoverystate_perf(CephContext *cct);
// Scrubber perf counters. There are four sets (shallow vs. deep,
// EC vs. replicated) of these counters:
enum {
scrbcnt_first = 20500,
// -- basic statistics --
/// The number of times we started a scrub
scrbcnt_started,
/// # scrubs that got past replicas reservation
scrbcnt_active_started,
/// # successful scrubs
scrbcnt_successful,
/// time to complete a successful scrub
scrbcnt_successful_elapsed,
/// # failed scrubs
scrbcnt_failed,
/// time for a scrub to fail
scrbcnt_failed_elapsed,
// -- interruptions of various types
/// # preemptions
scrbcnt_preempted,
/// # chunks selection performed
scrbcnt_chunks_selected,
/// # busy chunks
scrbcnt_chunks_busy,
/// # waiting on object events
scrbcnt_blocked,
/// # write blocked by the scrub
scrbcnt_write_blocked,
// -- replicas reservation
/// # successfully completed reservation steps
scrbcnt_resrv_success,
/// time to complete a successful replicas reservation
scrbcnt_resrv_successful_elapsed,
/// # failed attempt to reserve replicas due to an abort
scrbcnt_resrv_aborted,
/// # reservation failed due to a 'rejected' response
scrbcnt_resrv_rejected,
/// # reservation skipped for high-priority scrubs
scrbcnt_resrv_skipped,
/// time for a replicas reservation process to fail
scrbcnt_resrv_failed_elapsed,
/// # number of replicas
scrbcnt_resrv_replicas_num,
scrbcnt_last,
};
PerfCounters *build_scrub_labeled_perf(CephContext *cct, std::string label);
|