You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
avg(JSONExtractFloat(json_data, 'cpu','max')) as cpu_avg,
10
11
avg(JSONExtractFloat(json_data, 'memory','max')) as memory_avg,
11
12
avg(arrayAvg(arrayMap(x->JSONExtractFloat(x,'util_percent','max'),JSONExtractArrayRaw(json_data,'gpu_usage')))) as gpu_avg,
12
-
avg(arrayAvg(arrayMap(x->JSONExtractFloat(x,'mem_util_percent','max'),JSONExtractArrayRaw(json_data,'gpu_usage')))) as gpu_mem_avg,
13
+
avg(arrayAvg(arrayMap(x->JSONExtractFloat(x,'mem_util_percent','max'),JSONExtractArrayRaw(json_data,'gpu_usage')))) as gpu_mem_bandwidth_avg,
14
+
avg(arrayAvg(arrayFilter(x -> x IS NOT NULL,arrayMap(x->JSONExtractFloat(x,'allocated_mem_percent','max'),JSONExtractArrayRaw(json_data,'gpu_usage'))))) as gpu_allocated_mem_avg,
13
15
quantile(0.9)(JSONExtractFloat(json_data, 'cpu','max')) AS cpu_p90,
14
16
quantile(0.9)(JSONExtractFloat(json_data, 'memory','max')) AS memory_p90,
15
17
quantile(0.9)(arrayMax(arrayMap(x->JSONExtractFloat(x,'util_percent','max'),JSONExtractArrayRaw(json_data,'gpu_usage')))) as gpu_p90,
16
-
quantile(0.9)(arrayMax(arrayMap(x->JSONExtractFloat(x,'mem_util_percent','max'),JSONExtractArrayRaw(json_data,'gpu_usage')))) as gpu_mem_p90
18
+
quantile(0.9)(arrayMax(arrayMap(x->JSONExtractFloat(x,'mem_util_percent','max'),JSONExtractArrayRaw(json_data,'gpu_usage')))) as gpu_mem_bandwidth_p90,
19
+
quantile(0.9)(arrayMax(arrayFilter(x -> x IS NOT NULL,arrayMap(x->JSONExtractFloat(x,'allocated_mem_percent','max'),JSONExtractArrayRaw(json_data,'gpu_usage'))))) as gpu_allocated_mem_p90
17
20
FROM
18
21
misc.oss_ci_time_series
19
22
WHERE
@@ -39,12 +42,15 @@ SELECT
39
42
a.memory_avg,
40
43
a.gpu_max,
41
44
a.gpu_avg,
42
-
a.gpu_mem_max,
43
-
a.gpu_mem_avg,
45
+
a.gpu_mem_bandwidth_max,
46
+
a.gpu_mem_bandwidth_avg,
44
47
a.cpu_p90,
45
48
a.memory_p90,
46
-
a.gpu_mem_p90,
47
-
a.gpu_p90
49
+
a.gpu_mem_bandwidth_p90,
50
+
a.gpu_p90,
51
+
a.gpu_allocated_mem_max,
52
+
a.gpu_allocated_mem_avg,
53
+
a.gpu_allocated_mem_p90
48
54
FROM
49
55
misc.oss_ci_utilization_metadata o
50
56
JOIN aggregate_data a ONa.job_id=o.job_idANDa.run_attempt=o.run_attempt
0 commit comments