Copper is a read-only cooperative caching layer for scalable metadata and data reuse on large HPC systems. Its primary production use is reducing redundant startup-time I/O, especially for Python imports and shared-library loading on large node counts on Aurora and Frontier.
For ALCF Aurora Spack-based packaging and deployment guidance, see the copper-spack repository.
Additional documentation is available in the local documentation index and on:
- Read the Docs
- Aurora copper-spack documentation
- ALCF user guide
- OLCF user guide
- Aurora and Frontier Guide
- Overview and Best Practices
- Launch and Analysis Runbook
- Environment Path Analysis
- Metadata ENOENT TTL Evaluation
- Examples Catalog
- Copper 1.0 Release Notes
The current distributed runtime focus is on getattr, read, and readdir.
The operations open, release, and opendir are lightweight compatibility
stubs for read-mostly workflows. Mutation-oriented operations such as mkdir,
unlink, rename, create, write, and rmdir are not the main production
target.
module load copper # Aurora: commonly used with cxi0 and service cores 48,49,50,51
module load ums ums046 copper # Frontier: commonly used with cxi1 and service cores 1,2 or 1,2,65,66launch_copper_aurora.sh [-d log_dir_base] [-v CU_FUSE_MNT_VIEWDIR]
launch_copper_frontier.sh [-d log_dir_base] [-v CU_FUSE_MNT_VIEWDIR]stop_copper_aurora.sh [-d log_dir_base] [-v CU_FUSE_MNT_VIEWDIR]
stop_copper_frontier.sh [-d log_dir_base] [-v CU_FUSE_MNT_VIEWDIR]module load copper
APP_BASE=/lus/flare/projects/datascience/${USER}/exp1
MY_COPPER_MOUNT=/tmp/${USER}/copper_mount
./build/launch_copper_aurora.sh -d ${APP_BASE}/copper-logs-dir -v ${MY_COPPER_MOUNT}
time mpiexec -n ${NRANKS} -ppn ${RANKS_PER_NODE} \
--cpu-bind=list:4:56:9:61:14:66:19:71:20:74:25:79 --genvall \
--genv=PYTHONPATH=${MY_COPPER_MOUNT}${APP_BASE}/lus_custom_pip_env:$PYTHONPATH \
python3 -c "import torch; print(torch.__file__)"
./build/stop_copper_aurora.sh -d ${APP_BASE}/copper-logs-dir -v ${MY_COPPER_MOUNT}module load ums ums046 copper
APP_BASE=/lustre/orion/proj-shared/ums046/${USER}/exp1
MY_COPPER_MOUNT=/mnt/bb/$USER/copper_mount # /tmp is also valid
./build/launch_copper_frontier.sh -d ${APP_BASE}/copper-logs-dir -v ${MY_COPPER_MOUNT}
conda activate ${MY_COPPER_MOUNT}${APP_BASE}/conda_env
CPU_BINDING_MAP=verbose,map_cpu:9,17,25,33,41,49,57,73
/usr/bin/time srun --overlap -N ${SLURM_NNODES} -n $((SLURM_NNODES * 8)) \
--ntasks-per-node=8 --cpu-bind=${CPU_BINDING_MAP} \
python3 -c "import torch; print('torch imported from:', torch.__file__)"
./build/stop_copper_frontier.sh -d ${APP_BASE}/copper-logs-dir -v ${MY_COPPER_MOUNT}Platform-specific example scripts are provided under:
When using a personal Conda environment, prepending /tmp/${USER}/copper/
only to the path passed to conda activate is sufficient.
When using a Python virtual environment or custom package directory,
prepending Copper only to the PYTHONPATH entry that should flow through
Copper is usually sufficient.
The job output directory typically contains:
logs/Copper runtime logs,node_file.txt, the prepared job-localcopper_address_book.txt, and supporting launch artifactslogs/copper_address_book_full_output.txtA preserved provenance artifact for address-book preparationtables/final/Final raw cache and table outputstables/<snapshot-tag>/Tagged raw outputs such aspre-destroyprofiling/final/Final per-rank profiling summaries and CSV filesprofiling/<snapshot-tag>/Tagged per-rank profiling snapshotsprofiling/cluster/Aggregated profiling outputs created byscripts/aggregate_profiling.py
Copper prepares a job-local address book before the full cu_fuse launch.
The wrapper supports two source modes:
facilityFilter a provided facility address book down to just the current allocationdiscoverRunbuild/list_cxi_hsn_thalliumacross the allocation, preserve the raw discovery output, and derive the final hostname-to-endpoint mapping from the column selected bynet_type
For discover mode, net_type must match one of the discovered endpoint
families. For example, cxi://cxi1 selects the discovered cxi1 column.
After build, the runtime wrappers default to the staged facility address-book
files in build/:
build/olcf_frontier_copper_addressbook.txtbuild/alcf_aurora_copper_addressbook.txt
The repository keeps the source copies under scripts/, and the build copies
those files into build/ so the launchers and modulefile use a consistent
runtime layout.
launch_copper_aurora.sh
launch_copper_frontier.sh
[-l log_level] # Copper log verbosity level: 0 no logging, 5 most logging
[-t log_type] # Copper log destination: file / stdout / both
[-d log_dir_base] # Base directory for job outputs
[-T trees] # Number of overlay trees
[-M max_cacheable_byte_size] # Maximum request size that Copper will cache
[-E md_enoent_ttl_ms] # Exact-path metadata ENOENT TTL in milliseconds
[-P] # Enable aggregate profiling outputs
[-N profile_top_n] # Enable top-path profiling with top-N retention
[-A] # Enable full-path profiling outputs
[-I profile_snapshot_interval] # Periodic profiling snapshot interval in seconds
[-s sleeptime] # Sleep after launching Copper before the workload starts
[-b physcpubind] # CPU cores where each cu_fuse process should run
[-F facility_address_book] # Path to the facility address book file
[-a address_book_source] # facility / discover
[-n net_type] # Network endpoint selector
[-v CU_FUSE_MNT_VIEWDIR] # Mount path where Copper is exposedCopper depends on the Mochi communication stack and a working FUSE3 installation. A typical build environment provides:
cmake- an MPI compiler toolchain
margomercurythalliumargobotscereal
Example build flow:
module load gcc-native/14.2
module load cmake
source /sw/frontier/ums/ums046/spack/share/spack/setup-env.sh
spack env activate spack-copper-mod-env
cd /path/to/copper/scripts
cp default_env.sh env.sh
sh build_helper/build.shExpected build artifacts include:
build/cu_fusebuild/cu_fuse_shutdownbuild/list_cxi_hsn_thalliumbuild/launch_copper_aurora.shbuild/launch_copper_frontier.shbuild/stop_copper_aurora.shbuild/stop_copper_frontier.shbuild/olcf_frontier_copper_addressbook.txtbuild/alcf_aurora_copper_addressbook.txt