Skip to content

Conversation

@ndokos
Copy link
Member

@ndokos ndokos commented Feb 22, 2017

Bench scripts record their iterations in a temp file, which is then used by pbench-metadata-log to add a [pbench] iterations field. If that is not done, then we have to trawl through the tarball and guess the iteration names, when it is time to index. Since the benchmark scripts know their iterations, it make sense to have them save that information for later use.

$date is set by the base script which is sourced by every benchmark
script, tool script and util script. It is used by benchmark scripts
to create the results directory for the run, but because it is
recalculated every time the base script is sourced, other components
were getting a different value and e.g. could not find the results
directory for the run.

We now check whether $date has a value already and if so, we just
leave it alone. It is only set the first time that the base script
is sourced.
When a benchmark script starts a new iteration, it records it in
a temporary file.

This file will be used to add an iterations entry into the metadata
log, to speed up processing on the server (in particular, indexing
into ES).
The benchmark scripts record their iterations in a temp file.
pbench-metadata-log uses that to add an iterations entry to
the metadata log.

pbench-add-metalog-option is a generic script that is used for
that purpose, but it can add an arbitrary option to an arbitrary
section of the metadata log.

Modify unit tests and add a new one to test this functionality.
@ndokos ndokos added this to the V0.42 milestone Feb 22, 2017
@portante portante merged commit cbef546 into distributed-system-analysis:master Feb 25, 2017
@portante
Copy link
Member

portante commented Mar 4, 2017

@ndokos ndokos deleted the wip-record-iterations branch February 25, 2020 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants