Change to user kresdbench $ su kresdbench and go to benchmark folder
$ cd /home/kresdbench/resolver-benchmark/cache_usage_benchmark.
Before you run benchmark, prepare your configuration file. It is good
idea to edit existing config file named cache_usage.cfg. You can use
example.cfg for your inspiration. Options are described below.
If you want to use different input file than queryfile_uniq_100k,
then edit -i param in starter.sh script.
Check if there is no benchmark running at the server.
If not, run benchmark at background using nohup ./starter.sh &
Results and logfile will be available in last timestemp folder in
path run/results/<timestemp dir>
Contains 1 section: general. In section general
you can configure these parameters:
workdir which indicates directory for program use. This directory
will be cleaned after program finished.
iteration sets the number of iterations. Final result is made of mean
of each iteration. This parameter increases the time of run rapidly!
ip_server indicates ip address where are the resolvers.
resolvers indicates to which resolvers is benchmark used. There must
be also set parameter ports with the numbers of ports of resolvers.
knot_branch sets name of branch to be tested. Default is master.
ports indicates port numbers at which resolvers are running. Must be
used with resolvers parameter.
influxdb_server indicates ip address of influxDB server and port.
influxdb_upload indication flag. To upload or not to upload?
influxdb_database indicates name of influxDB database where data
will be uploaded.
load_resperf_param indicates parameters for resperf program to fill
(it is also called test A in code)
measure_resperf_param indicates parameters for resperf program to
(it is also called test B in code)
Example of config file: example.cfg
Results are located in run/results/<timestemp dir> dir. Each
result dir contains:
benchmark.log - logfile of particular benchmark steps.
raw_result_<name> - raw results parsed from resperf output.
result_resolver_<name> - result ready to upload into influxdb.
result_table_<name> - ascii table of results.
<name>_<percent>.latency.png - gnuplot graph of latency of last iteration run.
<name>_<percent>.rate.png - gnuplot graph of rate of last iteration run.
<name>_<percent>.gnuplot - data for gnuplot graphs.