Skip to main content
OpenDC2 is no longer being developed

This page documents OpenDC2. OpenDC3 can still run OpenDC2 experiment files with opendc --legacy run, but new features are only added to OpenDC3. See the OpenDC3 documentation, or Migrating to OpenDC3.

Units

In OpenDC2, only the values in a topology can be written with a unit. All other values are plain numbers with a fixed unit.

Values with a unit​

These values can be written as a string with a unit, such as "2.1 GHz", or as a plain number in the default unit.

QuantityDefault unitExamplesUsed for
FrequencyMHz"2100 MHz", "2.1 GHz"coreSpeed of CPUs and GPUs, memorySpeed
Data sizeMiB"512 MiB", "64 GiB", "100 GB"memorySize of the memory and of GPUs
Data rateKibps"10 Gbps", "900 GBps"memoryBandwidth of GPUs
PowerWatt"400 W", "1 kW"power, idlePower and maxPower of power models

The number can have decimals or an exponent, such as "128e3 MiB". Decimal prefixes (k, M, G) are powers of 1000 and binary prefixes (Ki, Mi, Gi) are powers of 1024. In data sizes and rates, b is a bit and B is a byte.

Values with a fixed unit​

ValueUnit
exportInterval of an export modelseconds
checkpointInterval and checkpointDurationmilliseconds
updateIntervalLength of the BEST_EFFORT policymilliseconds
maxPower of a power source, chargingSpeed of a batteryWatt
capacity and initialCharge of a batterykWh
embodiedCarbon of a batterygram
expectedLifetime of a batteryyears
failure distributions (iatSampler, durationSampler)hours

The units of the output files are listed on the Output pages.