HUB
Sign inSign up
torpor logo

ivotron/torpor

By ivotron

•Updated almost 10 years ago

Container for running torpor

Image
0

1.5K

ivotron/torpor repository overview

⁠torpor

Torpor lets you quantify and reduce the performance variability associated to a computing platform. It achieves this by obtaining base metrics of a system and tuning container execution parameters of other systems where the original performance is intended to be replicated.


Generate performance metrics for a system:

docker run --rm ivotron/microbench

The above generates JSON output and we'll assume is placed in a base.json output file.


Tune a target system to replicate the performance of a container:

torpor tune

Which expects a base.json file in the current directory and generates the values of tunable parameters (in a parameters.json file). Example output:

{
  "cpu-quota": 68700
}

Finally, to run a container with the intent of replicating performance:

docker run --rm --cpu-quota 68700 repo/container

Which expects a parameters.json file in the current directory. The arguments to run are similar to the ones for docker run but torpor adds the values for the --cpu-quota and --mem-bw-limit parameters that are passed to the docker-run-wrapper⁠ command.

⁠base.json file

The results that are intended to be ported to other target platforms are contained in one or more files in JSON format. For example, the results of the STREAM micro-benchmark might be specified as:

[
  {
    "id": "dummybench",
    "image_args": " ",
    "docker_flags": "--rm",
    "image_name": "ivotron/dummybench",
    "tests": [
      {
        "name": "dummy"
        "result": 34,
        "class": "cpu",
        "units": "iops",
        "lower_is_better": false,
      }
    ]
  }
]

The tests array can contain as many results as desired. If class is cpu, units should be in seconds. If memory, network or io, units are rate-based (e.g. mb/s).

An alternate format is the one generated by baseliner⁠, were the tests attribute (from the above format) is embedded inside a results array of machine objects (the machine.tests attribute):

[
  {
    "id": "dummy_1",
    "image_args": " ",
    "docker_flags": "--rm",
    "image_name": "ivotron/dummybench",
    "class": "cpu",
    "results": [
      {
        "machine": {
          "name": "nibbler.soe.ucsc.edu",
          "tests": [
            {
              "result": 1,
              "test": "dummy"
            }
          ]
        }
      },
      {
        "name": "dwill.soe.ucsc.edu",
        "tests": [
          {
            "result": 1,
            "test": "dummy"
          }
        ]
      }
    ]
  }
]

⁠Predefined micro-benchmarks

The ivotron/microbench docker image contains a list of commonly used micro-benchmarks. More benchmarks are available in ivotron/docker-bench⁠.

⁠Dependencies

  • Docker 1.7+
  • Linux 3.19+

Tag summary

Content type

Image

Digest

Size

188.1 MB

Last updated

over 10 years ago

docker pull ivotron/torpor