Écrire et vérifier un modèle › Construire des applications de données › Resource budget

Écrire et vérifier un modèle › Construire des applications de données

Cette page n’est pas encore traduite : voici la version anglaise.

Resource budget

What each deployment uses of its cores, buses and memory, and how long its end-to-end chains take, against the budgets the requirements set. It reads the timing analysis. It does the job of the anfra BigQuery Cost & Usage app.

archec new my-app --kind data-app --template resource-budget
archec ui preview my-app/main.arche --serve

What it shows#

  • A filter: the deployment, Rover to start.
  • Three tiles: the peak core load against REQ-CPU, the peak bus load against REQ-BUS, the memory used against REQ-MEM.
  • The load of each core. A click opens the processor: its cores' load by thread, and its threads with their response time and deadline.
  • The bus load, the memory used per processor, and each chain against its budget.

The data#

  • data/timing.json is archec analyze --json: run archec analyze main.arche --json > data/timing.json on your model.
  • One dataset per table of the analysis: analyze threads, cores, buses, memory, chains. A thread's load is its time over its period.

Limits#

  • The analysis has no power figure, so the template has no power budget.
  • A load is a fraction, so its metric multiplies it by 100 for unit %.

The model is lib/data-apps/resource-budget/main.arche, and the gallery lists the other templates.