|
1 | 1 | # Sanity Tests
|
2 | 2 |
|
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. |
5 | 5 |
|
6 | 6 | ```
|
7 |
| -./sanity_test -o <output_folder> |
| 7 | +./sanity_test.py -o <unique_output_folder> |
8 | 8 | #Sample results, actual results may vary
|
9 | 9 | Running baseline example workload test
|
10 | 10 | iteration = 0
|
11 | 11 | iteration = 1
|
12 | 12 | iteration = 2
|
13 |
| -output/baseline/analyze.out |
| 13 | +out/baseline/analyze.out |
14 | 14 | Maximum active+swap memory = 8.018 GiB
|
15 | 15 |
|
16 | 16 | Max swap memory = 0.0 GiB
|
17 | 17 |
|
18 |
| - 333.751453340 seconds time elapsed |
| 18 | + 69.724181134 seconds time elapsed |
19 | 19 |
|
20 |
| -output.1/baseline/analyze.out |
| 20 | +out.1/baseline/analyze.out |
21 | 21 | Maximum active+swap memory = 8.018 GiB
|
| 22 | +
|
22 | 23 | Max swap memory = 0.0 GiB
|
23 | 24 |
|
24 |
| - 336.614511911 seconds time elapsed |
| 25 | + 68.730653563 seconds time elapsed |
25 | 26 |
|
26 |
| -output.2/baseline/analyze.out |
| 27 | +out.2/baseline/analyze.out |
27 | 28 | Maximum active+swap memory = 8.018 GiB
|
28 | 29 |
|
29 | 30 | Max swap memory = 0.0 GiB
|
30 | 31 |
|
31 |
| - 333.530823142 seconds time elapsed |
| 32 | + 69.448344388 seconds time elapsed |
32 | 33 |
|
33 | 34 | 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 |
36 | 36 | Running static squeezer with 10% memory limit
|
37 | 37 | iteration = 0
|
38 | 38 | iteration = 1
|
39 | 39 | 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 |
42 | 42 |
|
43 | 43 | Max swap memory = 1.6 GiB
|
44 | 44 |
|
45 |
| - 407.835192013 seconds time elapsed |
| 45 | + 102.502291517 seconds time elapsed |
46 | 46 |
|
47 |
| -output_static.1/staticsweep/memory_10/analyze.out |
| 47 | +out_static.1/staticsweep/memory_10/analyze.out |
48 | 48 | Maximum active+swap memory = 7.217 GiB
|
49 | 49 |
|
50 | 50 | Max swap memory = 1.6 GiB
|
51 | 51 |
|
52 |
| - 408.547875633 seconds time elapsed |
| 52 | + 103.233065381 seconds time elapsed |
53 | 53 |
|
54 |
| -output_static.2/staticsweep/memory_10/analyze.out |
| 54 | +out_static.2/staticsweep/memory_10/analyze.out |
55 | 55 | Maximum active+swap memory = 7.216 GiB
|
56 | 56 |
|
57 | 57 | Max swap memory = 1.6 GiB
|
58 | 58 |
|
59 |
| - 411.597475507 seconds time elapsed |
| 59 | + 103.079867010 seconds time elapsed |
60 | 60 |
|
61 | 61 | Static max_mem is less than 1% limit of ref and test is passed
|
62 | 62 | 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 |
64 | 64 | Running dynamic squeezer
|
65 | 65 | iteration = 0
|
66 | 66 | iteration = 1
|
67 | 67 | iteration = 2
|
68 | 68 | Maximum active+swap memory = 8.017 GiB
|
69 | 69 |
|
70 |
| -Max swap memory = 4.3 GiB |
| 70 | +Max swap memory = 4.0 GiB |
71 | 71 |
|
72 | 72 | Maximum zram memory = 0.000019 GiB
|
73 | 73 |
|
74 |
| - 372.675095471 seconds time elapsed |
| 74 | + 84.444676912 seconds time elapsed |
75 | 75 |
|
76 |
| -Maximum active+swap memory = 8.017 GiB |
| 76 | +Maximum active+swap memory = 8.016 GiB |
77 | 77 |
|
78 |
| -Max swap memory = 4.3 GiB |
| 78 | +Max swap memory = 4.0 GiB |
79 | 79 |
|
80 | 80 | Maximum zram memory = 0.000019 GiB
|
81 | 81 |
|
82 |
| - 369.093067576 seconds time elapsed |
| 82 | + 84.679450599 seconds time elapsed |
83 | 83 |
|
84 |
| -Maximum active+swap memory = 8.017 GiB |
| 84 | +Maximum active+swap memory = 8.016 GiB |
85 | 85 |
|
86 |
| -Max swap memory = 4.4 GiB |
| 86 | +Max swap memory = 4.5 GiB |
87 | 87 |
|
88 |
| -Maximum zram memory = 0.000023 GiB |
| 88 | +Maximum zram memory = 0.000019 GiB |
89 | 89 |
|
90 |
| - 365.854511618 seconds time elapsed |
| 90 | + 86.858831169 seconds time elapsed |
91 | 91 |
|
92 | 92 | Dynamic max_mem is less than 1% limit of ref and test is passed
|
93 | 93 | 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 |
96 | 96 |
|
97 | 97 | ```
|
98 | 98 |
|
0 commit comments