Skip to content

LML (Large-scale system Markup Language)

LML (Large-scale system Markup Language) is an XML-based markup language and XML Schema designed to describe the status and monitoring information of parallel and HPC systems.

LML acts as a standardized, architecture-independent abstraction layer between data collectors (such as LLview Plugins) and LLview's server-side processing (dbupdate action) and web client. Because LML is defined by an XML Schema (lgui.xsd), LML files generated by custom plugins or scripts can be validated directly against the schema.


Core Structure

Every LML document uses <lml:lgui> as its root element under the target namespace http://eclipse.org/ptp/lml:

<?xml version="1.0" encoding="UTF-8"?>
<lml:lgui xmlns:lml="http://eclipse.org/ptp/lml"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://eclipse.org/ptp/lml http://eclipse.org/ptp/schemas/v1.1/lgui.xsd"
          version="1.1">
  <objects>
    ...
  </objects>
  <information>
    ...
  </information>
</lml:lgui>

Primary Data Elements

For data collection and database ingestion in LLview, the following sections are used:

  • <objects>: Declares the list of monitored entities (<object>), each with:
    • id: A globally unique identifier within the file (e.g., j001, nd001, pstat_getjobinfo).
    • name: The entity name (such as a job ID, node hostname, or step name).
    • type: The entity category (such as job, node, system, reservation, step, or pstat).
  • <information>: Contains detailed attributes for each declared object inside <info> blocks:
    • oid: References an existing <object id="..."> (enforced by the schema's infoRef key-reference constraint).
    • type: Typically "short" for standard metric records.
    • <data key="..." value="..."/>: Key-value attribute pairs describing the object's state and metrics.
  • <relations> (optional): Expresses explicit relationships (<rel>) between declared objects via keyid and <el refid="..."/> references.

Graphical and Layout Elements

The full LML schema also defines elements for describing visual components and dashboard layouts:

  • Graphical components: <table>, <usagebar>, <text>, <infobox>, <nodedisplay>, <chart>, <chartgroup>, and <request>.
  • Layout definitions: <splitlayout>, <abslayout>, <tablelayout>, <nodedisplaylayout>, <usagebarlayout>, <chartlayout>, <infoboxlayout>, and <textlayout>.

Example LML File

Below is an example of an LML file generated by an LLview plugin containing node records and plugin timing statistics (pstat):

<?xml version="1.0" encoding="UTF-8"?>
<lml:lgui xmlns:lml="http://eclipse.org/ptp/lml"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://eclipse.org/ptp/lml http://eclipse.org/ptp/schemas/v1.1/lgui.xsd"
          version="1.1">
  <objects>
    <object id="nd0" name="node001" type="node"/>
    <object id="nd1" name="node002" type="node"/>
    <object id="pstat_getnodeinfo" name="getnodeinfo" type="pstat"/>
  </objects>
  <information>
    <info oid="nd0" type="short">
      <data key="id"          value="node001"/>
      <data key="ncores"      value="384"/>
      <data key="nsmts"       value="2"/>
      <data key="state"       value="Idle"/>
      <data key="physmem"     value="768000"/>
    </info>
    <info oid="nd1" type="short">
      <data key="id"          value="node002"/>
      <data key="ncores"      value="384"/>
      <data key="nsmts"       value="2"/>
      <data key="state"       value="Running"/>
      <data key="physmem"     value="768000"/>
    </info>
    <info oid="pstat_getnodeinfo" type="short">
      <data key="startts"       value="1700000000.0"/>
      <data key="datats"        value="1700000000.0"/>
      <data key="endts"         value="1700000001.2"/>
      <data key="duration"      value="1.2"/>
      <data key="nelems"        value="2"/>
      <data key="__nelems_node" value="2"/>
    </info>
  </information>
</lml:lgui>

Schema & Database Rules

  • Unique IDs: Every <object> must have a unique id, and every <info oid="..."> must reference a valid <object id="..."> in the same file.
  • Quote Escaping: Attribute values inside <data value="..."/> should avoid unescaped double quotes (").
  • Element Counts (__nelems_<type>): Plugins include __nelems_<type> inside the pstat entry so dbupdate knows how many elements were collected—especially when an object list is empty (e.g., zero active reservations).