# iometer-org/iometer architecture

> Architecture diagram of the GitHub repository iometer-org/iometer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iometer-org/iometer
- Repository: https://github.com/iometer-org/iometer

## Overview

1. **What this repository is**
   - This is a distributed I/O benchmarking system, not a web app.
   - The architecture centers on a **controller GUI** that coordinates one or more **worker/agent processes** running on test hosts.

2. **Top-level runtime split**
   - The codebase clearly separates into two executables:
     - a **front-end/controller application** under `src/Galileo*`
     - a **worker/engine application** under `src/Pulsar*`
   - The controller prepares tests, starts/stops workers, and collects results.
   - The worker performs the actual I/O workload against targets and reports metrics back.

3. **Controller/UI subsystem**
   - `MainFrm`, `GalileoApp`, `GalileoDoc`, `GalileoView`, dialogs like `AccessDialog`, and property pages such as `PageAccess`, `PageDisk`, `PageNetwork`, `PageSetup`, and `PageDisplay` form a classic **MFC-style document/view GUI**.
   - This layer is responsible for configuring access patterns, selecting targets, managing managers/workers, and presenting live/summary metrics.

4. **Worker/engine subsystem**
   - Classes like `Worker`, `WorkerView`, `IOGrunt`, `WaitingForManagers`, and the various `IO*` classes implement the benchmark execution side.
   - This side owns the test loop, target access, timing, and result generation.
   - It is designed to run remotely and be controlled over the network.

5. **Configuration and benchmark model**
   - The benchmark is modeled explicitly in types such as `AccessSpecList`, `IOTest`, `IOTransfers`, `IOTarget`, `Manager`, `ManagerList`, and `ManagerMap`.
   - These represent the test definition: access patterns, target sets, participating managers, and how work is distributed.
   - The architecture is configuration-driven: the GUI builds a test plan, and the worker executes that plan.

6. **Target abstraction**
   - Target handling is split into specialized implementations:
     - `IOTargetDisk` for disk/file-backed workloads
     - `IOTargetTCP` and `IOTargetVI` for network-oriented targets
     - corresponding port/transport abstractions in `IOPort`, `IOPortTCP`, `VINic`, and related classes
   - This abstraction boundary is important: the benchmark core talks to targets through generic interfaces while platform/network specifics stay behind adapters.

7. **Network and manager communication**
   - `Network`, `NetTCP`, `NetVI`, `IOCQ*`, and `IOCompletionQ` indicate a dedicated communication layer for coordinating controller/worker traffic and asynchronous completion reporting.
   - The system supports multiple transport backends, with TCP explicitly represented and a VI-based path also present.
   - In architecture terms, the controller does not directly touch worker internals; it communicates through this transport layer.

8. **OS-specific I/O backends**
   - `IOManagerWin`, `IOManagerLinux`, `IOManagerSolaris`, `IOManagerOSX`, and `IOManagerNetware` show that the actual I/O engine is heavily platform-specific.
   - `IOPerformance*` and `IOCQ*` variants suggest OS-dependent performance collection and completion-queue handling.
   - The portability boundary is therefore clear: the test model is shared, but the I/O execution and instrumentation are implemented per OS.

9. **Metrics, meters, and live display**
   - `IOPerformance`, `BigMeter`, `MeterCtrl`, `TextDisplay`, and `Pulsar`/`Galileo` UI views provide real-time visualization of benchmark output.
   - These components aggregate throughput/latency-style measurements and render them in the GUI.
   - The flow is: worker collects raw results -> controller receives them -> meter/display controls render them.

10. **Linux kernel helper path**
    - `src/iomtr_kstat` contains a separate kernel/module helper and load/unload scripts.
    - This is a platform-specific support component used to obtain lower-level statistics on Linux.
    - It sits outside the main user-space controller/worker flow, but it affects observability on that platform.

11. **Build, packaging, and distribution**
    - The repository includes Windows, Linux, Solaris, macOS, and NetWare build files (`Makefile-*`, Visual Studio solutions/projects, Xcode project).
    - `misc/Installer/Iometer.nsi` is the Windows installer definition.
    - `docs/Docbook`, `docs/Iometer.pdf`, and homepage content under `misc/Homepage` are documentation/distribution assets rather than runtime components.

