# Best ways to speed up S3 data loading for ML training (2026): Archil, FSx for Lustre, Mountpoint and more

Source: https://archil.com/compare/best-ways-to-speed-up-s3-data-loading-for-ml-training

How to stop GPUs waiting on training data in S3: shard the data and use a streaming loader first, then pick a storage layer. Archil, FSx for Lustre, the Amazon S3 Connector for PyTorch, Mountpoint for Amazon S3, local NVMe, S3 Express One Zone, Alluxio and JuiceFS, compared on throughput, sharing across nodes and jobs, writes, clouds and cost.

[All comparisons](https://archil.com/compare)

# Best ways to speed up S3 data loading for ML training (2026)

Shard the data first: whatever storage you pick, large shards read by a streaming loader such as WebDataset or MosaicML Streaming take most of the request latency out of the training loop. Then put one shared tier in front of the bucket, so nodes stop each keeping their own copy. Archil is that tier on any cloud: a shared SSD layer, mounted as a read-write POSIX file system, that reads up to 8 GiB/s per client, persists between jobs and needs nothing provisioned. At training scale it runs on Enterprise, with no transfer charges over private networking. If you're only on AWS and need the highest published throughput, FSx for Lustre linked to the bucket adds EFA and GPUDirect Storage, but it's provisioned and sized in advance.

Updated November 2026. Competitor facts are from each vendor's own docs and pricing pages.

## The short list

1.  [Archil](#archil): Best for GPU clusters, jobs and agents that share one dataset in object storage, read and write it as files, and keep it between jobs, on any cloud
2.  [FSx for Lustre linked to S3](#fsx-for-lustre-linked-to-s3): Best for AWS-only GPU clusters that need the highest published throughput, with EFA and GPUDirect Storage
3.  [Amazon S3 Connector for PyTorch](#amazon-s3-connector-for-pytorch): Best for PyTorch jobs on AWS that can read S3 directly, without a file system
4.  [Mountpoint for Amazon S3](#mountpoint-for-amazon-s3): Best for training code that opens files by path on AWS, rereading the same data on each node
5.  [Copy to local NVMe first](#copy-to-local-nvme-first): Best for datasets that fit on each node's local NVMe and are read for many epochs
6.  [S3 Express One Zone](#s3-express-one-zone): Best for small objects and random reads on AWS, where S3 request latency is the bottleneck
7.  [Alluxio](#alluxio): Best for teams that want a distributed cache on their own GPU nodes' NVMe, over S3, GCS, Azure Blob or HDFS
8.  [JuiceFS](#juicefs): Best for teams that want an open-source POSIX file system they run themselves, on any object store

## Side by side

| Option | What it changes | Shared across nodes | Writes | Outside AWS | Cost |
| --- | --- | --- | --- | --- | --- |
| Archil | A shared SSD tier over the bucket, mounted as a POSIX file system; up to 8 GiB/s per client | Yes, up to 5,000 clients per disk | Full POSIX, synced back to the bucket | Yes: AWS and Google Cloud regions, or BYOC on any cloud or bare metal | Enterprise at training scale, with no transfer charges over private networking; nothing to provision |
| FSx for Lustre linked to S3 | A Lustre file system that loads objects from the bucket on first read | Yes, thousands of clients | Full POSIX; changes export back to S3 | No | Provisioned SSD: $0.145 per GB-month for Persistent 2 at 125 MB/s per TiB in us-east-1 |
| Amazon S3 Connector for PyTorch | PyTorch datasets and checkpoints that read and write S3 directly | No cache; every epoch reads S3 again | Checkpoints, including PyTorch DCP and Lightning | Amazon S3 only; other stores may work but aren't supported | Open source; S3 requests |
| Mountpoint for Amazon S3 | File paths over S3, with an optional local disk cache | Local cache is per node; the shared S3 Express cache holds only objects up to 1 MiB | New files, written sequentially | No; Amazon S3 only | Open source; S3 requests and local disk |
| Copy to local NVMe first | A full copy on each node's instance store before training | No; one copy per node | Local only; erased when the instance stops | Yes, on any machine with local SSDs | Included with the instance; training waits for the copy |
| S3 Express One Zone | A faster S3 storage class, in one Availability Zone | Yes; it's a bucket | S3 API | No | Request costs up to 80% lower than S3 Standard; storage billed separately |
| Alluxio | A distributed cache on the compute nodes' NVMe | Yes | Write-back cache for checkpoints, which needs FoundationDB | Yes; S3, GCS, Azure Blob and HDFS | Commercial Enterprise edition for AI workloads |
| JuiceFS | A POSIX file system that stores its own chunks in the bucket | Yes; each client caches on its own disk | Full POSIX | Yes; many object stores, including on-premises | Open source; you run the metadata database |

## What to look for

-   ### Do this first: fix the data layout
    
    A loader that fetches one small object per sample spends most of its time waiting on request latency, whatever storage sits underneath. Shard the data and use a streaming loader before choosing storage; see [Do this first, whatever storage you pick](#do-this-first-whatever-storage-you-pick).
    
-   ### What happens on the second epoch
    
    Training rereads the dataset every epoch. Check whether an option reads S3 again each time (the S3 connector, a plain mount) or serves repeat reads from a local disk, a shared SSD tier or a Lustre file system.
    
-   ### One cache per node, or one for the cluster
    
    Per-node caches (Mountpoint's `--cache`, a streaming loader's local cache, a copy to NVMe) only help when a node rereads data it fetched itself. A shared tier (Archil, FSx for Lustre, Alluxio) serves a sample from its own storage no matter which node or job read it last.
    
-   ### File paths or a dataset API
    
    Code that opens files by path needs a mount: Archil, FSx for Lustre, Mountpoint, JuiceFS or Alluxio. If you can change the dataset class, a streaming loader or the S3 connector reads objects directly.
    
-   ### Writes and persistence between jobs
    
    Training also writes checkpoints, preprocessed features and eval outputs. Some options only read, some write new files sequentially, and some are full read-write file systems. Instance-store NVMe is erased when the instance stops.
    
-   ### Where the GPUs run
    
    FSx for Lustre, Mountpoint, S3 Express One Zone and the S3 connector are built for AWS and Amazon S3. Archil, Alluxio and JuiceFS also work with Google Cloud, other clouds and on-premises storage.
    

## Each option in detail

### 1. Archil

[docs.archil.com](https://docs.archil.com/details/caching)

**Best for:** GPU clusters, jobs and agents that share one dataset in object storage, read and write it as files, and keep it between jobs, on any cloud

Archil mounts your S3, GCS, R2 or S3-compatible bucket, or an Archil-managed one, as a [POSIX file system](https://archil.com/product/filesystem) and puts one shared SSD tier, replicated across Availability Zones, between the bucket and every client. The first read of a file comes from the bucket; after that every node reads it from the shared tier, where a 4 KiB read that misses the client's cache takes 0.50 ms at p50, so nodes don't each keep their own copy. By default, data stays in the shared tier for up to an hour after its last access. Scale-out reads reach 8 GiB/s per client, and read throughput per disk has no limit, with 5.9 GB/s the highest seen on one disk in production. The tier grows with your working set, so there's nothing to size in advance, and the [Prefetch File Ranges API](https://docs.archil.com/details/caching#warming-the-storage-system-cache-with-the-api) warms files before a job starts, without a mounted client. Training at this scale runs on Enterprise: private networking (PrivateLink or VPC peering) avoids Archil egress charges, and [BYOC](https://docs.archil.com/reference/byoc) runs Archil in your own cloud, so the data stays there. The $0.07 per GB transfer rate applies to Developer and Team over public networking.

#### Strengths

-   One shared copy of hot data for every node, job and agent, instead of a cache per node
-   Up to 8 GiB/s per client with scale-out reads, and no per-disk read limit
-   Read-write POSIX: preprocessing output, features and checkpoints go on the same disk, durable when `fsync` returns and synced to your bucket as ordinary objects
-   Persists between jobs; mounts on Linux, macOS and Kubernetes (CSI driver with ReadWriteMany), up to 5,000 clients per disk
-   Nothing to provision; public regions on AWS and Google Cloud, or BYOC on any cloud, including Azure, or on bare metal

#### Tradeoffs

-   No GPUDirect Storage or RDMA support is documented; FSx for Lustre has both
-   Writes are limited to 1 GB/s per disk
-   Archil hasn't published a multi-node aggregate read benchmark, so test it against FSx for Lustre at your cluster's scale
-   Objects written straight to the bucket usually appear on the disk within 5 to 10 minutes; write through Archil when readers need new files at once
-   Checkpoints and branches can't be deleted yet, and disks in the native format, which keep files as ordinary objects in your bucket, can't be checkpointed; that needs Archil's proprietary format (Archil-managed disks, or your own bucket on Enterprise)

### 2. FSx for Lustre linked to S3

[docs.aws.amazon.com](https://docs.aws.amazon.com/fsx/latest/LustreGuide/fsx-data-repositories.html)

**Best for:** AWS-only GPU clusters that need the highest published throughput, with EFA and GPUDirect Storage

Link an FSx for Lustre file system to an S3 bucket with a data repository association and the bucket's objects appear as files. FSx copies a file's contents from S3 the first time it's read, then serves later reads from the file system with sub-millisecond latency, and you can preload whole directories before a run. Throughput scales with provisioned storage: Persistent 2 SSD file systems offer 125, 250, 500 or 1,000 MB/s per TiB, and EFA-enabled file systems can drive up to 700 Gbps to one client, or 1,200 Gbps with GPUDirect Storage. Automatic export writes new and changed files back to the bucket.

#### Strengths

-   The highest published per-client throughput here, with EFA and GPUDirect Storage for GPU instances
-   Thousands of instances can read the same files at once
-   Native to AWS: IAM, VPC and billing in one account
-   Full POSIX, with results exported back to S3

#### Tradeoffs

-   SSD storage is provisioned and sized in advance, and you pay for the full size: $0.145 per GB-month for Persistent 2 at 125 MB/s per TiB in us-east-1, or about $14,500 a month for a file system sized for 100 TB
-   First reads of each file wait on S3 unless you preload
-   One Availability Zone: Persistent SSD replicates within it, and Scratch file systems aren't replicated at all
-   AWS only; automatic import needs the bucket in the same Region
-   Backups aren't supported on file systems linked to S3, and Intelligent-Tiering file systems can't link to S3

### 3. Amazon S3 Connector for PyTorch

[github.com](https://github.com/awslabs/s3-connector-for-pytorch)

**Best for:** PyTorch jobs on AWS that can read S3 directly, without a file system

AWS's open-source connector (BSD-3-Clause) gives PyTorch map-style datasets for random access and iterable datasets for streaming, both reading objects straight from S3. It also saves checkpoints to S3 without writing them locally first, through `S3Checkpoint`, PyTorch Distributed Checkpoint (DCP) and a Lightning integration. It works with general purpose buckets and S3 Express One Zone directory buckets. Pair it with sharded data.

#### Strengths

-   A `pip install`, with nothing to run
-   Checkpoints go straight to S3, including DCP for distributed training
-   Works with S3 Express One Zone for lower request latency

#### Tradeoffs

-   No cache: every epoch reads every byte from S3 again
-   Map-style datasets list every object under the prefix up front, which the README warns can look unresponsive on large prefixes
-   PyTorch only, and the code has to use its dataset classes
-   Wheels for Linux and macOS only; other S3-compatible stores may work but aren't supported

### 4. Mountpoint for Amazon S3

[github.com](https://github.com/awslabs/mountpoint-s3) · [Archil vs Mountpoint for Amazon S3](https://archil.com/compare/mountpoint-for-amazon-s3)

**Best for:** training code that opens files by path on AWS, rereading the same data on each node

Mountpoint is AWS's open-source FUSE client for S3, built for high-throughput reads of large objects. With `--cache <dir>` it keeps object contents on local disk, such as instance-store NVMe, so later epochs read locally; by default the cache grows until free space falls to 5%, and `--max-cache-size` caps it. With caching on, metadata is trusted for 60 seconds by default, and `--metadata-ttl indefinite` suits a dataset that doesn't change. A shared cache in an S3 Express One Zone directory bucket (`--cache-xz`) serves many instances, but only keeps objects up to 1 MiB.

#### Strengths

-   Free and open source (Apache 2.0), with no service to run
-   No code changes for loaders that read files
-   The local cache removes repeat S3 requests on each node
-   A CSI driver for Kubernetes

#### Tradeoffs

-   The local cache belongs to one Mountpoint process and is cleared when it starts and exits, so every node and every restart fetches its own copy
-   Writes are new files written sequentially: no in-place edits, directory renames, links or locks
-   Amazon S3 only
-   Cached data sits unencrypted on local disk

### 5. Copy to local NVMe first

[docs.aws.amazon.com](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html)

**Best for:** datasets that fit on each node's local NVMe and are read for many epochs

Copy the dataset from S3 to each node's instance-store NVMe before training, then read it as local files. Instance store is disks physically attached to the host and costs nothing beyond the instance. When the dataset fits, it's the simplest fix there is.

#### Strengths

-   Local-disk reads on every epoch
-   No extra service or charge
-   Works on any cloud or server with local SSDs

#### Tradeoffs

-   Every node copies the whole dataset, and training waits for the copy
-   Doesn't fit hundreds of terabytes
-   Instance store is erased when the instance stops, hibernates or terminates, so the copy doesn't carry over to the next job on new instances
-   Writes stay on that one node

### 6. S3 Express One Zone

[docs.aws.amazon.com](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-high-performance.html)

**Best for:** small objects and random reads on AWS, where S3 request latency is the bottleneck

S3 Express One Zone is an S3 storage class for directory buckets that you place in one Availability Zone, next to your GPUs. AWS says it gives consistent single-digit millisecond access, up to 10x faster than S3 Standard, with request costs up to 80% lower. Mountpoint and the S3 Connector for PyTorch both work with it, and Mountpoint can use a directory bucket as a shared cache for small objects.

#### Strengths

-   The same S3 API, with no file system to run
-   Lower latency and request cost for many small reads
-   Data sits in the same Availability Zone as the compute

#### Tradeoffs

-   One Availability Zone: data isn't stored redundantly across zones, and the class is designed for 99.95% availability
-   A separate bucket type: copy the data in with S3 Batch Operations or the console's import
-   Access control is set only at the bucket level
-   Still object storage: every epoch reads every byte, and there are no POSIX semantics on its own

### 7. Alluxio

[documentation.alluxio.io](https://documentation.alluxio.io/ee-ai-en)

**Best for:** teams that want a distributed cache on their own GPU nodes' NVMe, over S3, GCS, Azure Blob or HDFS

Alluxio's Enterprise AI edition is a distributed caching layer between object storage and compute. It caches data on local NVMe or SSD on each compute node, without copying the source data, and serves it through POSIX, an S3-compatible API or Python FSSpec, so later epochs read from the cluster instead of the bucket. A write-back cache, which needs FoundationDB, takes checkpoint writes at local speed and flushes them to object storage asynchronously.

#### Strengths

-   Turns the NVMe already on GPU nodes into one shared cache
-   Works over S3, GCS, Azure Blob and HDFS
-   Deploys on Kubernetes with an operator

#### Tradeoffs

-   Commercial: the open-source edition's README says it's built for analytics and points AI and ML workloads to the Enterprise Edition
-   You run it on your own cluster, and the write-back cache needs FoundationDB

### 8. JuiceFS

[juicefs.com](https://juicefs.com/docs/community/introduction/) · [Archil vs JuiceFS](https://archil.com/compare/juicefs)

**Best for:** teams that want an open-source POSIX file system they run themselves, on any object store

JuiceFS splits files into chunks stored in object storage and keeps metadata in a database such as Redis, MySQL, TiKV or SQLite. It's POSIX compatible, has a Kubernetes CSI driver and works with ML frameworks without code changes. Each client caches blocks on local disk (100 GiB by default) with read-ahead, and `juicefs warmup` fills the cache before a run.

#### Strengths

-   Open source (Apache 2.0)
-   POSIX with close-to-open consistency across clients
-   Works with many object stores, including on-premises

#### Tradeoffs

-   Can't mount data that's already in a bucket: it has to be written through JuiceFS, and other tools can't read its chunks from the bucket
-   You run and back up the metadata database
-   Each client keeps its own cache, so nodes fetch data separately

## Do this first, whatever storage you pick

Most idle-GPU problems on object storage come from reading millions of small objects one request at a time. Before changing storage, pack samples into large shard files and read them sequentially with several `DataLoader` workers. Every storage option on this page runs faster on large files, and for some jobs this alone is enough.

[WebDataset](https://github.com/webdataset/webdataset) (BSD-3-Clause) stores samples in numbered tar files and works with PyTorch's standard `DataLoader`; its README reports 3x to 10x faster I/O on local drives than random access. It shuffles shards, then samples within an in-memory buffer, so shuffle quality depends on the buffer size.

[MosaicML Streaming](https://github.com/mosaicml/streaming) (Apache 2.0) writes its own MDS shards and streams them from S3, GCS, Azure, OCI or S3-compatible stores such as R2 into a local cache you can cap (`cache_limit='100gb'`). It keeps samples in the same order whatever the number of GPUs, nodes or workers, and resumes mid-epoch in seconds.

The cost is a conversion, repeated when the dataset changes, and a new dataset class for code that opens files by path. A shared tier still matters after sharding: each epoch reshuffles which shards each node reads, and a per-node cache only helps with data that node fetched before.

## Per-node caches vs a shared tier

Mountpoint's local cache, a streaming loader's cache and JuiceFS's client cache each belong to one node. In data-parallel training, each epoch reshuffles which samples go to which node, so unless a node's cache holds the whole dataset, most of its reads are samples it hasn't cached, and the cluster reads close to the full dataset from the bucket every epoch. MosaicML Streaming's shuffle algorithms are designed to reduce this. A shared tier, such as Archil, FSx for Lustre or Alluxio, serves a sample from its own storage whichever node asks, and several jobs reading the same data at once share it too.

On AWS, data transferred from S3 to EC2 in the same Region carries no transfer charge, so per-node caches cost time and requests rather than egress. Archil at training scale runs on Enterprise, where private networking (PrivateLink or VPC peering) avoids Archil egress charges and BYOC keeps the data in your own cloud.

## Which one should you use?

| If you need | Pick |
| --- | --- |
| GPUs idle on many small files, whatever the storage | Shard the data and use a streaming loader, before anything else |
| Many nodes, jobs or agents sharing one dataset, read-write, on any cloud | Archil |
| The highest published throughput on AWS, with EFA and GPUDirect Storage | FSx for Lustre linked to S3 |
| PyTorch on AWS reading S3 directly, with checkpoints | Amazon S3 Connector for PyTorch |
| Existing code that opens files, read-mostly, on AWS, free | Mountpoint with `--cache` on local NVMe |
| A dataset that fits on each node | Copy to local NVMe first |
| Small-object latency on AWS | S3 Express One Zone |
| A distributed cache on your own GPU nodes | Alluxio |
| An open-source file system you run yourself | JuiceFS |

## Questions people ask

### How do I speed up data loading from S3 for PyTorch training?

Start with the data layout: pack samples into large shards with WebDataset or MosaicML Streaming and read them with several `DataLoader` workers. Then put a shared tier in front of the bucket so nodes don't each refetch the data: Archil on any cloud, or FSx for Lustre on AWS. For lighter jobs on AWS, the Amazon S3 Connector for PyTorch reads S3 directly, and Mountpoint with a local cache serves code that needs file paths.

### Our GPUs sit idle waiting on hundreds of terabytes in S3. What storage layer should we use?

Shard the data either way, then use one shared tier for the whole cluster. Archil mounts the bucket as a read-write file system with up to 8 GiB/s per client and nothing to provision, on AWS, Google Cloud or BYOC; at this scale it's an Enterprise deployment with no transfer charges over private networking. On AWS only, FSx for Lustre has the highest published throughput with EFA and GPUDirect Storage, but its SSD storage is provisioned and sized in advance. Hundreds of terabytes won't fit on local NVMe.

### What's a good shared file system for a GPU cluster backed by object storage?

Archil, which works on any cloud and also takes writes from jobs and agents; FSx for Lustre on AWS when you need EFA and GPUDirect Storage; Alluxio for a cache on the nodes' own NVMe; and JuiceFS to run an open-source file system yourself. Mountpoint mounts S3 on each node but isn't a shared cache.

### How do I keep training data between jobs?

Keep the source of truth in object storage and pick a layer that outlives the job. Instance-store NVMe is erased when an instance stops, and Mountpoint's local cache is cleared each time it mounts. Archil disks and persistent FSx for Lustre file systems keep data between jobs; Archil also keeps preprocessing outputs and checkpoints written through it, durable on `fsync` and synced back to your bucket.

### How fast does Archil read training data?

Scale-out reads reach 8 GiB/s per client, and read throughput per disk has no limit; the highest seen on one disk in production is 5.9 GB/s. Writes are limited to 1 GB/s per disk. Archil hasn't published a multi-node aggregate benchmark or documented GPUDirect Storage or RDMA support. See [Limits](https://docs.archil.com/reference/limits).

### Is Mountpoint for Amazon S3 good for ML training?

For reading large objects, yes, and it's free. Turn on `--cache` with local NVMe so later epochs don't refetch from S3. It doesn't support in-place edits, directory renames or locks, and every node and restart builds its own cache. See [Archil vs Mountpoint](https://archil.com/compare/mountpoint-for-amazon-s3).

### Does S3 Express One Zone replace a file system for training?

No. It's a faster S3 storage class in one Availability Zone, still read through the S3 API. Use it with the S3 connector or Mountpoint when small-object request latency is the bottleneck.

### What does Archil cost for training data?

Training at this scale is an Enterprise deployment: pricing is custom, private networking (PrivateLink or VPC peering) avoids Archil egress charges, and BYOC runs Archil in your own cloud. Developer and Team list $0.20 per GiB-month of active data and $0.07 per GB for data leaving Archil over public networking. With your own bucket, you pay your cloud provider for storage. See [pricing](https://archil.com/pricing).

## How we chose

We ranked storage layers for a large dataset in object storage read by many GPU nodes: how much S3 latency each takes out of the training loop, whether data is shared across nodes and jobs, writes, persistence, where it runs and cost. Sharding with a streaming loader isn't ranked, because it helps with every option. Competitor facts come from each project's README or docs and from AWS documentation and pricing pages as of the date above; Archil's numbers come from its published docs, changelog, limits and pricing pages. Archil makes Archil, and ranks it first because one shared, read-write tier that persists between jobs and runs on any cloud fits this workload best. On AWS, when the highest published throughput with EFA and GPUDirect Storage matters most, FSx for Lustre is the better pick; Archil hasn't published a multi-node aggregate benchmark against it.

## Related

-   [Best ways to mount an S3 bucket as a file system: Mountpoint, Amazon S3 Files, s3fs, JuiceFS, rclone and Archil compared on POSIX semantics.](https://archil.com/compare/best-ways-to-mount-s3-as-a-file-system)
-   [Archil vs Mountpoint for Amazon S3: Fast S3 reads, or full POSIX over your bucket.](https://archil.com/compare/mountpoint-for-amazon-s3)
-   [What is Lustre?: How Lustre works, and when something simpler fits.](https://archil.com/article/what-is-lustre)
-   [Storage in the AI pipeline: Storage tiers from ingestion to training.](https://archil.com/article/ai-storage-architecture-tiers-training-inference)

Or see [every comparison](https://archil.com/compare).
