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
| Adapter | Needs | How it finds it |
|---|---|---|
| POSIX, STDIO, MPI-IO | A clio_cte_filesystem pool, over a CTE chain | By 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, ADIOS2 | A clio_cte_core pool with at least one storage tier | By pool name clio_cte_core, or CLIO_CTE_POOL=major.minor. |
| HDF5 VFD | Nothing, unless the read tier is on; then both of the above | As 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:
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
| Variable | Default | Effect |
|---|---|---|
CLIO_SERVER_CONF | ~/.clio/clio.yaml | Runtime 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_RUNTIME | unset (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_SERVER | 30 | Seconds a client waits for a runtime at attach. 0 fails immediately, -1 waits forever. |
CLIO_X | TCP | Client transport to the runtime: SHM, TCP or IPC. See the runtime docs. |
CLIO_REQUIRE_RUNTIME | off | HDF5 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
| Variable | Default | Effect |
|---|---|---|
LD_PRELOAD | none | Loads 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_POOL | clio_cte_filesystem | The filesystem pool to bind: a pool name, or major.minor for an id. |
CLIO_CFS_SHM_READ | on | 0 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
| Variable | Value |
|---|---|
HDF5_PLUGIN_PATH | Directory containing libclio_hdf5_vol.so |
HDF5_VOL_CONNECTOR | clio, 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
| Variable | Default | Effect |
|---|---|---|
CLIO_VOL_CACHE | on | 0/off/false/no: pure pass-through, no runtime needed. |
CLIO_VOL_CHUNK_SIZE | 65536 | Blob size of cached dataset images, in bytes. Overrides chunk_size from the string or info struct. Part of the coherence stamp. |
CLIO_VOL_ADMIT | read-miss | When to stage: write, read-miss, second-access. Default is write when CLIO_STAMP_SETTLE_MAX_NS is set. |
CLIO_VOL_ADMIT_COST | on | 0 disables the cost gate and stages every eligible transfer. |
CLIO_VOL_TIER_FIXED_US | 60 | Cost-model seed: fixed microseconds per tier request. |
CLIO_VOL_TIER_MBPS | 1200 | Cost-model seed: tier bandwidth in MB/s. |
CLIO_VOL_MIN_STAGE_BYTES | 0 | Do not stage images smaller than this. |
CLIO_VOL_MAX_SERVE_BYTES | 1073741824 | Larger datasets are not served from the cache for partial reads. |
CLIO_VOL_TIER_RETRY_MS | 5000 | Back-off after the tier reports it is full, before staging is tried again. |
CLIO_VOL_TRACE | unset | Directory for <file>.<pid>.access.jsonl and <file>.<pid>.access.json telemetry. |
C API
Header context-transfer-engine/adapter/hdf5_vol/clio_vol.h:
#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 key | Default | Effect |
|---|---|---|
HDF5_PLUGIN_PATH | none | Directory containing libclio_vfd.so. |
HDF5_DRIVER | none | clio_vfd selects the driver. |
HDF5_DRIVER_CONFIG cache= | 1 | 0: native-only, no runtime. |
HDF5_DRIVER_CONFIG fsync= | 0 | 1: fsync the native file in H5Fflush and H5Fclose. |
HDF5_DRIVER_CONFIG sieve= | 65536 | Vector-I/O coalescing window in bytes, 0 to 1 GiB. |
Environment
| Variable | Default | Effect |
|---|---|---|
CLIO_VFD_CACHE | on | 0/off/false/no: native-only. Can switch off what the FAPL asked for, never on. |
CLIO_VFD_READ_TIER | off | Any value other than empty or 0 enables the experimental read tier (populate and serve). |
CLIO_VFD_FSYNC | off | 1/on/true/yes: the fsync barrier for every file in the process. Can switch on, never off. |
CLIO_VFD_VECTOR_IO | off | Advertise the vector-I/O callbacks to HDF5 (and so use the sieve window). |
CLIO_VFD_MAX_IO_BYTES | 1073741824 | Largest single pread/pwrite; larger transfers are split. |
CLIO_VFD_TRACE | unset | Directory for byte-level access telemetry. |
CLIO_VFD_DEBUG | unset | Print each read and write to stderr. |
C API
Header H5FDclio.h, installed to include/adapter/vfd/:
#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)
| Variable | Default | Effect |
|---|---|---|
CLIO_STAMP_GRANULARITY_NS | 10000000 (10 ms); 1 s on Windows | A 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_NS | 0 (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
| Setting | Default | Effect |
|---|---|---|
ADIOS2_PLUGIN_PATH | none | Directory containing libiowarp_engine.so. |
Engine type / PluginLibrary | none | Plugin / iowarp_engine. PluginName is any label. |
IOWARP_PPN | 12 | Ranks per node, used to stagger start-up by local rank. |
CLIO_INIT_STAGGER_MS | 250 | Delay per local rank before connecting to the runtime. |
CLIO_INIT_ATTEMPTS | 60 | Connection attempts before the engine throws. |
CLIO_INIT_SLEEP_MS | 3000 | Mean pause between attempts; each pause is drawn from 0.5x to 1.5x of it. |
Where to go next
- I/O adapters overview and the per-adapter walkthroughs.
- Runtime reference:
clio-runand the compose file.