@@ -216,5 +216,54 @@ public void DiskSpdParserVerifyWriteOnly()
216
216
MetricAssert . Exists ( metrics , "total latency 9-nines" , 159.270 , "ms" ) ;
217
217
MetricAssert . Exists ( metrics , "total latency max" , 159.270 , "ms" ) ;
218
218
}
219
+
220
+ [ Test ]
221
+ public void DiskSpdParserVerifyForCoreCountGreaterThan64WhichAddsProcessorGrouping ( )
222
+ {
223
+ string workingDirectory = Path . GetDirectoryName ( Assembly . GetExecutingAssembly ( ) . Location ) ;
224
+ string outputPath = Path . Combine ( workingDirectory , @"Examples\DiskSpd\Read8k.txt" ) ;
225
+ this . rawText = File . ReadAllText ( outputPath ) ;
226
+ this . testParser = new DiskSpdMetricsParser ( this . rawText ) ;
227
+
228
+ IList < Metric > metrics = this . testParser . Parse ( ) ;
229
+
230
+ // cpu metrics
231
+ MetricAssert . Exists ( metrics , "cpu usage 0" , 92.79 , "percentage" ) ;
232
+ MetricAssert . Exists ( metrics , "cpu usage 1" , 90.26 , "percentage" ) ;
233
+ MetricAssert . Exists ( metrics , "cpu usage average" , 39.69 , "percentage" ) ;
234
+ MetricAssert . Exists ( metrics , "cpu user 0" , 0.44 , "percentage" ) ;
235
+ MetricAssert . Exists ( metrics , "cpu user 1" , 0.36 , "percentage" ) ;
236
+ MetricAssert . Exists ( metrics , "cpu user average" , 0.27 , "percentage" ) ;
237
+
238
+ // Total
239
+ MetricAssert . Exists ( metrics , "total bytes 0" , 1927421952 , "bytes" ) ;
240
+ MetricAssert . Exists ( metrics , "total bytes 1" , 2276425728 , "bytes" ) ;
241
+ MetricAssert . Exists ( metrics , "total bytes total" , 162301329408 , "bytes" ) ;
242
+ MetricAssert . Exists ( metrics , "total io operations 0" , 235281 , "I/Os" ) ;
243
+ MetricAssert . Exists ( metrics , "total io operations 1" , 277884 , "I/Os" ) ;
244
+ MetricAssert . Exists ( metrics , "total throughput 0" , 30.63 , "MiB/s" ) ;
245
+ MetricAssert . Exists ( metrics , "total throughput 1" , 36.17 , "MiB/s" ) ;
246
+ MetricAssert . Exists ( metrics , "total throughput total" , 2579.05 , "MiB/s" ) ;
247
+
248
+ // Read
249
+ MetricAssert . Exists ( metrics , "read bytes 0" , 0 , "bytes" ) ;
250
+ MetricAssert . Exists ( metrics , "read bytes 1" , 0 , "bytes" ) ;
251
+ MetricAssert . Exists ( metrics , "read bytes total" , 0 , "bytes" ) ;
252
+
253
+ // Write
254
+ MetricAssert . Exists ( metrics , "write bytes 0" , 1927421952 , "bytes" ) ;
255
+ MetricAssert . Exists ( metrics , "write bytes 1" , 2276425728 , "bytes" ) ;
256
+ MetricAssert . Exists ( metrics , "write bytes total" , 162301329408 , "bytes" ) ;
257
+ MetricAssert . Exists ( metrics , "write io operations 0" , 235281 , "I/Os" ) ;
258
+ MetricAssert . Exists ( metrics , "write io operations 1" , 277884 , "I/Os" ) ;
259
+ MetricAssert . Exists ( metrics , "write io operations total" , 19812174 , "I/Os" ) ;
260
+
261
+ // latency
262
+ MetricAssert . Exists ( metrics , "total latency min" , 0.015 , "ms" ) ;
263
+ MetricAssert . Exists ( metrics , "total latency 25th" , 0.879 , "ms" ) ;
264
+ MetricAssert . Exists ( metrics , "total latency 50th" , 1.52 , "ms" ) ;
265
+ MetricAssert . Exists ( metrics , "total latency 75th" , 2.819 , "ms" ) ;
266
+ MetricAssert . Exists ( metrics , "total latency 90th" , 7.472 , "ms" ) ;
267
+ }
219
268
}
220
269
}
0 commit comments