Skip to content

Commit 3d395ef

Browse files
committed
Updated the sanity Readme
1 parent 58f86f1 commit 3d395ef

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

docs/sanity.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,98 @@
11
# Sanity Tests
22

3-
This section provides details on running Sanity checks before code changes are submitted. This checks the
4-
sure the basic functionality of the memory-usage-analyzer.
3+
This section provides details on running Sanity checks before code changes are submitted. This checks
4+
the basic functionality of the memory-usage-analyzer.
55

66
```
7-
./sanity_test -o <output_folder>
7+
./sanity_test.py -o <unique_output_folder>
88
#Sample results, actual results may vary
99
Running baseline example workload test
1010
iteration = 0
1111
iteration = 1
1212
iteration = 2
13-
output/baseline/analyze.out
13+
out/baseline/analyze.out
1414
Maximum active+swap memory = 8.018 GiB
1515
1616
Max swap memory = 0.0 GiB
1717
18-
333.751453340 seconds time elapsed
18+
69.724181134 seconds time elapsed
1919
20-
output.1/baseline/analyze.out
20+
out.1/baseline/analyze.out
2121
Maximum active+swap memory = 8.018 GiB
22+
2223
Max swap memory = 0.0 GiB
2324
24-
336.614511911 seconds time elapsed
25+
68.730653563 seconds time elapsed
2526
26-
output.2/baseline/analyze.out
27+
out.2/baseline/analyze.out
2728
Maximum active+swap memory = 8.018 GiB
2829
2930
Max swap memory = 0.0 GiB
3031
31-
333.530823142 seconds time elapsed
32+
69.448344388 seconds time elapsed
3233
3334
Baseline max_mem is less than 1% limit of ref and test is passed
34-
Baseline avg_exec_time = 334.07142835766666
35-
35+
Baseline avg_exec_time = 69.301059695
3636
Running static squeezer with 10% memory limit
3737
iteration = 0
3838
iteration = 1
3939
iteration = 2
40-
output_static/staticsweep/memory_10/analyze.out
41-
Maximum active+swap memory = 7.217 GiB
40+
out_static/staticsweep/memory_10/analyze.out
41+
Maximum active+swap memory = 7.216 GiB
4242
4343
Max swap memory = 1.6 GiB
4444
45-
407.835192013 seconds time elapsed
45+
102.502291517 seconds time elapsed
4646
47-
output_static.1/staticsweep/memory_10/analyze.out
47+
out_static.1/staticsweep/memory_10/analyze.out
4848
Maximum active+swap memory = 7.217 GiB
4949
5050
Max swap memory = 1.6 GiB
5151
52-
408.547875633 seconds time elapsed
52+
103.233065381 seconds time elapsed
5353
54-
output_static.2/staticsweep/memory_10/analyze.out
54+
out_static.2/staticsweep/memory_10/analyze.out
5555
Maximum active+swap memory = 7.216 GiB
5656
5757
Max swap memory = 1.6 GiB
5858
59-
411.597475507 seconds time elapsed
59+
103.079867010 seconds time elapsed
6060
6161
Static max_mem is less than 1% limit of ref and test is passed
6262
Static max_swap is less than 1% limit of ref and test is passed
63-
Static avg_exec_time = 409.3268477176666
63+
Static avg_exec_time = 102.93840796933334
6464
Running dynamic squeezer
6565
iteration = 0
6666
iteration = 1
6767
iteration = 2
6868
Maximum active+swap memory = 8.017 GiB
6969
70-
Max swap memory = 4.3 GiB
70+
Max swap memory = 4.0 GiB
7171
7272
Maximum zram memory = 0.000019 GiB
7373
74-
372.675095471 seconds time elapsed
74+
84.444676912 seconds time elapsed
7575
76-
Maximum active+swap memory = 8.017 GiB
76+
Maximum active+swap memory = 8.016 GiB
7777
78-
Max swap memory = 4.3 GiB
78+
Max swap memory = 4.0 GiB
7979
8080
Maximum zram memory = 0.000019 GiB
8181
82-
369.093067576 seconds time elapsed
82+
84.679450599 seconds time elapsed
8383
84-
Maximum active+swap memory = 8.017 GiB
84+
Maximum active+swap memory = 8.016 GiB
8585
86-
Max swap memory = 4.4 GiB
86+
Max swap memory = 4.5 GiB
8787
88-
Maximum zram memory = 0.000023 GiB
88+
Maximum zram memory = 0.000019 GiB
8989
90-
365.854511618 seconds time elapsed
90+
86.858831169 seconds time elapsed
9191
9292
Dynamic max_mem is less than 1% limit of ref and test is passed
9393
Dynamic max_swap is less than 5% limit of ref and test is passed
94-
Dynamic avg_max_zram is 2.0333333333333334e-05
95-
Dynamic avg_exec_time is 369.20755822166666
94+
Dynamic avg_max_zram is 1.9e-05
95+
Dynamic avg_exec_time is 85.32765289333334
9696
9797
```
9898

tests/example/ref_results/sanity_ref_results.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"max_static_mem": 7.216,
44
"max_swap": 1.6,
55
"max_mem_10%_limit":7.216,
6-
"max_dynamic_swap": 4.4
6+
"max_dynamic_swap": 4.2
77
}

tests/example/sanity_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def tests(arguments):
9191
validate(config, SANITYSCHEMA)
9292
for i in range(arguments.iterations):
9393
print("iteration =",i)
94-
cmd = f'memory_usage_analyzer.py -o {result_path} ./workload 8 60 10000'
94+
cmd = f'memory_usage_analyzer.py -o {result_path} ./workload 8 60 3000'
9595
shell(cmd)
9696
max_mem = []
9797
exec_time = []
@@ -154,7 +154,7 @@ def tests(arguments):
154154
for i in range(arguments.iterations):
155155
print("iteration =",i)
156156
cmd = f'memory_usage_analyzer.py -o {static_path} -r ./squeezerstatic_sanityconfig.json\
157-
./workload 8 60 10000'
157+
./workload 8 60 3000'
158158
shell(cmd)
159159
max_mem = []
160160
exec_time = []
@@ -222,7 +222,7 @@ def tests(arguments):
222222
for i in range(arguments.iterations):
223223
print("iteration =",i)
224224
cmd = f'memory_usage_analyzer.py -o {dynamic_path} -r\
225-
../../src/reclaimer/squeezerdynamicconfig.json ./workload 8 60 10000'
225+
../../src/reclaimer/squeezerdynamicconfig.json ./workload 8 60 3000'
226226
shell(cmd)
227227
max_mem = []
228228
exec_time = []

0 commit comments

Comments
 (0)