The Lightweight Distributed Metric Service: A Scalable Infrastructure for Continuous Monitoring of Large Scale Computing Systems and Applications
Paper · 2014 · Anthony Agelastos, Benjamin A. Allan, Jim M. Brandt et al.
Summary
A scientific application can run slowly even when its own code has not changed. Other jobs may be using the same network or filesystem, the application may have received an unfavorable placement, or resource demands may have become uneven across its nodes. Diagnosing these effects requires observations from the surrounding machine during the run. Occasional hardware checks are too sparse to reconstruct short disturbances, while detailed application profiling can impose substantial overhead and require deliberate preparation. The Lightweight Distributed Metric Service, or LDMS, addresses the gap between these approaches: continuous observation of a large computing system at a frequency useful for understanding applications, with a small enough footprint to remain enabled during production work.
LDMS separates measurement, movement, and storage. Samplers collect related measurements into metric sets on monitored nodes. Aggregators retrieve those sets from samplers or other aggregators, allowing a hierarchy rather than forcing every node to communicate directly with a central destination. Storage plugins write accepted updates in different formats. The system supports ordinary socket communication and remote direct memory access, abbreviated RDMA, which helps move observations while limiting interference with computation. Version information and a consistency flag distinguish fresh, coherent samples from stale values or a set caught during modification.
The paper describes deployments on Blue Waters, a Cray platform with 27,648 nodes, and Chama, a Sandia capacity cluster. Their monitoring goals overlap, but their networks, available counters, and collection hierarchies differ. Blue Waters samples in production at 1 minute intervals; Chama uses 20 second intervals. The authors also investigate substantially more frequent monitoring, including sampling every second, to test whether greater temporal detail would be practical. A sampler typically uses under two megabytes of memory per node; at that frequency, its CPU usage is described as a few hundredths of one percent of a core. These are deployment-dependent observations, not universal resource guarantees.
The application tests generally find no practically important slowdown attributable to LDMS under the tested conditions. That conclusion is supported by several applications and communication benchmarks, but it requires qualification. A noise probe detects additional delayed iterations, and Chama’s full sampler configuration produces a more pronounced timing tail than a reduced configuration. Some application measurements also vary enough that small monitoring effects would be difficult to distinguish. The evidence therefore supports low disruption in these deployments rather than an assertion of zero interference.
The resulting records expose behavior that application profiling in isolation would miss. Blue Waters observations show sustained network stalls, spatial concentrations of filesystem activity, and an unusual bandwidth event. On Chama, combining resource measurements with scheduler information reveals memory imbalance in a job that was terminated after exhausting memory. These are preliminary demonstrations of what continuous observations make visible. The paper’s central contribution is the collection infrastructure and its production evaluation, rather than a completed system for automatically explaining every performance problem.
Interesting ideas
Observe the operating environment continuously. An isolated experiment cannot describe all the conditions surrounding an application in ordinary use. A persistent, inexpensive record preserves evidence for failures or slowdowns that nobody anticipated. The same principle applies to distributed services, data-processing pipelines, and long-running research workflows: a modest baseline record can answer questions that arise only after execution has finished.
Separate measurement from transport and persistence. Collecting a value, transferring it, and preserving it have different costs and scheduling requirements. LDMS gives these responsibilities distinct components and configurable frequencies. This separation is useful wherever a local producer must remain lightweight while downstream consumers need flexible retention, aggregation, or analysis.
Make validity explicit in the data structure. A value being available does not establish that it is current, complete, or described by the expected metadata. LDMS carries information that lets consumers check these properties. This is a reusable design for shared observations, cached results, and asynchronous pipelines, where silent ambiguity about freshness can be more damaging than an explicit missing update.
Scale through configurable collection hierarchies. A hierarchy distributes connection management and transport work rather than concentrating everything at the final storage host. Its usefulness depends on the actual limits of intermediate machines and network paths. Similar arrangements can help with worker telemetry, corpus processing, and large experimental campaigns, provided each level’s resource demands remain visible.
Measure disturbance as well as resource consumption. Low average CPU use is reassuring, but it does not establish harmless timing behavior. The authors combine resource measurements with application runs and a sensitive noise probe. This approach transfers to any instrumentation system whose brief interruptions might affect synchronization, latency, or tail behavior despite a small average footprint.
Preserve context when interpreting measurements. A high counter value becomes more informative when connected to network location, job membership, and time. LDMS’s examples show the value of relating observations to the structure of the machine and the work running on it. The broader lesson is to retain identifiers that support later joins rather than treating every metric as an isolated stream.
Give archives and live queries different representations. The authors propose preserving detailed counters for historical investigation while preparing rates for recent queries. These uses impose different requirements on storage and processing. Keeping their representations separate can improve practical access without discarding the underlying evidence needed for later reinterpretation.
Deep dive: The Lightweight Distributed Metric Service: A Scalable Infrastructure for Continuous Monitoring of Large Scale Computing Systems and Applications
How LDMS gathers continuous performance data across large computing systems while keeping monitoring costs and application disruption low. · about 36 minutes to read
How Mova uses it
Mova is a small, transparent language system written in Rust. Its documented components already retain several kinds of operational evidence, including bounded worker outcomes, source fingerprints, experiment journals, and measured execution costs. Those mechanisms create useful points of contact with LDMS. They do not establish that Mova has adopted LDMS, implemented its transport architecture, or measured comparable monitoring overhead. The status marks below describe proposed correspondences against the documented mechanisms; transfer benefits remain unverified until tested.
Idea: Maintain a continuous operational baseline. Where: Introduction and Section II. Area: operational monitoring. Mova: частково є (persistent worker state and retained results in docs/hybrid-system.md). Mova could supplement individual task receipts with inexpensive observations of memory, CPU use, queue activity, and transport status throughout a worker’s lifetime. Existing receipts explain what a supported action returned, but intermittent observations could reveal conditions that preceded a failure. The proposed value is retrospective diagnosis when no detailed investigation was requested beforehand.
Idea: Separate local observation from transport and storage. Where: Section IV-A. Area: architecture. Mova: частково є (worker interfaces and result retention in docs/hybrid-system.md; prepared storage in pack). Mova could define a small local observation interface whose producers do not need to know the final archival format or analysis destination. LDMS demonstrates this separation for machine metrics. Applying it to Mova would require explicit schemas and admission rules so that operational observations remain distinguishable from linguistic conclusions and learned knowledge.
Idea: Represent metadata identity explicitly. Where: Section IV-B, sampler memory layout. Area: data integrity. Mova: частково є (source and configuration fingerprints in tools/enrich/README.md and immutable source versions in tools/dictindex/README.md). LDMS’s metadata generation information suggests checking that every received observation is interpreted under its actual schema and configuration. Mova already binds important artifacts to their sources; a comparable check at the telemetry boundary could prevent a consumer from interpreting a changed field layout using an older description.
Idea: Distinguish fresh observations from repeated reads. Where: Section IV-B, data generation information and storage behavior. Area: data processing. Mova: частково є (versioned events and identical-replay behavior in tools/dictindex/README.md). A worker-status consumer could record whether it received a new observation or merely reread an unchanged result. LDMS handles this distinction for sampled values. Mova’s existing versioned journals provide related machinery, but freshness for operational status would need its own definition and tests rather than being inferred from successful communication.
Idea: Reject incomplete observation sets. Where: Section IV-B, consistency flag and storage rules. Area: data integrity. Mova: частково є (transactional publication in tools/dictindex/README.md and complete artifact gates in tools/enrich/README.md). A collection containing only some updated fields should not be reported as a coherent worker snapshot. Mova could expose an explicit completion state for such observations and preserve the reason for rejection. This extends its existing refusal to treat partial processing as completion of an entire pass.
Idea: Keep a bounded current snapshot near the producer. Where: Section IV-A, sampler history policy. Area: memory management. Mova: нове. A telemetry producer could maintain only its latest coherent operational snapshot while leaving history to a downstream recorder. This would limit memory growth in workers that otherwise accumulate diagnostic material. Why Mova: bounded observation memory would help preserve capacity for parsing and task execution. The digest does not establish this particular policy, so the novelty mark is provisional.
Idea: Assign collection frequencies by information need. Where: Sections IV-A and IV-C. Area: scheduling. Mova: нове. Queue depth, transport health, and relatively stable configuration identity need not be inspected at the same frequency. Mova could choose explicit schedules according to how quickly each observation changes and how costly it is to obtain. Why Mova: selective frequency could provide better diagnostic detail without paying for uniformly frequent checks. Appropriate periods and resulting costs are unknown until measured.
Idea: Distinguish sampling frequency from retrieval frequency. Where: Section IV-A. Area: asynchronous systems. Mova: нове. A local worker could update its status independently of the coordinator that reads it. The receiving side would then need to retain sampling time and freshness information rather than treating retrieval time as the event time. Why Mova: this separation could keep slow coordinators from controlling local observation while making delayed status reports easier to interpret. LDMS’s asynchronous behavior supplies the architectural analogy.
Idea: Use collection hierarchies when central coordination becomes expensive. Where: Sections IV-A, IV-F, and IV-G. Area: scalability. Mova: частково є (explicit worker protocols and nested bounded calls in docs/hybrid-system.md). Mova could place intermediate collectors between numerous workers and a final recorder, while keeping task authority separate from telemetry forwarding. Its existing interfaces make bounded composition possible, but they do not demonstrate LDMS-style aggregation capacity. A hierarchy would be justified only after measurements identify a real central bottleneck.
Idea: Size concurrency according to waiting behavior. Where: Section IV-B, aggregator worker pools. Area: concurrency. Mova: нове. LDMS distinguishes useful execution concurrency from threads occupied waiting for unavailable targets. Mova could measure these states separately before changing a status collector’s concurrency. Why Mova: a bounded collector should remain responsive when some workers are unreachable without creating uncontrolled parallel work. This is an operational scheduling proposal, not evidence that increasing concurrency always improves throughput.
Idea: Prepare standby connections without overstating failover. Where: Section IV-B, standby aggregators. Area: reliability. Mova: нове. A redundant observer could be configured in advance, but activation should depend on an explicit failure signal and a recorded authority decision. LDMS’s standby support is particularly instructive because it does not include internal detection of primary failure. Why Mova: separating readiness, detection, and activation would make redundancy claims inspectable and prevent an available backup from being mistaken for automatic recovery.
Idea: Record configured topology rather than assuming discovery. Where: Section IV-G. Area: configuration. Mova: частково є (deployment-owned service addresses, aliases, and capability configuration in docs/hybrid-system.md). LDMS depends on tailored connection configuration rather than automatic discovery. Mova’s configured workers could similarly publish the intended observation graph, allowing reviewers to check which workers should be visible and which paths are absent. This would support diagnosis without pretending that successful parsing discovers the deployment’s operational structure.
Idea: Keep transport choices behind explicit interfaces. Where: Section IV-B, transport plugins. Area: systems architecture. Mova: частково є (Crab protocols and native adapters in docs/hybrid-system.md). The useful transfer is an interface boundary that permits different transport implementations while retaining clear connection semantics. It does not imply that Mova needs RDMA. A transport suitable for a large computing platform may be inappropriate for its worker environment; costs and failure behavior would have to be measured within the actual deployment.
Idea: Expose duplicate observation work. Where: Section IV-B, overlapping sampler plugins. Area: efficiency. Mova: нове. Different diagnostic capabilities might inspect the same process or read the same source independently. A declared inventory of observed fields could reveal that duplication before it becomes expensive. Why Mova: shared parsing and bounded worker execution already favor avoiding unnecessary work, and observation duplication could undermine those savings. Any consolidation would need to preserve the distinct evidence requirements of the original consumers.
Idea: Evaluate instrumentation against applications. Where: Section V. Area: evaluation. Mova: частково є (tools/twin prospective costs and measured runs in docs/architecture.md). Monitoring changes could be evaluated while representative parsing, dictionary retrieval, and worker tasks execute, comparing their completion behavior with observations enabled and disabled. LDMS shows why the monitor’s own CPU use is insufficient evidence. Mova already records execution costs, but instrumentation-specific interference experiments and their outcomes are not established.
Idea: Examine timing tails as well as averages. Where: Sections V-A1 and V-B4. Area: statistics and evaluation. Mova: нове. Short diagnostic interruptions could affect a small fraction of worker responses or synchronized stages while barely changing average duration. Mova could retain distributions or explicit delayed-event counts for suitable owned tests. Why Mova: rare delays may explain missed deadlines or apparent stalls that mean timings conceal. LDMS’s PSNAP results motivate the question without determining the correct statistic for Mova.
Idea: Control task placement across comparisons. Where: Sections V-A and V-B. Area: experimental design. Mova: частково є (deterministic repeated evaluations and regression gates in README.md). LDMS’s application comparisons repeatedly use the same allocated nodes, reducing placement changes as an alternative explanation. Mova could similarly hold worker assignment and resource configuration fixed when testing operational changes. Repeated identical outputs already check determinism, but equivalent placement controls address a separate source of variation in performance measurements.
Idea: Compare reduced and complete instrumentation. Where: Section V-B4. Area: controlled evaluation. Mova: нове. A diagnostic trial could compare monitoring disabled, a small observation subset, and the full configured set. This would test whether disruption comes from observation quantity or from another part of the path. Why Mova: targeted reductions could identify expensive checks without discarding all operational visibility. The paper supports this comparison strategy, not a prediction about which Mova observation would dominate.
Idea: Coordinate observation times when synchronization matters. Where: Section V-A1 and Section IV-B. Area: parallel execution. Mova: нове. Independent interruptions across cooperating workers may affect more stages than a coordinated observation window. Mova could investigate synchronized diagnostic sampling for tasks with known barriers, while preserving asynchronous operation elsewhere. Why Mova: bounded coordination may reduce scattered interference in tightly coupled workflows. The effect would depend on Mova’s actual execution structure and remains an experimental hypothesis.
Idea: Join resource observations to task identity. Where: Section VI-B and Figure 12. Area: provenance and diagnosis. Mova: частково є (task results with source and configuration identity in docs/hybrid-system.md). A memory spike is more useful when associated with the task and phase that occupied the worker. Mova could attach operational records to existing task identifiers without converting them into semantic evidence. LDMS’s scheduler join illustrates the value of this connection for understanding resource imbalance.
Idea: Retain observations around task boundaries. Where: Figure 12. Area: evaluation and diagnosis. Mova: нове. The Chama example includes limited context before and after the job, making entry and exit conditions visible. Mova could preserve corresponding boundary observations around expensive tasks. Why Mova: this could help distinguish a task’s own resource growth from memory or congestion inherited from earlier activity. Appropriate retention windows and storage costs would require deployment-specific evaluation.
Idea: Use topology-aware views for shared-resource problems. Where: Section VI-A and Figures 9–11. Area: analysis. Mova: нове. When workers share storage, a machine, or a transport path, a flat list of failures may conceal their common dependency. Mova could display observations against its declared resource graph. Why Mova: shared structure could make correlated failures easier to investigate while avoiding unsupported claims that temporal coincidence establishes causation. The digest does not demonstrate such a view.
Idea: Preserve exact counters alongside prepared rates. Where: Section VIII. Area: data representation. Mova: частково є (byte-exact prepared storage and verified repacking in docs/compression.md, as described in the digest). Mova could archive original operational observations while preparing derived quantities for frequent status queries. The original and derived records would need separate schemas and provenance. LDMS presents this as future work, so neither its performance benefit nor an equivalent Mova implementation should be treated as established.
Idea: Estimate archival cost over sustained operation. Where: Section IV-D. Area: resource planning. Mova: частково є (tools/twin cost prediction and calibration; tools/dictindex/README.md bounded storage measurements). A small per-task record can become substantial across a long-running worker population. Mova could report projected retention costs with the sampling configuration and actual measured prefix that supports them. This follows LDMS’s attention to persistent storage volume while preserving Mova’s existing distinction between bounded probes and complete coverage.
Idea: Keep collection evidence separate from diagnostic conclusions. Where: Section VI and the paper’s stated scope. Area: reasoning and interpretability. Mova: вже є (docs/hybrid-system.md, where receipts, proofs, and learned knowledge have separate evidential roles). LDMS supplies observations and preliminary interpretations without claiming a complete automatic explanation mechanism. Mova’s existing boundary should remain central in any telemetry extension: a successful status request, an unusual counter, and an established cause are different conclusions requiring different evidence.
The problem and its context
The paper begins from an observational gap. Administrators need to know whether a machine is functioning, while application developers need to understand how their programs spend time and consume resources. Tools serving these purposes tend to work at different levels. Periodic system checks can reveal unhealthy hardware or an exceeded threshold, but they may miss the short-lived conditions that affect a job. Detailed profiling exposes internal execution behavior, yet gathering and interpreting that detail can be expensive enough to make profiling an occasional activity.
This matters especially for tightly coupled applications in parallel computing. Their progress depends on multiple processes and on resources that those processes share. A process delayed by communication or a filesystem operation may hold up others. Even when an application has the same input and configuration, the surrounding workload can differ. A measurement taken from the application alone cannot necessarily reveal which other jobs were competing for bandwidth or which machine conditions prevailed during a slow phase.
The authors describe production behavior as the missing context. Developers may investigate a particular configuration carefully, but their applications subsequently encounter a wider range of inputs and neighboring workloads. Those ordinary runs are precisely where unexplained variation appears. Without sufficiently detailed records from the machine, users and administrators are left trying to reconstruct conditions after the evidence has disappeared.
The intended users also have different questions. An application user may want to know whether memory demand is uneven or whether communication is limiting progress. An administrator may need to investigate a shared filesystem slowdown. A procurement planner may want a sustained picture of how much memory or interconnect capacity the community actually uses. Continuous monitoring is attractive because a common observation infrastructure can support all these questions, even though their analyses differ.
Why existing tools did not meet the requirements
The paper’s comparison with earlier tools is functional instead of a head-to-head performance contest. Ganglia and Nagios are described as serving general monitoring and failure notification at substantially coarser collection periods. In the authors’ account, neither supports the subsecond collection needed for the most demanding observation scenarios. They also lack an on-node interaction interface of the kind the authors want applications to use.
Retention policy matters as well as collection frequency. Ganglia’s use of RRDTool means older information is aged out. That can be appropriate for routine administration, but it differs from preserving detailed observations for an unforeseen investigation. Similarly, thresholds that reduce transmitted data can lower transport volume while adding processing on the monitored machine and discarding behavior below the chosen threshold.
Performance Co-Pilot is presented as the closest open alternative in design philosophy. The distinctions emphasized by the authors concern its transport structure, archival representation, and extensibility boundaries. LDMS offers a hierarchy with additional transport options and storage interfaces intended for performance-sensitive implementations. The comparison does not establish that LDMS is superior for every monitoring purpose; it explains why the authors selected a different design for their particular production requirements.
Single-host tools address another part of the problem. Collectl and sar can gather local measurements, but the paper does not describe them as providing the distributed collection and aggregation infrastructure required here. Applications interacting through their command-line interfaces would also have to launch a command and interpret its output. LDMS instead aims to provide programmatic access alongside distributed transport.
Detailed profilers remain useful. The authors explicitly position their system as complementary to tools such as OProfile and CrayPat. Continuous resource observations can identify when and where an investigation is needed; profiling can then examine the application more closely. The paper therefore does not argue that external measurements eliminate the need to inspect internal execution.
Requirements shaped by two environments
Blue Waters and Sandia’s capacity systems share an interest in network, memory, processor, and filesystem behavior. Their implementation problems differ. Blue Waters has a proprietary Gemini interconnect arranged as a torus, and obtaining useful network observations required cooperation with Cray. Sandia’s Linux systems expose relevant information through familiar operating-system interfaces, but still require collection across many nodes with low disruption.
The overhead requirement is concrete. Sandia’s users asked for slowdown below one percent and permitted up to 1MB of memory per core. These are requirements supplied by the user community, not a result automatically guaranteed by the architecture. The authors consequently test applications instead of relying only on how small the monitoring daemon appears.
The method, step by step
LDMS is an infrastructure design, not a trained predictor. There is no training corpus, learned objective, or fitted decision rule in its collection path. Its method consists of organizing observations into well-defined memory structures, scheduling updates, moving those structures through a configurable hierarchy, and deciding which received updates are suitable for storage.
The paper does not provide formal mathematical equations for this process. It describes operational rules and implementation structures instead. The important notation is therefore the terminology attached to metric sets: metadata generation number, data generation number, and consistency status. Understanding these fields explains how asynchronous components can exchange observations without treating every transfer as a valid new sample.
From local measurement to retained evidence
The steps in order.
Define a metric set
The basic unit is a metric set: a named group of related measurements. A sampler plugin determines which values belong together and how they are obtained. For example, filesystem observations can include read volume, write volume, and operations that open or close files. Grouping them gives the transport and storage layers a structured object rather than an assortment of unrelated textual messages.
The set is also the smallest object an aggregator retrieves. This choice matters because consumers do not request every individual value independently. The grouping controls the amount of work associated with an update, the memory layout, and the opportunities for different collection schedules. It also means that a deployment must choose sensible set boundaries: values with very different observation needs may deserve separate treatment.
Samplers are written in C and loaded as plugins. More than one plugin can operate within a daemon, and more than one daemon or sampler can exist on a host. This flexibility supports heterogeneous resource interfaces, but it does not prevent duplicated work automatically. The paper specifically leaves avoidance of overlapping sampling to the operator.
Read local sources at a chosen frequency
A sampler periodically reads its sources and replaces the values held in its metric set. It does not maintain a local historical sequence. That keeps the producer’s responsibility narrow: expose the current observation coherently, rather than accumulate an archive on every compute node.
Sampling frequency is configured by the user and can change during execution. Plugins may run according to elapsed intervals or in relation to wall-clock time. The latter option allows coordinated sampling across nodes. This distinction becomes important when considering interference: independent interruptions can affect different parts of a parallel computation, whereas aligned sampling can concentrate disturbance into shared windows.
The daemon uses a common worker pool to run sampler activity. Scheduling is supported by Libevent, with the paper specifying version 2.0 or newer. Worker-pool size is a deployment choice. The authors do not claim that adding threads removes the cost of reading counters or processing resource information.
Local interfaces depend on the platform. Chama obtains its observations from /proc and /sys. Blue Waters additionally requires access to information derived from the Gemini network’s performance counters. The common metric-set interface sits above those platform-specific acquisition mechanisms.
Keep data and its description connected
Each metric set has contiguous memory for its description and for its current values. The descriptive portion identifies fields, their types, their positions in the value area, and an operator-selected component identifier. It also carries the metadata generation number, abbreviated MGN.
MGN changes when the description changes. A consumer can therefore check whether the description it already holds belongs to the values it has received. This is a schema-compatibility safeguard. Without it, an apparently successful transfer could still be interpreted incorrectly if the producer had changed the meaning or arrangement of fields.
The value area includes the corresponding MGN, the observations themselves, a data generation number, and a consistency flag. The data generation number, abbreviated DGN, advances as values are updated. It helps a consumer distinguish new data from a previously seen state. The consistency flag indicates whether the set represents a completed sampling event.
These fields solve related but different problems. Metadata identity concerns interpretation. Data generation concerns freshness. Consistency concerns whether a sampling update was complete when observed. None can substitute fully for the others: a new value area may still be incomplete, and a coherent value area may still require a changed description.
Establish retrieval connections
An aggregator opens connections to the samplers or aggregators from which it will retrieve metric sets. Configuration specifies the target, transport, and collection period. Several sets can be associated with a connection, while differing collection requirements can lead to multiple connections to the same target.
Before receiving regular updates, the aggregator looks up the named set. A successful lookup supplies the information needed to construct a local counterpart of the remote set. If the lookup fails, the aggregator tries again during a later update cycle. The design therefore allows a target or set to become available after the collecting daemon has started.
The daemon supports socket transport and RDMA transports for the relevant networks. RDMA allows the data-fetching operation to avoid the remote CPU involvement associated with an ordinary software-mediated transfer. This does not make monitoring free: counters still have to be sampled, connections maintained, and data handled downstream. It reduces a particular part of the interference path.
LDMS uses an owner-controlled local UNIX-domain socket for configuration access. Permissions on that socket regulate who can issue configuration commands. The data-transfer connection uses the selected transport rather than requiring configuration and ongoing metric movement to have identical mechanisms.
Pull through a hierarchy
An aggregator can retrieve sets from another aggregator. This allows collection trees with more than a single intermediate stage. A lower-level collector can handle a group of monitored nodes, while a higher-level collector gathers their observations and perhaps writes the final archive.
The paper reports transport-dependent fan-in limits. Here fan-in means the number of source hosts handled by a collector. It is approximately 9,000:1 for the socket and Infiniband RDMA cases described. Gemini RDMA supports a larger fan-in. These are capabilities of the reported implementations, not assurances that every collector host can sustain that workload with any metric set or storage configuration.
At higher stages, ordinary machine limits still apply. Memory must hold the collected sets and connection state. CPU capacity must support collection work. Network and storage bandwidth must accommodate the resulting stream. A hierarchy changes where work occurs; it does not eliminate the work or make the final storage destination unlimited.
Collection runs independently of sampling. Distinct sets can have different retrieval periods, and their schedules need not align with local observation updates. Unlike sampling intervals, the paper says an aggregation schedule requires a restart to change once established. This is a practical configuration boundary that matters when planning adaptive observation.
Manage workers and unavailable targets
Aggregator pulls are executed by a shared worker pool. Under normal conditions, the authors recommend a pool no larger than the available core count. The complication is waiting: unavailable targets can occupy workers while connections remain pending. A larger pool may then prevent all collection progress from being trapped behind failed or unreachable hosts.
This is a conditional recommendation, not a universal preference for more threads. A deployment with many unavailable nodes behaves differently from a healthy one. The relevant question is whether workers are spending their time doing useful collection or waiting for connections that cannot complete.
LDMS also supports standby connections. A backup aggregator can retain connections to sources that a primary normally collects. If the backup receives notice that the primary has failed, it can begin pulling those sources without first constructing the entire connection state.
The paper is explicit about the missing piece: LDMS does not internally determine that the primary has failed. An operator or an external watchdog must detect the condition and notify the backup. Thus the implemented mechanism supports prepared failover, while failure detection remains outside it.
Accept coherent updates for storage
The storage layer operates on aggregators and has a dedicated pool for flushing observations. Storage plugins determine the output representation. The paper describes MySQL, flat-file alternatives, and Scalable Object Store, abbreviated SOS. Flat files may organize values by measurement type or place an entire metric set in a CSV record.
A timestamp and configured component identity accompany the stored observations. These fields support later association with nodes and other external records. Their usefulness depends on preserving the meaning of the identifiers throughout deployment and analysis.
Not every pull produces an archival write. Because sampling and retrieval are asynchronous, a collector may see the same generation again. It may also arrive while a sampler is changing its set. DGN and consistency status let the storage path avoid writing those repeated or incomplete observations.
The system then waits for the next scheduled retrieval rather than pretending that an invalid observation was successfully captured. This protects the archive’s interpretation, but it also means collection frequency does not guarantee a corresponding number of stored records. A missing accepted update and a repeated old value are different from fresh measurements.
Adapt the interfaces to each machine
Blue Waters required a platform-specific route from hardware counters to meaningful resource observations. A startup script configures Cray’s gpcdr module using metric definitions and current routing information. That module exposes the resulting quantities through /sys, allowing the sampler to read them from user space.
The routing dependence is important. A metric such as delivered bandwidth is not necessarily a single raw counter with an obvious interpretation. The startup configuration determines which underlying counters contribute to the intended observation on that node. The paper treats access to these counters and transport functionality as practical engineering constraints, not merely configuration details.
On Blue Waters, compute-node daemons start from the boot image. Aggregators occupy service nodes selected with network placement in mind. Their records pass through named pipes and syslog-ng into the Integrated System Console, which combines operational information from across the platform. The archive supports later investigations, while recent records remain available for active queries.
Chama uses a different hierarchy. Compute nodes host samplers, service nodes collect through RDMA, and a storage-equipped machine runs a higher-level aggregator using socket transport and CSV output. Startup scripts establish the deployment from machine-specific configuration. LDMS does not discover and construct this topology automatically.
Experiments and results
The evaluation asks whether continuous monitoring is affordable and whether it disturbs the applications it observes. Those are related questions, but the paper investigates them with different evidence. Resource accounting describes the monitoring processes themselves. Application and benchmark runs test whether those processes noticeably change execution. Finally, production records illustrate what the resulting observations reveal.
This work belongs to evaluation and benchmarking through controlled systems measurements rather than prediction accuracy on a labeled dataset. There is no train/test split. The relevant conditions include the host platform, collection configuration, application placement, and monitoring frequency.
Deployment footprint
The installation occupies less than four megabytes of filesystem space. With typical configurations, a sampler needs under two megabytes of memory on each node. The daemon operates at node level, although platform mechanisms can bind it to a selected core. That distinction matters when comparing its memory use with Sandia’s per-core allowance.
Metric-set memory differs between deployments: Chama uses 44kB, while Blue Waters uses 24kB. These are not interchangeable workloads. The Chama configuration includes several sets, whereas Blue Waters uses a custom combined set. A smaller set footprint therefore does not by itself demonstrate a more efficient implementation.
With samples taken once per second, the sampler reportedly uses a few hundredths of one percent of a CPU core on each of the two platforms. The larger collection stages have different costs. On Chama, a first-stage aggregator gathers 7 metric sets containing 467 metrics from 156 samplers at 20 second collection periods. It uses about 0. Memory usage is 33MB, and CPU usage is 1 percent of a core.
Chama’s upper aggregator gathers from 8 intermediate aggregators. Its reported resource usage is roughly 2 percent of a core, with memory consumption of 150MB. Blue Waters aggregators handle a larger active source group, collecting 194 metrics from 6916 nodes while retaining standby state for another 6912 nodes. Each receives 992MB of allocated memory and uses roughly a full core.
These results show why a small producer footprint does not imply negligible system-wide infrastructure. The architecture deliberately moves substantial connection and collection work away from compute nodes. That is useful when application interference is the main concern, but the service-node resources still have to be provisioned.
Network and archive volume
On Chama, the collected value payload for its 7 metric sets is 4kB per node. The paper describes the resulting additional traffic as 5MB crossing the fabric every 20 seconds, distributed across the system rather than concentrated on a single link. For Blue Waters, the corresponding stated data volume is 44MB.
The storage discussion makes the long-term consequence concrete. For Chama’s 1296 nodes and its production collection configuration, the authors estimate annual CSV storage at about 10 terabytes before compression and 2.5 terabytes after compression. The comparison below concerns those stated archival volumes, not measured application performance or a separately evaluated compression method.
Chama annual monitoring archive, stated storage volume
Compression reduces the retained volume for this deployment's monitoring records.
The numbers
| System or setting | terabytes |
|---|---|
| Raw CSV | 10 |
| Compressed archive (this paper) | 2.5 |
Blue Waters produces about 43 gigabytes of raw CSV records daily, described as 16 terabytes annually. The paper cautions that record formatting differs between deployments: Blue Waters writes a component identifier once per metric-set record, while Chama repeats it for individual metrics. Volume comparisons therefore reflect representation choices as well as machine size, collection frequency, and metric count.
Blue Waters: sensitive noise measurements
PSNAP measures execution-time variability using a calibrated loop. Running without its barrier option keeps each node’s timing behavior independent, making it useful for detecting local disturbance. The Blue Waters test uses 32 tasks per node and a 100 microsecond loop.
At the sampling frequency of 1 second, the monitored run contains an additional 50 − 60 delayed events among 16 million events. Their additional delays fall in the 375 − 475 microsecond range. The authors relate that pattern to sampling work taking around 400 microseconds.
This is positive evidence of monitoring interference at a fine timescale. It does not contradict the low average footprint; brief interruptions can be rare enough to consume little aggregate CPU time while remaining visible to a sensitive timing probe. It also explains why application-level tests are necessary. Different applications may absorb, amplify, or hide such interruptions.
The authors discuss coordinated sampling as a possible way to limit how interruptions spread across application iterations. In an MPI computation, one delayed process may cause others to wait. Independent local sampling can therefore have consequences beyond the node where the observation was taken.
Blue Waters: application and communication tests
MILC supplies an application sensitive to interconnect behavior. The test runs on 2744 XE nodes using topology-aware placement to reduce congestion. Its communication includes a 64B Allreduce payload in a computationally important phase. The authors examine timing across phases instead of treating the program as an undifferentiated total.
Measured variations do not follow a consistent pattern of worsening as the monitoring configuration becomes more demanding. Differences in average phase time lie within broad observed ranges. The paper consequently reports no statistically significant monitoring effect for this experiment, while acknowledging the variability in the measurements.
LinkTest isolates individual network-link behavior. It performs 10,000 iterations with 8kB messages and compares unmonitored execution with monitoring every second. The unmonitored packet time is 1.74278 milliseconds; the monitored result is reported as 20 nanoseconds shorter. The authors regard that difference as statistically insignificant. It should not be interpreted as a monitoring-induced speedup.
MiniGhost examines communication behavior through total time, communication time, and a phase involving barrier waiting. The selected input produces about 90 second execution on 8,192 nodes. The extreme monitoring conditions are each repeated three times, using the same nodes and an ordering informed by the communication pattern. None of the reported measures shows a negative effect from the frequent-monitoring condition.
The Intel MPI benchmark supplies another communication-focused comparison. Its AllReduce experiment uses 2744 nodes, 24 tasks per compute node, and a 64B payload. Placement is optimized for network performance. Again, the observed changes do not correlate with the different LDMS configurations.
Taken together, these tests cover several plausible routes for disruption. Local sampler work could produce operating-system noise; metric transfers could compete for communication resources; synchronization could amplify a delayed participant. The collection does not establish every possible application’s sensitivity, but it is more informative than a resource-footprint measurement alone.
Chama: controlled application ensembles
The Chama study compares no monitoring, production-rate monitoring, and frequent monitoring. The paper abbreviates these conditions as NM, LM, and HM. LM samples at 20 second intervals, while HM samples at 1 second intervals.
Applications run as a consistent ensemble intended to occupy nearly the whole machine. Nalu simulations use 1,536 and 8,192 processing elements. CTH simulations use 1,024 and 7,200, while Adagio simulations use 512 and 1,024. Individual simulations retain the same node assignments, and the ensemble is repeated three times.
The machine is reserved for this study, so other local simulations are absent. However, its Lustre filesystem is shared with another cluster. That leaves an external source of variability even during the controlled allocation. The authors acknowledge this rather than treating reserved compute nodes as a completely isolated environment.
Nalu is selected in part because its execution includes substantial computation and synchronization. Preliminary traces over 5 timesteps assign 47.5% of time to computation, 44% to MPI synchronization, and 8.5% to other MPI activity. These characteristics make both local interruptions and network disturbance relevant concerns.
Its larger simulation also displays substantial baseline variation. The continuity-equation phase has a 200 second spread even without monitoring. Variability of that magnitude overwhelms the apparent changes associated with LDMS. The authors conclude that monitoring has no practical effect detectable in these Nalu runs, while treating the underlying unexplained variation as a separate issue requiring investigation.
Adagio exercises computation, communication, and substantial filesystem activity. It is included because the relevant application family occupies a large share of Sandia’s computing use. Its measured runtime variation provides no appreciable evidence of an LDMS penalty beyond the noise already present.
CTH adds an application with large exchanges between neighboring processes and smaller collective operations. The tested simulations target approximately 18 minutes of sustained execution. The observed runtimes do not appear to change because of monitoring. This supports the same practical conclusion as the other application tests, under the configurations actually exercised.
Chama: a larger noise tail under full sampling
The Chama PSNAP comparison includes a reduced monitoring configuration. HM HALF retains sampling every second but uses samplers responsible for about half the measurements. The full HM condition includes all samplers at that frequency.
With barrier mode disabled, the experiment runs a 100-microsecond loop for 1M iterations across 1200 nodes. The unmonitored and reduced configurations have comparable distributions. Full monitoring produces substantially more observations in the delayed tail.
This result makes sampler selection part of the overhead story. The transport architecture alone cannot determine interference, because plugins differ in the work needed to obtain observations. A deployment that adds expensive sampling sources should not inherit a low-overhead claim without renewed testing.
What continuous observations reveal
The characterization section examines 24 hour periods. Blue Waters contributes 35 million observations per metric and 6.8 billion observations overall. Chama contributes 5.6 million per metric and 2.6 billion overall. These quantities demonstrate substantial production collection, but the authors present only initial views of those records.
Blue Waters network data includes the fraction of time spent stalled in each link direction. The largest observed stall value is 85 percent in X+. Viewing the event against mesh coordinates reveals spatial concentrations that a system-wide average would conceal.
A bandwidth observation reaches 63 percent in Y+. The point of the example is its visibility against typical behavior during that period, rather than a claim that the machine had reached its overall capacity. The percentage also depends on estimated theoretical link bandwidth, so it must be interpreted with that denominator in mind.
Filesystem observations reveal a broad burst of opens with a nonuniform spatial distribution. On Chama, joining scheduler data to measurements identifies a 64 node job whose memory demands are uneven and change over time. The job is terminated by the out-of-memory mechanism, and the profile shows why a single aggregate memory number would be inadequate for understanding its resource needs.
What the ablations show
The paper does not present a formal ablation campaign for every architectural component; it offers monitoring-condition comparisons, reduced-sampler experiments, noise probes, and application-level controls.
Disabled transport separates local and distributed effects
Some Blue Waters benchmark configurations disable aggregation and storage while retaining local observation. These conditions are identified in the paper’s figure as having no network component. Their purpose is to distinguish the cost of sampling on the compute node from effects associated with moving and retaining measurements.
That is a useful decomposition because a slowdown under monitoring can have several causes. Reading operating-system data may interrupt computation. Sending the resulting records may consume shared communication capacity. Storage may introduce another bottleneck downstream. Removing part of the path creates a more focused question than comparing only the full system with no monitoring.
The reported benchmark patterns do not show a consistent deterioration across these settings. This weakens the hypothesis that LDMS’s added communication produces a substantial penalty in those tests. It does not establish an independent quantitative bound on each component, because the prose does not report a complete set of component-specific effect estimates.
Collection frequency tests a more demanding regime
Production settings are not the only conditions tested. Both deployments investigate sampling every second, even though their routine operation uses longer intervals. This comparison matters because a system may appear harmless simply because it does very little work during a short test.
Frequent sampling increases opportunities for local interruption and metric transfer. The application results remain broadly reassuring, while the timing probes expose fine-scale disturbance. These findings are compatible: a more demanding configuration can measurably affect local timing without creating an appreciable end-to-end application penalty in the tested runs.
The frequency comparison also establishes a practical distinction between feasibility and operational choice. Demonstrating that a frequent setting is tolerable does not mean it is always the best production setting. Storage volume, diagnostic need, and application sensitivity still influence that decision.
Reduced samplers identify acquisition cost
HM HALF is the clearest component-reduction experiment. Its comparison with full HM keeps the frequent observation regime while reducing the active measurement sources. The smaller tail under the reduced condition implicates the amount or cost of sampling work rather than merely the fact that a daemon is present.
The result does not identify which individual sampler is responsible. Nor does it establish that all metrics contribute equally to overhead. The authors’ interpretation is appropriately general: both the number of samplers and how long they spend acquiring data matter.
For an engineer reusing this evaluation pattern, the important lesson is diagnostic granularity. An overall acceptable runtime can coexist with a sensitive probe’s warning. Conversely, a warning does not specify which component to remove. Further targeted comparisons would be needed before assigning responsibility to a particular source.
Repetition and fixed placement constrain alternative explanations
The application comparisons repeat runs and preserve node assignments. Blue Waters tests also use topology-aware placement for selected workloads. These controls reduce the chance that different allocations, instead of monitoring, explain observed variation.
They cannot remove all noise. Chama’s shared filesystem remains a possible external influence, and Nalu exhibits large unmonitored variation. The authors’ cautious language is therefore important: a result can show no practical impact within the observed variation without proving that the true effect is exactly absent.
The paper also reports ranges for benchmark observations. These communicate variability, but the discussion does not supply a comprehensive statistical procedure for every conclusion. Statements about significance should consequently be read as the authors’ interpretation of their experiments, with the scope provided by each workload and setting.
Limitations
The strongest limitation stated by the authors is scope. LDMS provides collection, transport, and storage. The characterization section offers initial views, while broader data analysis lies outside the work. Seeing an unusual stall region or memory pattern is valuable, but the paper does not establish an automatic causal explanation for each event.
An author-stated operational limitation concerns failover. Standby connections can be prepared, yet primary failure detection requires an external program or human action. A deployment that needs unattended recovery must therefore supply and evaluate additional machinery. The existence of standby state alone is insufficient evidence of complete fault handling.
Configuration is also explicit rather than discovered. The authors tailor machine-specific files so daemons connect appropriately. This can give operators control over the hierarchy, but it creates an administrative dependency: the configured view must remain aligned with the actual machine. The paper does not evaluate the cost or reliability of maintaining that alignment over many changes.
Another stated boundary concerns scheduling changes. Sampler frequency can be adjusted while running, but changing an established aggregation schedule requires restarting the aggregator. A system needing rapid changes in collection behavior would have to account for that interruption and the resulting operational consequences.
Storage capacity limits the Blue Waters live database. The authors keep only part of the data there and archive the rest. Their proposed split between raw archival records and prepared recent-query records is future work. It should not be credited as an evaluated optimization or an implemented solution to database cost.
A limitation visible in the experimental setup is the distinction between nondetection and absence. Several application results vary substantially, and the larger Nalu case has considerable baseline instability. Such experiments can establish that an effect is not practically apparent under those conditions. They cannot exclude every smaller penalty hidden inside the variation.
The noise probes make this distinction especially clear. LDMS does create additional delayed events, and the full Chama sampler configuration worsens the timing tail relative to reduced sampling. Any broad description of the system as having no impact would lose an important part of the evidence. Low impact is a conditional engineering result.
The workload coverage is substantial but finite. The tests include applications and communication benchmarks selected for relevant sensitivities. They do not cover every application structure, runtime duration, filesystem access pattern, or synchronization behavior. A new deployment with unusually sensitive timing requirements would still need its own application tests.
Resource-footprint values also depend on configuration. Plugin behavior, metric-set size, collection frequency, and output representation all affect cost. The paper says so directly. Its reported memory and CPU demands should guide expectations, not be treated as fixed constants that apply to arbitrary extensions.
The tool comparisons are another boundary. Earlier systems are discussed through their supported features and intended uses. There is no matched experimental comparison showing that LDMS consumes less CPU, memory, or network bandwidth than every alternative under equivalent conditions. The contribution is a demonstrated fit to the authors’ requirements, not a universal ranking.
The visual characterizations have presentation choices that affect interpretation. Points are enlarged to emphasize prominent behavior, and values below a threshold of 1 are omitted. These choices help reveal high-value regions but do not show the complete underlying distribution. Absence from a displayed plot therefore does not necessarily mean absence from the records.
Some measurements also require derived interpretation. The reported bandwidth percentage uses estimated theoretical maxima for link types. Scheduler joins depend on correctly relating jobs to nodes and times. These are sensible analytical steps, but the resulting views inherit the assumptions and correctness of those transformations.
Finally, the observational examples support diagnosis more directly than causation. Spatially aligned stalls or an imbalanced memory profile can guide investigation. They do not, on their own, prove which application caused a shared-resource event or which intervention would resolve it. The paper’s restrained characterization claims are stronger when kept within that evidential boundary.
What came after
The paper ends with a concrete continuation: making recent operational queries cheaper without sacrificing detailed historical evidence. Blue Waters retains only part of its observations in the live database because high-performance storage is costly. The remainder remains available as an archive for later investigation.
Raw filesystem and network counters are useful evidence, but many practical queries require rates or other processed quantities. Performing that processing repeatedly inside the database generates substantial input/output activity. The authors therefore propose preparing suitable derived values before they enter the recent-query store.
Their proposed storage path would produce separate CSV outputs for archival and immediate-query purposes. The archive would retain detailed counter information. The recent-data representation would contain values better suited to expected queries, potentially using smaller types than the original 64 bit counters. The intended benefit is a longer useful live history within available database resources.
This remains a plan in the paper. It is not accompanied by an implementation result, a measured query-speed improvement, or a demonstrated extension of retention duration. The separation is nevertheless a natural continuation of LDMS’s architecture: storage plugins already provide a boundary at which downstream representations can diverge.
There is no substantiated later-work sequence to describe here. The evidence does not identify subsequent papers that adopted LDMS, evaluated its later versions, or carried out this proposed storage design. Its documented contribution remains the original production infrastructure, the measurements of its footprint and interference, and the demonstration that continuously collected resource data can reveal conditions surrounding application execution.
Cite
Cite as Anthony Agelastos, Benjamin A. Allan, Jim M. Brandt, paul cassella, Jeremy J. Enos, Joshi Fullop, Ann Gentile, Steve Monk, Nichamon Naksinehaboon, Jeff Ogden, Mahesh N. Rajan, Michael T. Showerman, Joel O. Stevenson, Narate Taerat and Tom Tucker. 2014. The Lightweight Distributed Metric Service: A Scalable Infrastructure for Continuous Monitoring of Large Scale Computing Systems and Applications. 2012 International Conference for High Performance Computing, Networking, Storage and Analysis.
@inproceedings{agelastos2014lightweight,
title = {{The Lightweight Distributed Metric Service: A Scalable Infrastructure for Continuous Monitoring of Large Scale Computing Systems and Applications}},
author = {Anthony Agelastos, Benjamin A. Allan, Jim M. Brandt, paul cassella, Jeremy J. Enos, Joshi Fullop, Ann Gentile, Steve Monk, Nichamon Naksinehaboon, Jeff Ogden, Mahesh N. Rajan, Michael T. Showerman, Joel O. Stevenson, Narate Taerat and Tom Tucker},
booktitle = {2012 International Conference for High Performance Computing, Networking, Storage and Analysis},
year = {2014},
doi = {10.1109/sc.2014.18},
url = {https://doi.org/10.1109/sc.2014.18}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/agelastos-2014-lightweight-distributed-metric-service-scalable/