Docs · I/O adapters

Adapter configuration reference.

The adapters have no configuration file of their own. They are configured by the runtime's compose (which pools exist), by environment variables, by HDF5's connector strings and by a few C entry points. This page lists all of them with their defaults.

Adapter config file
None
Runtime config
CLIO_SERVER_CONF
HDF5 strings
key=value
Install
Spack or a CMake source build

Pools the runtime must compose

AdapterNeedsHow it finds it
POSIX, STDIO, MPI-IOA clio_cte_filesystem pool, over a CTE chainBy pool name clio_cte_filesystem, or CLIO_CFS_POOL (a name, or an id such as 560.0). The interceptors create no pool.
HDF5 VOL, ADIOS2A clio_cte_core pool with at least one storage tierBy pool name clio_cte_core, or CLIO_CTE_POOL=major.minor.
HDF5 VFDNothing, unless the read tier is on; then both of the aboveAs above.

The default configuration (context-runtime/config/clio_default.yaml, copied to ~/.clio/clio.yaml) composes the filesystem pool at 560.0, so the interceptors work with a plain clio-run start. Its CTE core pool is named cte_main, which the HDF5 connectors' lookup by name misses; rename it to clio_cte_core, or start from context-transfer-engine/adapter/config/clio_hdf5_quickstart.yaml, a small RAM-only configuration whose pool already has that name. The minimum for the HDF5 connectors and the ADIOS2 engine is the compose section of that file:

yaml · clio-hdf5.yaml
compose:
  - mod_name: clio_bdev
    pool_name: "ram::chi_default_bdev"
    pool_query: local
    pool_id: "301.0"
    bdev_type: ram
    capacity: "256MB"
  - mod_name: clio_cte_core
    pool_name: clio_cte_core          # the name clients look up
    pool_query: local
    pool_id: "512.0"
    storage:
      - path: "ram::cte_ram_tier1"
        bdev_type: "ram"
        capacity_limit: "256MB"
        score: 1.0
    dpe:
      dpe_type: "max_bw"

The filesystem pool's own keys are in the Context FS reference; the compose file format is in the runtime reference.

Variables every adapter reads

VariableDefaultEffect
CLIO_SERVER_CONF~/.clio/clio.yamlRuntime configuration. Clients read it too: set it to the file the runtime was started with. A missing or unparseable file aborts the client process.
CLIO_WITH_RUNTIMEunset (attach only)1 makes the process try to become the runtime itself and attach if one already owns the port, as the adapters' tests do. 0 or unset attaches to a running clio-run.
CLIO_WAIT_SERVER30Seconds a client waits for a runtime at attach. 0 fails immediately, -1 waits forever.
CLIO_XTCPClient transport to the runtime: SHM, TCP or IPC. See the runtime docs.
CLIO_REQUIRE_RUNTIMEoffHDF5 connectors only. Any value other than empty, 0, off, false or no makes an open fail when the CLIO tier cannot be reached, instead of falling back to native-only. It does not override a cache that was switched off on purpose.

POSIX, STDIO and MPI-IO interceptors

VariableDefaultEffect
LD_PRELOADnoneLoads the interceptor: libclio_cte_posix.so, libclio_cte_stdio.so, libclio_cte_mpiio.so (space- or colon-separated for several). The MPI-IO library must load before libmpi.
CLIO_CFS_POOLclio_cte_filesystemThe filesystem pool to bind: a pool name, or major.minor for an id.
CLIO_CFS_SHM_READon0 turns off serving committed pages straight from shared memory; every read then goes to the filesystem module. For diagnosis.

Paths are selected by the clio:: marker, not by configuration: a path is intercepted when it starts with clio:: or has a component starting with it, and the marker is removed to form the clio-fs path. Descriptors start at 8192. There is no other per-file setting.

HDF5 VOL connector

Selection

VariableValue
HDF5_PLUGIN_PATHDirectory containing libclio_hdf5_vol.so
HDF5_VOL_CONNECTORclio, optionally followed by a space and a config string: clio cache=0;chunk_size=1048576

Config string keys: cache (boolean: 1/on/true/yes or 0/off/false/no), chunk_size (plain decimal bytes, no unit suffix, greater than 0), under_vol and under_info (accepted, not applied: the connector always delegates to the native connector). Any other key fails the open.

Environment

