tmpfs for Super Fast Writes

CI/CD
Aug 6, 2025
Dan Manges
tmpfs for Super Fast Writes

Disk performance can be an important factor in CI/CD pipeline performance. It's affected by:

The performance is mostly relevant in write-heavy tasks. And no task is heavier on the writes than an npm install, as hundreds of thousands of tiny files are written to disk.

tmpfs

To accelerate performance in high iops scenarios like an npm install, we built support for running a task using tmpfs.

To use tmpfs, just add tmpfs: true to the agent configuration on your task.

.rwx/tmpfs-demo.yml
1
tasks:
2
- key: tmpfs-demo
3
agent:
4
tmpfs: true
5
run: ...

Here's a longer example of writing a gigabyte of 0's.

Without tmpfs, it takes 3.376s to write this file.

With tmpfs, it takes 0.383s (8.8x faster).

.rwx/tmpfs-demo.yml
1
tasks:
2
- key: tmpfs-demo
3
agent:
4
tmpfs: true
5
run: |
6
time dd \
7
if=/dev/zero \
8
of=testfile \
9
bs=1M \
10
count=1024 \
11
oflag=direct \
12
status=progress

Demo

Never miss an update

Get the latest releases and news about RWX and our ecosystem with our newsletter.

Share this post

Enjoyed this post? Pleas share it on your favorite social network!

Related posts

Read more on updates and advice from the RWX engineering team

See all posts
Using an MCP Server to Fix Tests that Failed on CI
CI/CD

Using an MCP Server to Fix Tests that Failed on CI

We shipped an MCP Server via the RWX CLI. Use it to have AI fix tests that failed on CI, powered by RWX tracking test failures as a semantic output.

Aug 8, 2025
Read now
RWX July 2025 Recap: ARM runners, VS Code Extension, and more
CI/CD

RWX July 2025 Recap: ARM runners, VS Code Extension, and more

In July we released ARM runners, a VS Code Extension, and an option to start runs manually. Stay tuned for progress on a new way to build container images.

Aug 4, 2025
Read now
The GitHub Actions Base Image is a Whopping 47 GiB
CI/CD

The GitHub Actions Base Image is a Whopping 47 GiB

The decision to bundle a plethora of tools into the GitHub Actions base image is baffling. The base image is a whopping 47 GiB.

Jul 25, 2025
Read now