NEXItaliano

NEXFS › Documentation › Performance

Performance

By Roberto Arato of aratoingegneria.it

This page explains where NEXFS is fast and why: the choices in its design that make the difference, and what to choose, folder by folder, to get the most out of it.

Metadata: create, look up, delete

Creating, finding and deleting files is the strongest point of NEXFS, and where it stands out most among distributed filesystems. A node working in a folder holds it under a lease and answers from its own memory, without asking the network each time; the changes go out to the meta nodes in groups, not one by one. Builds, source trees, mail folders, caches: every program that handles many files benefits.

Small files

For small files the content travels together with the metadata, in a single exchange: opening, writing and closing a small file costs one round trip instead of several.

Speed or redundancy, folder by folder

The number of copies is chosen per folder, in the same filesystem:

  • one copy where speed matters more than redundancy: a build cache, a folder of temporary files, data that can be regenerated. The nodes' disks work in parallel instead of repeating the same data, and writing is at its fastest;
  • three copies where the data matters: home directories, projects, real data.

Reading does not depend on the number of copies.

In every case fsync returns only when the data is on the disk of all copies (see Security and data durability): what a program has asked to be safe is truly safe. With three copies, writing proceeds at the pace of the slowest of the disks involved, which is why giving each node its own disk pays off.

Sequential reads and builds

Sequential reads of large files and builds are where the crossing between kernel and user space, the cost of FUSE, matters most. For those who need it, an optional kernel module is planned after version 1.0, with the same protocol and the same daemons.

The footprint

NEXFS Ceph
To install a .deb package of less than 400 KB (4.8 MB installed) a container image of about 1.5 GB
Programs one daemon, one client, one tool, one library monitor, manager, OSD, MDS, plus the orchestrator
First node started with one command, nothing to download the orchestrator downloads the images and starts the services
Machine clocks no constraint for consistency synchronized within 50 ms
In the kernel nothing: FUSE client in user space kernel client