Skip to content

Latest commit

 

History

History
94 lines (71 loc) · 2.77 KB

quickstart.md

File metadata and controls

94 lines (71 loc) · 2.77 KB

Quick Start

This guide builds DR_EVT and runs a small scheduler simulation. A basic build requires CMake 3.24 or later, a C++20 compiler, Boost, and Ser20. Ser20 is resolved automatically. Optional Python, Protobuf, gRPC, MPI, and testing dependencies are covered in Installation.

Build

git clone https://github.com/LLNL/dr_evt.git
cd dr_evt

export CMAKE_INSTALL_PREFIX=/path/to/install
cmake -S . -B build \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}"
cmake --build build -j4
cmake --install build

If Boost is not installed, configuration uses the repository's dependency fallback. The first build can therefore take longer and may require network access.

Run a simulation

Run the included two-job trace on a 100-node system:

${CMAKE_INSTALL_PREFIX}/bin/simulator tests/test_traces/unit/simple_2jobs.csv \
  --trace_format simple \
  --timestamp_format epoch \
  --run_time_mode limit \
  --total_nodes 100 \
  --outfile results.csv \
  --resource_trace resources.csv

The simulator prints the resolved configuration followed by job counts, simulation time, average wait and turnaround times, makespan, average and peak waiting-queue lengths, and process wall-clock time. Definitions are in Output Trace Files.

It also writes:

  • results.csv, the scheduled start and end time of each accepted job; and
  • resources.csv, free and allocated nodes after every resource change.

Inspect them with:

head results.csv
head resources.csv

Use your own trace

A minimal simulation trace is a CSV file with named columns:

job_submit_time,num_nodes,time_limit
0,80,100
10,15,30
20,60,50

Run it by replacing the input path in the command above. The full input schemas, optional columns, replay detection, and timestamp forms are defined in Input Trace Files.

Choose scheduler behavior

The defaults are FCFS priority with EASY backfilling. For example, strict FCFS without backfilling uses:

${CMAKE_INSTALL_PREFIX}/bin/simulator input.csv \
  --priority_policy fcfs \
  --backfill_policy none

See Command-Line Options for every flag and Scheduling Policies for policy semantics. Protobuf configuration files are described in Protocol Buffer Configuration.

Next steps