Skip to main content

Workloads

Workload data defines the tasks and power measurements that OpenDT simulates.

Workload Directory

Workloads are stored in the workload/ directory. Each workload has its own subdirectory:

workload/
└── SURF/
├── tasks.parquet
├── fragments.parquet
├── consumption.parquet
├── carbon.parquet
└── topology.json

Required Files

FileDescription
tasks.parquetTask definitions with submission times and resource requirements
fragments.parquetTask execution profiles showing resource usage over time
consumption.parquetActual power measurements from the real datacenter
carbon.parquetGrid carbon intensity data
topology.jsonDatacenter hardware configuration

Selecting a Workload

Set the workload in your configuration file:

services:
dc-mock:
workload: "SURF"

The value is the directory name under workload/.

Creating Custom Workloads

To add a new workload:

  1. Create a directory under workload/
  2. Add the required Parquet files
  3. Create a topology.json matching your datacenter hardware
  4. Reference the directory name in your configuration

Data Format

tasks.parquet

ColumnTypeDescription
idintUnique task identifier
submission_timetimestampWhen the task was submitted
durationintTask duration in milliseconds
cpu_countintNumber of CPU cores
cpu_capacityfloatCPU speed in MHz
mem_capacityintMemory in MB

fragments.parquet

ColumnTypeDescription
idintFragment identifier
task_idintParent task ID
durationintFragment duration in milliseconds
cpu_countintCPUs used
cpu_usagefloatCPU utilization

consumption.parquet

ColumnTypeDescription
timestamptimestampMeasurement time
power_drawfloatPower in Watts
energy_usagefloatEnergy in Joules