12. **External-facing context**
    - The README points to the project homepage, SourceForge project, mailing/listing services, and user community resources.
    - These are not part of runtime architecture, but they indicate this is a long-lived, distributed open-source tool with release and documentation infrastructure around the core benchmark engine.

Main entry points: [`src/Worker.cpp`](https://github.com/iometer-org/iometer/blob/master/src/Worker.cpp) (Worker app), [`src/IOManager.cpp`](https://github.com/iometer-org/iometer/blob/master/src/IOManager.cpp) (OS I/O), [`src/MainFrm.cpp`](https://github.com/iometer-org/iometer/blob/master/src/MainFrm.cpp) (Main frame), [`src/GalileoDoc.cpp`](https://github.com/iometer-org/iometer/blob/master/src/GalileoDoc.cpp) (Test doc)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_controller["Controller/UI"]
  node_mainfrm["Main frame<br/>MFC shell<br/>[MainFrm.cpp]"]
  node_galileoapp["Controller app<br/>MFC app<br/>[GalileoApp.cpp]"]
  node_galileodoc["Test doc<br/>document model<br/>[GalileoDoc.cpp]"]
  node_galileoview["Controller view<br/>UI view<br/>[GalileoView.cpp]"]
  node_pages["Property pages<br/>config UI<br/>[PageAccess.cpp]"]
  node_accessdlg["Access dialog<br/>[AccessDialog.cpp]"]
  node_accessspec["Access spec<br/>benchmark model<br/>[AccessSpecList.cpp]"]
  node_manager["Managers<br/>coordination model<br/>[Manager.cpp]"]
  node_meter["Meters<br/>metrics UI<br/>[BigMeter.cpp]"]
end

subgraph group_worker["Worker/Engine"]
  node_workerapp["Worker app<br/>benchmark engine<br/>[Worker.cpp]"]
  node_workerview["Worker view<br/>UI/status<br/>[WorkerView.cpp]"]
  node_iogrunt["I/O grunt<br/>execution loop<br/>[IOGrunt.cpp]"]
  node_waiting["Sync wait<br/>coordination"]
  node_iotest["Test model<br/>benchmark model<br/>[IOTest.h]"]
  node_targetdisk["Disk target<br/>target adapter<br/>[IOTargetDisk.cpp]"]
  node_targetnet["Network target<br/>target adapter<br/>[IOTargetTCP.cpp]"]
end

subgraph group_platform["Platform Backends"]
  node_network["Network layer<br/>transport<br/>[Network.cpp]"]
  node_iomanager["OS I/O<br/>platform backend<br/>[IOManager.cpp]"]
  node_completionq["Completion Q<br/>async I/O<br/>[IOCompletionQ.cpp]"]
  node_kstat["Linux kstat<br/>kernel helper<br/>[iomtr_kstat.c]"]
end

subgraph group_distribution["Build & Docs"]
  node_dist["Packaging<br/>docs/build<br/>[Iometer.nsi]"]
end

node_galileoapp -->|"creates"| node_mainfrm
node_mainfrm -->|"owns"| node_galileodoc
node_mainfrm -->|"hosts"| node_galileoview
node_galileodoc -->|"stores"| node_accessspec
node_galileodoc -->|"stores"| node_manager
node_galileoview -->|"configures"| node_pages
node_pages -->|"edits"| node_accessdlg
node_accessdlg -->|"updates"| node_accessspec
node_manager -->|"communicates"| node_network
node_network -->|"controls"| node_workerapp
node_workerapp -->|"hosts"| node_workerview
node_workerapp -->|"synchronizes"| node_waiting
node_waiting -->|"releases"| node_iogrunt
node_iogrunt -->|"executes"| node_iotest
node_iotest -->|"targets"| node_targetdisk
node_iotest -->|"targets"| node_targetnet
node_targetdisk -->|"uses"| node_iomanager
node_targetnet -->|"uses"| node_network
node_iomanager -->|"reports"| node_completionq
node_iomanager -->|"feeds"| node_meter
node_kstat -->|"extends"| node_iomanager
node_dist -->|"packages"| node_galileoapp
node_dist -->|"packages"| node_workerapp

click node_mainfrm "https://github.com/iometer-org/iometer/blob/master/src/MainFrm.cpp"
click node_galileoapp "https://github.com/iometer-org/iometer/blob/master/src/GalileoApp.cpp"
click node_galileodoc "https://github.com/iometer-org/iometer/blob/master/src/GalileoDoc.cpp"
click node_galileoview "https://github.com/iometer-org/iometer/blob/master/src/GalileoView.cpp"
click node_pages "https://github.com/iometer-org/iometer/blob/master/src/PageAccess.cpp"
click node_accessdlg "https://github.com/iometer-org/iometer/blob/master/src/AccessDialog.cpp"
click node_accessspec "https://github.com/iometer-org/iometer/blob/master/src/AccessSpecList.cpp"
click node_manager "https://github.com/iometer-org/iometer/blob/master/src/Manager.cpp"
click node_network "https://github.com/iometer-org/iometer/blob/master/src/Network.cpp"
click node_workerapp "https://github.com/iometer-org/iometer/blob/master/src/Worker.cpp"
click node_workerview "https://github.com/iometer-org/iometer/blob/master/src/WorkerView.cpp"
click node_iogrunt "https://github.com/iometer-org/iometer/blob/master/src/IOGrunt.cpp"
click node_waiting "https://github.com/iometer-org/iometer/blob/master/src/WaitingForManagers.cpp"
click node_iotest "https://github.com/iometer-org/iometer/blob/master/src/IOTest.h"
click node_targetdisk "https://github.com/iometer-org/iometer/blob/master/src/IOTargetDisk.cpp"
click node_targetnet "https://github.com/iometer-org/iometer/blob/master/src/IOTargetTCP.cpp"
click node_iomanager "https://github.com/iometer-org/iometer/blob/master/src/IOManager.cpp"
click node_completionq "https://github.com/iometer-org/iometer/blob/master/src/IOCompletionQ.cpp"
click node_meter "https://github.com/iometer-org/iometer/blob/master/src/BigMeter.cpp"
click node_kstat "https://github.com/iometer-org/iometer/blob/master/src/iomtr_kstat/iomtr_kstat.c"
click node_dist "https://github.com/iometer-org/iometer/blob/master/misc/Installer/Iometer.nsi"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mainfrm,node_galileoapp,node_galileodoc,node_galileoview,node_pages,node_accessdlg,node_accessspec,node_manager,node_meter toneBlue
class node_workerapp,node_workerview,node_iogrunt,node_waiting,node_iotest,node_targetdisk,node_targetnet toneAmber
class node_network,node_iomanager,node_completionq,node_kstat toneMint
class node_dist toneRose
```

## Components

### Controller/UI

GUI, test definition, and result display

- [Main frame](https://github.com/iometer-org/iometer/blob/master/src/MainFrm.cpp): MFC shell · Top-level controller window and command hub · `src/MainFrm.cpp`
- [Controller app](https://github.com/iometer-org/iometer/blob/master/src/GalileoApp.cpp): MFC app · Controller executable entry point and app lifecycle · `src/GalileoApp.cpp`
- [Test doc](https://github.com/iometer-org/iometer/blob/master/src/GalileoDoc.cpp): document model · Owns the benchmark configuration state · `src/GalileoDoc.cpp`
- [Controller view](https://github.com/iometer-org/iometer/blob/master/src/GalileoView.cpp): UI view · Renders test setup and live/summary state · `src/GalileoView.cpp`
- [Property pages](https://github.com/iometer-org/iometer/blob/master/src/PageAccess.cpp): config UI · Access, disk, network, setup, and display configuration pages · `src/PageAccess.cpp`
- [Access dialog](https://github.com/iometer-org/iometer/blob/master/src/AccessDialog.cpp): dialog · Edits access pattern definitions · `src/AccessDialog.cpp`
- [Access spec](https://github.com/iometer-org/iometer/blob/master/src/AccessSpecList.cpp): benchmark model · Represents access-pattern collections used by tests · `src/AccessSpecList.cpp`
- [Managers](https://github.com/iometer-org/iometer/blob/master/src/Manager.cpp): coordination model · Manager, manager list, and manager map for distributed workers · `src/Manager.cpp`
- [Meters](https://github.com/iometer-org/iometer/blob/master/src/BigMeter.cpp): metrics UI · Live throughput/latency display widgets · `src/BigMeter.cpp`

### Worker/Engine

Remote benchmark execution and target access

- [Worker app](https://github.com/iometer-org/iometer/blob/master/src/Worker.cpp): benchmark engine · Worker executable entry point · `src/Worker.cpp`
- [Worker view](https://github.com/iometer-org/iometer/blob/master/src/WorkerView.cpp): UI/status · Worker-side status and monitoring view · `src/WorkerView.cpp`
- [I/O grunt](https://github.com/iometer-org/iometer/blob/master/src/IOGrunt.cpp): execution loop · Benchmark run loop and workload execution core · `src/IOGrunt.cpp`
- [Sync wait](https://github.com/iometer-org/iometer/blob/master/src/WaitingForManagers.cpp): coordination · Waits for managers and run start coordination · `src/WaitingForManagers.cpp`
- [Test model](https://github.com/iometer-org/iometer/blob/master/src/IOTest.h): benchmark model · Core test definition, transfers, and target abstractions · `src/IOTest.h`
- [Disk target](https://github.com/iometer-org/iometer/blob/master/src/IOTargetDisk.cpp): target adapter · File-backed or disk workload target · `src/IOTargetDisk.cpp`
- [Network target](https://github.com/iometer-org/iometer/blob/master/src/IOTargetTCP.cpp): target adapter · TCP and VI target adapters · `src/IOTargetTCP.cpp`

### Platform Backends

OS-specific I/O, transport, and statistics implementations

- [Network layer](https://github.com/iometer-org/iometer/blob/master/src/Network.cpp): transport · Controller/worker communication and transport selection · `src/Network.cpp`
- [OS I/O](https://github.com/iometer-org/iometer/blob/master/src/IOManager.cpp): platform backend · Platform-specific I/O managers and performance collection · `src/IOManager.cpp`
- [Completion Q](https://github.com/iometer-org/iometer/blob/master/src/IOCompletionQ.cpp): async I/O · Asynchronous completion handling variants · `src/IOCompletionQ.cpp`
- [Linux kstat](https://github.com/iometer-org/iometer/blob/master/src/iomtr_kstat/iomtr_kstat.c): kernel helper · Linux module/helper for low-level statistics · `src/iomtr_kstat/iomtr_kstat.c`

### Build & Docs

Packaging, installers, and documentation assets

- [Packaging](https://github.com/iometer-org/iometer/blob/master/misc/Installer/Iometer.nsi): docs/build · Installers, docs, and release assets · `misc/Installer/Iometer.nsi`

## Connections

- Controller app → Main frame: creates · Controller app boots the main frame
- Main frame → Test doc: owns · Frame coordinates document state
- Main frame → Controller view: hosts · Frame presents the controller view
- Test doc → Access spec: stores · Document holds benchmark access definitions
- Test doc → Managers: stores · Document tracks participating managers
- Controller view → Property pages: configures · View exposes the main property pages
- Property pages → Access dialog: edits · Property pages drive access-pattern editing
- Access dialog → Access spec: updates · Dialog writes access specification data
- Managers → Network layer: communicates · Manager coordination uses transport layer
- Network layer → Worker app: controls · Controller communicates with remote workers
- Worker app → Worker view: hosts · Worker executable exposes its status view
- Worker app → Sync wait: synchronizes · Worker waits for manager readiness
- Sync wait → I/O grunt: releases · Run coordination hands off to workload loop
- I/O grunt → Test model: executes · Engine runs the configured test model
- Test model → Disk target: targets · Test model can bind to disk targets
- Test model → Network target: targets · Test model can bind to network targets
- Disk target → OS I/O: uses · Disk target relies on OS-specific I/O backend
- Network target → Network layer: uses · Network targets rely on transport layer
- OS I/O → Completion Q: reports · Backends surface async completions and results
- OS I/O → Meters: feeds · Performance data drives live meters
- Linux kstat → OS I/O: extends · Linux helper augments I/O statistics collection
- Packaging → Controller app: packages · Distribution assets cover the controller build
- Packaging → Worker app: packages · Distribution assets cover the worker build
