# Best ways to fork a large dataset for parallel agents (2026): lakeFS, Archil, ZFS clones and more

Source: https://archil.com/compare/best-ways-to-fork-a-large-dataset-for-parallel-agents

How to give several agents their own writable copy of a 500 GB dataset without copying it, and keep the best result: lakeFS, Archil branches, ZFS snapshots and clones, cp --reflink, Iceberg branches and Delta Lake clones, EBS snapshots and git worktrees, compared on fork time, merges, where the data lives and how agents read it.

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

# Best ways to fork a large dataset for parallel agents (2026)

To let several agents change the same large dataset in parallel, each from the same starting state, use copy-on-write branches instead of copies. If the data is already in S3, GCS or Azure Blob as files or tables and you may want to merge results back, lakeFS is the better default: its branches are metadata-only, it works over your existing bucket, and it merges. If the agents run ordinary tools (Python, DuckDB, shell scripts) on a POSIX file system and you only keep the best attempt, Archil branches a disk in about 33 ms at any size, and each branch mounts anywhere. On one machine, ZFS clones or `cp --reflink` are free.

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

## The short list

1.  [lakeFS](#lakefs): Best for datasets and data lakes already in S3, GCS or Azure Blob, especially tables, where attempts may need to merge back
2.  [Archil](#archil): Best for agents that run ordinary file tools on the dataset, each on its own writable copy on a different machine, keeping only the best result
3.  [ZFS snapshot and clone](#zfs-snapshot-and-clone): Best for parallel attempts on one large machine, with the dataset on local disks
4.  [cp --reflink](#cp-reflink): Best for a quick copy-on-write copy of a directory on one machine, with no extra tooling
5.  [Iceberg branches and Delta Lake clones](#iceberg-branches-and-delta-lake-clones): Best for tabular data that already lives in Iceberg or Delta tables, edited through SQL engines
6.  [EBS snapshots](#ebs-snapshots): Best for attempts that each run on their own EC2 instance with a block device
7.  [git worktrees](#git-worktrees): Best for code and small data in a git repository, not a 500 GB dataset

## Side by side

| Option | Fork of 500 GB | Merge back | How agents read it | Runs on | Data stays in your bucket |
| --- | --- | --- | --- | --- | --- |
| lakeFS | Metadata-only branch | Yes, with conflict detection | S3-compatible gateway, lakectl, Spark and Python clients | Any machine that reaches the lakeFS server | Yes, objects stay in S3, GCS or Azure Blob |
| Archil | Checkpoint in about 13 ms, branch in about 33 ms (p50) | No; keep the winning branch | POSIX mount, S3 API, SDKs | Any machine or sandbox; every branch at once | Only in Archil's proprietary format, on Enterprise; disks that mirror a bucket as ordinary objects can't branch |
| ZFS snapshot and clone | Instant | No | Local file system | One machine | No |
| cp --reflink | Shares blocks; no data copied | No | Local file system | One machine, on Btrfs, XFS or APFS | No |
| Iceberg branches and Delta Lake clones | Metadata only | Iceberg: fast-forward; Delta: no | Spark, Trino and other table engines | Any engine that reads the table | Yes |
| EBS snapshots | New volume per attempt; blocks load from S3 on first read | No | Local file system on the instance | One instance per volume, in one Availability Zone | No |
| git worktrees | A full checkout per worktree | Yes, git merge | Local files | One machine | No |

## What to look for

-   ### Fork time doesn't grow with the data
    
    Copying 500 GB once per attempt takes longer than many attempts run, and multiplies storage. Every option here except git worktrees creates the fork without copying data; only what an attempt changes takes new space.
    
-   ### Keep the best, or merge them
    
    If you only keep the winning attempt, any branch works. If you want to combine changes from several attempts, you need merges with conflict detection. lakeFS merges branches; Iceberg branches fast-forward; Archil, ZFS, reflinks and EBS have no merge.
    
-   ### How agents read the fork
    
    Agents that run shell tools, Python or DuckDB on files need a POSIX path. Some forks are file systems (Archil, ZFS, reflinks, EBS); others are read through an S3-compatible API or a table engine (lakeFS, Iceberg, Delta Lake).
    
-   ### Where the attempts run
    
    Parallel agents usually run on several machines or sandboxes. A ZFS clone or a reflinked copy lives on one machine's disks, and an EBS volume attaches to one instance in one Availability Zone. Branches served over a network can be used from many places at once.
    
-   ### Where the data already is
    
    Data already in a bucket favors tools that work on it in place. Moving 500 GB into another system is a one-time cost, but it's real, and it changes who can read the data afterwards.
    
-   ### Cleaning up
    
    Every branch holds on to the blocks it shares. Check how a tool deletes branches and reclaims space before you create thousands of them.
    

## Each option in detail

### 1. lakeFS

[docs.lakefs.io](https://docs.lakefs.io/)

**Best for:** datasets and data lakes already in S3, GCS or Azure Blob, especially tables, where attempts may need to merge back

lakeFS adds git-style branches, commits and merges to object storage. A branch is a pointer to a commit, so creating one copies no data, and lakeFS can import data already in S3, GCS or Azure Blob without copying it. Agents read and write a branch through lakeFS's S3-compatible gateway or its Python, Spark and `lakectl` clients. When an attempt wins, merge its branch into main; pre-merge hooks can block a merge that fails validation.

#### Strengths

-   Zero-copy branches over data that stays in your bucket
-   Merges with conflict detection, commits, reverts and pre-merge hooks
-   Source available on GitHub, with a managed cloud and an Enterprise edition

#### Tradeoffs

-   Agents use an S3 API or lakeFS clients; the POSIX mount is Enterprise-only, read-only by default, and doesn't support renames in write mode
-   Licensed under the Business Source License 1.1; each version becomes Apache 2.0 four years after release
-   You run the server, or buy lakeFS Cloud or Enterprise, priced through sales
-   Unreferenced objects stay in the bucket until you run the garbage collection Spark job
-   Imported data must be on the same cloud and in the same region as the repository

### 2. Archil

[docs.archil.com](https://docs.archil.com/concepts/branches-and-checkpoints)

**Best for:** agents that run ordinary file tools on the dataset, each on its own writable copy on a different machine, keeping only the best result

Put the dataset on an Archil-managed disk, take a checkpoint, and create one branch per attempt. A checkpoint takes about 13 ms and a branch about 33 ms at p50, whatever the disk's size. Each branch is an independent POSIX file system that mounts on any machine or sandbox, so agents run Python, DuckDB or shell tools without changes. Score the branches and keep mounting the winner; it's already a full disk.

#### Strengths

-   Fork time doesn't depend on the dataset's size
-   Each branch mounts anywhere, in parallel, as an ordinary file system or over S3
-   Branches form a tree: checkpoint the winner and branch again for the next round
-   Archil sandboxes fork the whole machine, installed tools included, the same way

#### Tradeoffs

-   No merge: a branch can't be merged back into its parent, so keep the winner or copy changes yourself
-   Branches and checkpoints can't be deleted yet
-   A disk that mirrors an existing bucket, with files kept as ordinary objects, can't be checkpointed or branched. Data already in S3 must be copied onto an Archil-managed disk first, or kept in your own bucket in Archil's proprietary format on Enterprise
-   Branches share the disk's credentials, so they aren't a security boundary between untrusted attempts
-   Branching is available in Archil's AWS regions

### 3. ZFS snapshot and clone

[openzfs.github.io](https://openzfs.github.io/openzfs-docs/man/master/8/zfs-clone.8.html)

**Best for:** parallel attempts on one large machine, with the dataset on local disks

A ZFS snapshot is instant and initially takes no space, and a clone is a writable file system created from a snapshot that shares its blocks. Run every attempt on the same host, each in its own clone, then promote or keep the best one.

#### Strengths

-   Free and mature
-   Instant snapshots and writable clones
-   Local-disk speed

#### Tradeoffs

-   A local file system: attempts on other machines need the clones exported, for example over NFS
-   A snapshot can't be destroyed while clones of it exist, unless you promote a clone
-   No merge between clones

### 4. cp --reflink

[gnu.org](https://www.gnu.org/software/coreutils/manual/html_node/cp-invocation.html)

**Best for:** a quick copy-on-write copy of a directory on one machine, with no extra tooling

`cp --reflink=always` makes a copy-on-write copy that shares data blocks with the original, and fails if the file system can't. Btrfs supports reflinks, and XFS enables them by default since xfsprogs 5.1. On macOS, `cp -c` clones files with `clonefile(2)`.

#### Strengths

-   No new software
-   Per-file and per-directory copies

#### Tradeoffs

-   Not supported on ext4
-   One file system on one machine; Btrfs can't reflink across file systems
-   Still walks the tree file by file, so millions of small files take a while
-   No snapshots, history or merge

### 5. Iceberg branches and Delta Lake clones

[iceberg.apache.org](https://iceberg.apache.org/docs/latest/branching/)

**Best for:** tabular data that already lives in Iceberg or Delta tables, edited through SQL engines

Iceberg branches are named references to table snapshots: each attempt writes to its own branch, and the winner is published by fast-forwarding main or cherry-picking a snapshot. Delta Lake's shallow clone (Delta Lake 2.3 and later) references the source table's data files, and changes to the clone affect only the clone.

#### Strengths

-   Built into the table format, no extra service
-   Works with Spark, Trino and other engines

#### Tradeoffs

-   Only for tables; files, images and model outputs aren't covered
-   Agents need a table engine, not file tools
-   No general merge: Iceberg publishes by fast-forward or cherry-pick, and Delta clones don't merge back

### 6. EBS snapshots

[docs.aws.amazon.com](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-snapshots.html)

**Best for:** attempts that each run on their own EC2 instance with a block device

Snapshot the volume that holds the dataset, then create one volume from the snapshot per attempt. Blocks of a new volume are downloaded from S3 when first read, with higher latency until then, unless you enable Fast Snapshot Restore, which AWS bills per snapshot per Availability Zone by the hour.

#### Strengths

-   Native to AWS, with no new service
-   Each attempt gets a full block device

#### Tradeoffs

-   First reads are slow until the volume is initialized; Fast Snapshot Restore costs about $540 a month per snapshot per Availability Zone, for at most 5 snapshots per Region
-   A volume attaches to one instance in one Availability Zone
-   No merge

### 7. git worktrees

[git-scm.com](https://git-scm.com/docs/git-worktree)

**Best for:** code and small data in a git repository, not a 500 GB dataset

`git worktree` gives each attempt its own working tree of one repository, sharing the object store. That's the right tool for code. For a large dataset, every worktree is a full checkout of the files, and git isn't built for hundreds of gigabytes of data.

#### Strengths

-   Familiar, with real merges
-   Ideal for the code an agent changes

#### Tradeoffs

-   Each worktree is a full checkout, so fork time and disk space grow with the data
-   GitHub blocks files over 100 MiB and recommends repositories under 1 GB; large files need Git LFS or another store

## Keeping the winner vs merging

Most parallel-agent setups score each attempt and keep one. That only needs a branch per attempt and a way to keep using the winner, which every option here gives you. Archil's [parallel agents guide](https://docs.archil.com/guides/agents/parallel-agents) does this with sandbox forks.

Merging is a different requirement: combining edits from several attempts, or bringing a winning branch back into a shared main line that other people also change. For data in a bucket, lakeFS is built for that. Archil has no merge-back; a branch stays its own disk.

## Which one should you use?

| If you need | Pick |
| --- | --- |
| Data already in S3, GCS or Azure Blob, with merges | lakeFS |
| Agents running file tools on separate machines, keeping the best attempt | Archil |
| Every attempt on one big machine | ZFS clones, or `cp --reflink` on Btrfs or XFS |
| Tables edited with SQL engines | Iceberg branches or Delta Lake clones |
| One EC2 instance per attempt, with a block device | EBS snapshots |
| The code the agents change | git worktrees |

## Questions people ask

### How do I give several agents their own copy of a 500 GB dataset?

Fork it copy-on-write instead of copying it: a lakeFS branch, an Archil branch, a ZFS clone or a reflinked copy. Each fork is created without copying data, and only the changes each agent makes take new space.

### Can I branch a dataset that's already in S3?

With lakeFS, yes, over the objects in place. With Archil, a disk that mirrors an existing bucket can't be branched; copy the data onto an Archil-managed disk first, or on Enterprise keep it in your own bucket in Archil's proprietary format. Iceberg and Delta Lake branch tables in place.

### Can I merge an Archil branch back into the original?

No. Archil branches don't merge into their parent. Keep using the winning branch as your working disk, or checkpoint it and branch from it again. If you need merges, use lakeFS.

### How fast is an Archil branch?

A checkpoint takes about 13 ms and a branch about 33 ms at p50, regardless of disk size. Mounting the branch is a separate step, about 50 ms at p50. See [Limits](https://docs.archil.com/reference/limits#latency).

### Why not just use git?

git worktrees are the right fork for code, but each one is a full checkout, so a 500 GB dataset means 500 GB per attempt. Use git for the code and one of the other options for the data.

## How we chose

We compared ways teams fork a large dataset so that several agent attempts start from the same state: how long the fork takes, whether results can merge back, how agents read the fork, where attempts can run and where the data lives. Facts come from each project's own docs as of the date above. Archil makes Archil. It ranks second here, because lakeFS is the better default when the dataset is already in a bucket or needs merges; Archil is the better pick when agents need a POSIX file system on many machines and you keep one result.

## Related

-   [Fork a large dataset copy-on-write for parallel agent attemptsThe checkpoint-and-branch workflow on Archil, step by step.](https://archil.com/article/fork-a-large-dataset-copy-on-write-for-parallel-agent-attempts)
-   [Running parallel agent attempts from one starting stateCopy-on-write branches for a code workspace.](https://archil.com/article/running-parallel-agent-attempts-from-one-starting-state-with-copy-on-write-branches)
-   [Can you snapshot and branch a file system that syncs to your own S3 bucket?Which disks can be branched, and why.](https://archil.com/article/can-you-snapshot-and-branch-a-file-system-that-syncs-to-your-own-s3-bucket)
-   [Best storage for AI agentsShared and persistent file systems for agents.](https://archil.com/compare/best-storage-for-ai-agents)

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