File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ services:
3535 - ${DATA_PATH} /freeradius /profiling-ldap /proto_load_config.env: /etc /freeradius /proto_load_config.env
3636 - ${DATA_PATH} /freeradius /profiling-ldap /load-generator-packets /: /etc /freeradius /load-generator-packets /
3737 - ${DATA_PATH} /freeradius /profiling-ldap /stats /load-generator-stats.csv: /etc /freeradius /stats /load-generator-stats.csv
38+ # Profiling scripts
39+ - ${DATA_PATH} /start_valgrind_profiling.sh: /etc /freeradius /start_valgrind_profiling.sh
3840 # Profiling results directory
3941 - ${DATA_PATH} /prof-results /: /etc /prof-results /
4042 # Listener directory
@@ -49,3 +51,4 @@ services:
4951 # Start the server after configuring environment variables from test case ' s template.yml.j2 file.
5052 sleep infinity
5153 <<: *id001
54+
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ services:
2323 - ${DATA_PATH}/freeradius/profiling-server-pap-auth/proto_load_config.env:/etc/freeradius/proto_load_config.env
2424 - ${DATA_PATH}/freeradius/profiling-server-pap-auth/load-generator-packets/:/etc/freeradius/load-generator-packets/
2525 - ${DATA_PATH}/freeradius/profiling-server-pap-auth/stats/load-generator-stats.csv:/etc/freeradius/stats/load-generator-stats.csv
26+ # Profiling scripts
27+ - ${DATA_PATH}/start_valgrind_profiling.sh:/etc/freeradius/start_valgrind_profiling.sh
2628 # Profiling results directory
2729 - ${DATA_PATH}/prof-results/:/etc/prof-results/
2830 # Listener directory
Original file line number Diff line number Diff line change @@ -33,18 +33,6 @@ states:
3333 # No profiling
3434 #exec freeradius -f -l stdout
3535
36- # Valgrind/callgrind profiling
37- #exec valgrind \
38- # --tool=callgrind \
39- # --callgrind-out-file=/etc/prof-results/callgrind.out.%p \
40- # --trace-children=yes \
41- # --separate-threads=yes \
42- # --dump-instr=yes \
43- # --collect-jumps=yes \
44- # --cache-sim=yes \
45- # --branch-sim=yes \
46- # freeradius -f -l stdout -S resources.talloc_skip_cleanup=yes
47-
4836 source /etc/freeradius/start_valgrind_profiling.sh
4937
5038 detach: true
@@ -66,8 +54,8 @@ states:
6654 - execute_command:
6755 command: |
6856 # Generate report from non-empty callgrind.out.* output files
69- # cd /etc/prof-results
70- # callgrind_annotate $(find . -name "callgrind.out.*" -size +0c | sort) > callgrind_report.txt
57+ cd /etc/prof-results
58+ callgrind_annotate $(find . -name "callgrind.out.*" -size +0c | sort) > callgrind_report.txt
7159 verify:
7260 timeout: {{ test_state2_verify_timeout }}
7361 trigger_mode: unordered
Original file line number Diff line number Diff line change 44
55# Load generator configuration
66loadgen :
7- start_pps : 500
8- max_pps : 1000
9- duration : 5
10- step : 500
7+ start_pps : 100
8+ max_pps : 100
9+ duration : 60
10+ step : 100
1111 parallel : 1
1212 max_backlog : 1000
1313 repeat : " no"
1414
1515# Test framework
16- test_timeout : 50
17- test_verify_timeout : 40
16+ test_timeout : 165
17+ test_state1_verify_timeout : 130
18+ test_state2_verify_timeout : 5
Original file line number Diff line number Diff line change @@ -33,21 +33,17 @@ states:
3333 # No profiling
3434 #exec freeradius -f -l stdout
3535
36- # Valgrind/callgrind profiling
37- exec valgrind \
38- --tool=callgrind \
39- --callgrind-out-file=/etc/prof-results/callgrind.out.%p \
40- --trace-children=yes \
41- --separate-threads=yes \
42- --dump-instr=yes \
43- --collect-jumps=yes \
44- --cache-sim=yes \
45- --branch-sim=yes \
46- freeradius -f -l stdout -S resources.talloc_skip_cleanup=yes
36+ source /etc/freeradius/start_valgrind_profiling.sh
4737
4838 detach: true
39+ - execute_command:
40+ command: |
41+ # Block until valgrind finishes writing all profiling data.
42+ # start_valgrind_profiling.sh touches this file after `wait` returns.
43+ until [ -f /etc/prof-results/.profiling_complete ]; do sleep 5; done
44+ rm -f /etc/prof-results/.profiling_complete
4945 verify:
50- timeout: {{ test_verify_timeout }}
46+ timeout: {{ test_state1_verify_timeout }}
5147 trigger_mode: unordered
5248 state_2:
5349 description: >
@@ -61,5 +57,5 @@ states:
6157 cd /etc/prof-results
6258 callgrind_annotate $(find . -name "callgrind.out.*" -size +0c | sort) > callgrind_report.txt
6359 verify:
64- timeout: 5
60+ timeout: {{ test_state2_verify_timeout }}
6561 trigger_mode: unordered
Original file line number Diff line number Diff line change 44
55# Load generator configuration
66loadgen :
7- start_pps : 500
8- max_pps : 1000
9- duration : 5
10- step : 500
7+ start_pps : 100
8+ max_pps : 100
9+ duration : 60
10+ step : 100
1111 parallel : 1
1212 max_backlog : 1000
1313 repeat : " no"
1414
1515# Test framework
16- test_timeout : 50
17- test_verify_timeout : 40
16+ test_timeout : 165
17+ test_state1_verify_timeout : 130
18+ test_state2_verify_timeout : 5
Original file line number Diff line number Diff line change @@ -33,21 +33,17 @@ states:
3333 # No profiling
3434 #exec freeradius -f -l stdout
3535
36- # Valgrind/callgrind profiling
37- exec valgrind \
38- --tool=callgrind \
39- --callgrind-out-file=/etc/prof-results/callgrind.out.%p \
40- --trace-children=yes \
41- --separate-threads=yes \
42- --dump-instr=yes \
43- --collect-jumps=yes \
44- --cache-sim=yes \
45- --branch-sim=yes \
46- freeradius -f -l stdout -S resources.talloc_skip_cleanup=yes
36+ source /etc/freeradius/start_valgrind_profiling.sh
4737
4838 detach: true
39+ - execute_command:
40+ command: |
41+ # Block until valgrind finishes writing all profiling data.
42+ # start_valgrind_profiling.sh touches this file after `wait` returns.
43+ until [ -f /etc/prof-results/.profiling_complete ]; do sleep 5; done
44+ rm -f /etc/prof-results/.profiling_complete
4945 verify:
50- timeout: {{ test_verify_timeout }}
46+ timeout: {{ test_state1_verify_timeout }}
5147 trigger_mode: unordered
5248 state_2:
5349 description: >
@@ -61,5 +57,5 @@ states:
6157 cd /etc/prof-results
6258 callgrind_annotate $(find . -name "callgrind.out.*" -size +0c | sort) > callgrind_report.txt
6359 verify:
64- timeout: 5
60+ timeout: {{ test_state2_verify_timeout }}
6561 trigger_mode: unordered
You can’t perform that action at this time.
0 commit comments