How iometer-org/iometer works
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: Worker.cpp Worker app · IOManager.cpp OS I/O · MainFrm.cpp Main frame · GalileoDoc.cpp Test doc
Components 21
Controller/UI
GUI, test definition, and result display
- Main frame · Top-level controller window and command hub
src/MainFrm.cpp - Controller app · Controller executable entry point and app lifecycle
src/GalileoApp.cpp - Test doc · Owns the benchmark configuration state
src/GalileoDoc.cpp - Controller view · Renders test setup and live/summary state
src/GalileoView.cpp - Property pages · Access, disk, network, setup, and display configuration pages
src/PageAccess.cpp - Access dialog · Edits access pattern definitions
src/AccessDialog.cpp - Access spec · Represents access-pattern collections used by tests
src/AccessSpecList.cpp - Managers · Manager, manager list, and manager map for distributed workers
src/Manager.cpp - Meters · Live throughput/latency display widgets
src/BigMeter.cpp
Worker/Engine
Remote benchmark execution and target access
- Worker app · Worker executable entry point
src/Worker.cpp - Worker view · Worker-side status and monitoring view
src/WorkerView.cpp - I/O grunt · Benchmark run loop and workload execution core
src/IOGrunt.cpp - Sync wait · Waits for managers and run start coordination
src/WaitingForManagers.cpp - Test model · Core test definition, transfers, and target abstractions
src/IOTest.h - Disk target · File-backed or disk workload target
src/IOTargetDisk.cpp - Network target · TCP and VI target adapters
src/IOTargetTCP.cpp
Platform Backends
OS-specific I/O, transport, and statistics implementations
- Network layer · Controller/worker communication and transport selection
src/Network.cpp - OS I/O · Platform-specific I/O managers and performance collection
src/IOManager.cpp - Completion Q · Asynchronous completion handling variants
src/IOCompletionQ.cpp - Linux kstat · Linux module/helper for low-level statistics
src/iomtr_kstat/iomtr_kstat.c
Build & Docs
Packaging, installers, and documentation assets
- Packaging · Installers, docs, and release assets
misc/Installer/Iometer.nsi
Connections 23
- 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