VariableDefaultEffect
CLIO_VOL_CACHEon0/off/false/no: pure pass-through, no runtime needed.
CLIO_VOL_CHUNK_SIZE65536Blob size of cached dataset images, in bytes. Overrides chunk_size from the string or info struct. Part of the coherence stamp.
CLIO_VOL_ADMITread-missWhen to stage: write, read-miss, second-access. Default is write when CLIO_STAMP_SETTLE_MAX_NS is set.
CLIO_VOL_ADMIT_COSTon0 disables the cost gate and stages every eligible transfer.
CLIO_VOL_TIER_FIXED_US60Cost-model seed: fixed microseconds per tier request.
CLIO_VOL_TIER_MBPS1200Cost-model seed: tier bandwidth in MB/s.
CLIO_VOL_MIN_STAGE_BYTES0Do not stage images smaller than this.
CLIO_VOL_MAX_SERVE_BYTES1073741824Larger datasets are not served from the cache for partial reads.
CLIO_VOL_TIER_RETRY_MS5000Back-off after the tier reports it is full, before staging is tried again.
CLIO_VOL_TRACEunsetDirectory for <file>.<pid>.access.jsonl and <file>.<pid>.access.json telemetry.

C API

Header context-transfer-engine/adapter/hdf5_vol/clio_vol.h:

c
#define CLIO_VOL_CONNECTOR_NAME    "clio"
#define CLIO_VOL_CONNECTOR_VALUE   600
#define CLIO_VOL_DEFAULT_CHUNK_SIZE (64 * 1024)
#define CLIO_VOL_CACHE_UNSET 0      /* environment decides */
#define CLIO_VOL_CACHE_ON    1
#define CLIO_VOL_CACHE_OFF   2

typedef struct clio_vol_info_t {
    hid_t  under_vol_id;    /* H5VL_NATIVE */
    void  *under_vol_info;
    size_t chunk_size;      /* 0 = default */
    int    cache_enabled;   /* CLIO_VOL_CACHE_{UNSET,ON,OFF} */
} clio_vol_info_t;

hid_t H5VL_clio_register(void);

Zero-initialize clio_vol_info_t and pass it to H5Pset_vol(fapl, H5VL_clio_register(), &info).

HDF5 VFD

Selection and driver string

Variable or keyDefaultEffect
HDF5_PLUGIN_PATHnoneDirectory containing libclio_vfd.so.
HDF5_DRIVERnoneclio_vfd selects the driver.
HDF5_DRIVER_CONFIG cache=10: native-only, no runtime.
HDF5_DRIVER_CONFIG fsync=01: fsync the native file in H5Fflush and H5Fclose.
HDF5_DRIVER_CONFIG sieve=65536Vector-I/O coalescing window in bytes, 0 to 1 GiB.

Environment

VariableDefaultEffect
CLIO_VFD_CACHEon0/off/false/no: native-only. Can switch off what the FAPL asked for, never on.
CLIO_VFD_READ_TIERoffAny value other than empty or 0 enables the experimental read tier (populate and serve).
CLIO_VFD_FSYNCoff1/on/true/yes: the fsync barrier for every file in the process. Can switch on, never off.
CLIO_VFD_VECTOR_IOoffAdvertise the vector-I/O callbacks to HDF5 (and so use the sieve window).
CLIO_VFD_MAX_IO_BYTES1073741824Largest single pread/pwrite; larger transfers are split.
CLIO_VFD_TRACEunsetDirectory for byte-level access telemetry.
CLIO_VFD_DEBUGunsetPrint each read and write to stderr.

C API

Header H5FDclio.h, installed to include/adapter/vfd/:

c
#define H5FD_CLIO_NAME  "clio_vfd"
#define H5FD_CLIO_VALUE ((H5FD_class_value_t)(3200))

herr_t H5Pset_fapl_clio(hid_t fapl_id, hbool_t cache_enabled);
herr_t H5Pget_fapl_clio(hid_t fapl_id, hbool_t *cache_enabled /*out*/);

Coherence stamps (both HDF5 connectors)

VariableDefaultEffect
CLIO_STAMP_GRANULARITY_NS10000000 (10 ms); 1 s on WindowsA stamp is withheld while the file's modification time is younger than this. Raise it on coarse-timestamp filesystems. CLIO_VOL_STAMP_GRANULARITY_NS is the older name and still read.
CLIO_STAMP_SETTLE_MAX_NS0 (off)Wait up to this long at close for the timestamp to settle, so the stamp is kept. Safe only for single-writer pipelines; about two granules enables it.

ADIOS2 engine

SettingDefaultEffect
ADIOS2_PLUGIN_PATHnoneDirectory containing libiowarp_engine.so.
Engine type / PluginLibrarynonePlugin / iowarp_engine. PluginName is any label.
IOWARP_PPN12Ranks per node, used to stagger start-up by local rank.
CLIO_INIT_STAGGER_MS250Delay per local rank before connecting to the runtime.
CLIO_INIT_ATTEMPTS60Connection attempts before the engine throws.
CLIO_INIT_SLEEP_MS3000Mean pause between attempts; each pause is drawn from 0.5x to 1.5x of it.

Where to go next