1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/script
Tim Beale c0fd6cd386 script: Add 'random-seed' option to traffic_replay
When using a traffic-model file to generate traffic, there is some
randomness in the actual packets that get generated. This means it's
hard to use the tool to detect an increase/decrease in Samba
performance - we don't know whether a decrease in packets sent is due
to a regression in the Samba codebase, or just due to the tool sending
different types of packets (i.e. ones that take longer to process).

This patch adds an option to seed the python random number generator.
This means that exactly the same traffic can be generated across
multiple test runs.

(Previously we were using the '--traffic-summary' option to avoid this
problem - we can generate a summary-file based on the model, and then
use the same summary file across multiple runs. However, this proved
impractical when you want to run multiple combinations of scale/rate
parameters, e.g. 21 x 8 different permutations just fills up disk space
with summary-files.)

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: William Brown <william@blackhats.net.au>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed May 16 13:53:26 CEST 2018 on sn-devel-144
2018-05-16 13:53:26 +02:00
..
git-hooks script/git-hooks: add check-trailing-whitespace 2018-04-26 03:54:38 +02:00
autobuild.py autobuild: do not try to send email to no recipient 2018-05-05 04:32:42 +02:00
bisect-test.py scripts/ python: convert 'except X, e' to 'except X as e' 2018-02-15 00:18:30 +01:00
clean-source-tree.sh Improve output of check-clean-tree.sh script 2015-04-15 05:58:19 +02:00
commit_mark.sh script/commit_mark.sh: add the current branch name 2012-06-07 01:18:55 +02:00
compare_cc_results.py script: convert print func to be py2/py3 compatible 2018-03-23 07:28:24 +01:00
configure_check_unused.pl Move configure_check_unused script to root scriptdir, as it is useful 2010-04-07 22:53:39 +02:00
ctdb-import.msg-filter.sh script: add ctdb-import.* scripts 2013-11-13 14:12:51 +01:00
ctdb-import.tree-filter.sh script: add ctdb-import.* scripts 2013-11-13 14:12:51 +01:00
ctdb-import.txt script: add ctdb-import.* scripts 2013-11-13 14:12:51 +01:00
findstatic.pl
generate_param.py scripts/ python: convert 'except X, e' to 'except X as e' 2018-02-15 00:18:30 +01:00
identity_cc.sh waf: add a cross-execute program that runs natively 2015-05-20 11:19:11 +02:00
random-sleep.sh random-sleep: add possiblity to override via environment variable 2013-11-13 14:53:45 +01:00
release.sh script/release.sh: fix off by 1 error in announce.${tagname}.mail.txt creation 2017-01-12 15:34:25 +01:00
show_test_time show_test_time: Use system subunit. 2015-03-06 04:41:47 +01:00
show_testsuite_time Print number of slow tests from script rather than wscript. 2014-11-24 13:06:46 +01:00
traffic_learner scripts: Scripts to replay and generate samba traffic 2017-08-17 04:06:06 +02:00
traffic_replay script: Add 'random-seed' option to traffic_replay 2018-05-16 13:53:26 +02:00
traffic_summary.pl traffic_summary: avoid uninitialised variable warning 2017-08-17 04:06:06 +02:00