File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 36
36
37
37
choose_index (wl:: Workload ) = rand (1 : length (wl. jobs) - SLICE_SIZE)
38
38
39
+ # load all workloads into memory; about 3GB
40
+ workloads = [Workload (wl) for wl in WORKLOADS]
41
+
39
42
function RLBase. reset! (env:: ClusterEnv )
40
- workload = Workload ( rand (WORKLOADS) )
43
+ workload = rand (workloads )
41
44
env. workload = workload
42
45
index = choose_index (workload)
43
46
env. time = env. workload. jobs[1 ]. submit_time
@@ -54,7 +57,7 @@ function RLBase.reset!(env::ClusterEnv)
54
57
end
55
58
56
59
function ClusterEnv ()
57
- workload = Workload ( rand (WORKLOADS) )
60
+ workload = rand (workloads )
58
61
index = choose_index (workload)
59
62
time = workload. jobs[1 ]. submit_time
60
63
next_job_index = index + 1
Original file line number Diff line number Diff line change 33
33
; sjf_average_wait: 12791.929f0
34
34
; sjf_max_wait: 1631664
35
35
; sjf_utilization: 0.39929992f0
36
-
36
+
37
37
;
38
38
;
39
39
; Note: THIS IS A CLEANED VERSION OF THE LOG!
Original file line number Diff line number Diff line change 49
49
; sjf_average_wait: 17167.924f0
50
50
; sjf_max_wait: 7661244
51
51
; sjf_utilization: 0.26229486f0
52
-
52
+
53
53
;
54
54
; Note: THIS IS A CLEANED VERSION OF THE LOG!
55
55
; The filters used to produce it were
You can’t perform that action at this time.
0 commit comments