Is a filesystem on an object store a bad idea?
Object stores offer high durability, scalability and typically lower storage costs per gigabyte than traditional block or file storage. Many enterprise storage platforms, including NetApp ONTAP, Dell PowerScale, IBM Storage Scale, Qumulo and WEKA, support storing or tiering file data in object stores. Nasuni, Panzura, CTERA and ObjectiveFS build cloud filesystems on object stores.
Despite these uses, running a filesystem on an object store is sometimes viewed as a poor architectural choice. Many objections arise from implementations that map files or blocks directly to objects, including 1-to-1 mapping and block mapping. For example, MinIO's blog post "Putting a Filesystem on Top of an Object Store Is a Bad Idea" focuses on 1-to-1 mapping.
The following sections compare direct mapping approaches with the log-structured approach used by ObjectiveFS, providing context for common objections and showing whether they apply to ObjectiveFS.
Object store filesystem architectures
1-to-1 mapping, such as s3fs-fuse and Mountpoint for Amazon S3, stores each file as one object. That is a convenient way to browse a bucket, but the filesystem inherits the object store's limitations: paths are object keys, every metadata operation is a request, and objects are immutable and written whole. With many small files, this means many objects and at least one request for every file written, read or checked.
Changing part of a file or appending to a log file requires the whole object to be rewritten. Atomic rename becomes impossible, even for a single file, since the object must be copied to a new key and the old one deleted in a separate request. A directory rename repeats this for every object under the directory. A crash during a rename can leave duplicates behind: a file under both its old and new names, or a directory with some files copied and others not.
Block mapping, such as s3backer, S3QL and JuiceFS, splits a volume or individual files into blocks and stores each block as an object. A small write uploads only the affected blocks, and a rename is a metadata change, so whole objects are not rewritten or copied. However, when each file is split into its own blocks, as in S3QL and JuiceFS, every small file still becomes at least one object, so many small files mean many objects and requests.
Consistency also depends on a single place that holds the metadata, and if it fails or loses recent updates, the filesystem can become inconsistent. s3backer, formatted with a local filesystem such as ext4, and S3QL, with its local metadata database, can only be mounted by one server at a time. JuiceFS allows many servers to mount the same filesystem, but they all rely on a metadata database outside the object store, such as Redis, MySQL or TiKV. Unless that database is highly available, it is a single point of failure. That metadata database also has to be managed, scaled and backed up separately from the object store.
Log-structured implementation, such as ObjectiveFS, writes all changes to new objects atomically and does not overwrite existing data in place. This keeps the filesystem always consistent because there are no partially written objects. Writes are bundled, so many small files are stored in fewer objects and written with fewer requests, and one request can read many small files. Appends and other writes add only the changed data. The compaction feature combines small objects into larger ones and brings related data together to keep reads efficient.
Metadata operations, including file creations, file renames and directory renames, are atomic. Metadata is stored with the data in the durable object store, so there is no separate metadata server to manage, scale or back up, and no single point of failure. Many servers can mount the same filesystem read/write. Snapshots are fast and inexpensive.
Frequently asked questions
Consistency
Is rename atomic?
Log-structured: Yes. ObjectiveFS renames a file or directory by atomically updating the metadata of the directories involved. File data belongs to an inode, not to its pathname, so no data is copied, regardless of file size or directory contents. Other servers see either the old name or the new name, never an intermediate state.
Context: In a 1-to-1 mapping, a pathname is an object key, so even renaming a single file is not atomic. The file's data is copied to a new key and the old object is deleted in a separate request. In between, other clients can see both names, and a crash leaves both behind. Renaming a directory repeats this for every object under it. While the copy is in progress, other clients see a partially renamed directory.
Why it matters: Many applications, such as Spark, TensorFlow, Git, Dovecot and rsync, save files by writing a temporary file and renaming it into place. Atomic rename is what guarantees that readers see either the complete old file or the complete new one.
Can multiple servers read and write the same filesystem?
Log-structured: Yes. ObjectiveFS supports concurrent readers and writers across multiple servers mounting the same filesystem, and updates are visible to all of them. The object store is the synchronization point between servers, so there is no separate metadata server.
Context: In a 1-to-1 mapping such as s3fs-fuse or Mountpoint for Amazon S3, multiple servers can share reads but cannot safely share writes. Mountpoint does not allow editing existing files, and s3fs-fuse rewrites the entire object whenever a file changes. With block mapping, sharing depends on where the metadata is kept. s3backer and S3QL can be mounted by only one server at a time. JuiceFS lets many servers mount the same filesystem but depends on a separate metadata database that has to be managed and kept available.
Why it matters: In PyTorch and Ray training clusters, each node writes its own part of a checkpoint, and every node must see the complete set to resume. Slurm jobs write files on one node that the next step reads on another, render farms write frames from many nodes into the same output directory, and JupyterHub users edit their notebooks from whichever server they are placed on. On Mountpoint for Amazon S3, Git repositories and editors such as vim do not work at all, because existing files cannot be edited.
Can a crash leave the filesystem inconsistent?
Log-structured: No. ObjectiveFS does not overwrite existing objects. Updates to the filesystem are committed using atomic PUT requests to new objects to keep the filesystem in a consistent state at all times. A crash cannot leave the filesystem or atomic operations such as renames in a half-finished state. As on a local disk, a crash can lose in-flight data that has not yet been committed, but the filesystem stays consistent. fsync is supported and behaves as POSIX specifies, returning only after the data has been committed. Strong checksums are used to verify all reads from the object store.
Context: In a 1-to-1 mapping, a crash during a rename can leave both names or a partly renamed directory (see Is rename atomic?). With block mapping, consistency depends on the metadata store, which has to be durable and replicated synchronously. If the metadata store is lost, writes that fsync already confirmed can disappear.
Why it matters: Spot instances are reclaimed and Kubernetes moves pods when nodes fail. When the filesystem is mounted on another node, it has to be consistent and usable without a repair step.
Can you run a database on a shared filesystem?
Log-structured: Yes, ObjectiveFS supports running a database, but we do not recommend it mainly because of fsync performance. For correctness, fsync needs to wait for the object store to confirm that the data is safely stored before returning. Operationally, MySQL and other databases also expect exclusive access to their data directory, so only one server can run the database at a time (see the MySQL documentation).
Context: Databases frequently update the middle of their data files and call fsync on every transaction commit to make sure that the data is safely stored. In a 1-to-1 mapping, objects cannot be modified in place. A database write that changes a few pages of a data file requires rewriting the entire file, and Mountpoint for Amazon S3 does not support writes to the middle of a file. Databases also rename files, for example when PostgreSQL recycles its write-ahead log files, and renames are not atomic in a 1-to-1 mapping. With block mapping, fsync is only as durable as the metadata store. If the metadata store is lost, transactions that fsync already confirmed can disappear.
Why it matters: Databases such as MySQL and PostgreSQL rely on more filesystem features than most applications, including writes to the middle of files, an fsync that waits for durable storage and atomic renames.
Performance
Are small files and directory listings slow?
Log-structured: No. ObjectiveFS can store many small files together in a single object. Related metadata is also stored together. Reading a directory of small files or listing it usually takes only a few requests. When only part of an object is needed, ObjectiveFS uses byte-range reads to fetch just the relevant data. Since writes are bundled, thousands of new small files can be uploaded in a few requests. Deleting files, including rm -rf of a large tree, only updates metadata. The memory cache and an optional local disk cache speed up repeated access further. For measurements, see our small-file benchmark.
Context: In a 1-to-1 mapping, each file is a separate object, and the object store has no directories, only key prefixes. A directory listing is a LIST request that returns at most 1,000 names, so listing a directory of 100,000 files takes 100 requests in sequence. Commands such as ls -l and find can also need a separate request for each file's attributes. Writing each small file is its own PUT request. Deleting a large tree requires deleting every object in it. With millions of small files, the number of requests and round trips adds up quickly.
Why it matters: Many applications, such as PyTorch, Git, Conda, npm and Jenkins, read or write thousands of small files and list large directories. If each file access waits on a network round trip, jobs can spend more time waiting on metadata than doing useful work.
Does a small edit or append rewrite the whole file?
Log-structured: No. ObjectiveFS writes only the changed data to the object store. For example, updating one block in a 10 GB file only writes the updated block. The same is true for appending a new log line to a log file. Background compaction later merges these writes into larger objects to keep reads efficient.
Context: In a 1-to-1 mapping, objects cannot be modified in place. Even a single block change or a log line append requires rewriting the entire object. Block mapping avoids this by uploading only the affected blocks.
Why it matters: Many applications, such as kdb+, FFmpeg, Nginx and HDF5, append to files or update them in place. If every small update requires rewriting the entire object, upload time and bandwidth increase with file size.
Are large files and random reads a problem?
Log-structured: No. ObjectiveFS streams large files to the object store as they are written, rather than waiting until the file is closed. Files can therefore exceed the server's memory or local disk. Reads of large files are also streamed from the object store, and random reads fetch only the data needed. In our large-file benchmark on Amazon S3, a single server wrote a 10 GB file at 676 MB/s and read it back from the object store at 556 MB/s.
Context: In a 1-to-1 mapping, each file is stored as a single object, so the object only appears in the bucket after the entire upload completes. In MinIO's testing, copying a 10 GB file through s3fs-fuse failed with I/O errors and succeeded only after multiple attempts. Random reads work in all approaches, because the object store supports byte-range reads.
Why it matters: PyTorch checkpoints, llama.cpp GGUF model files, DaVinci Resolve video masters and genomics BAM files can reach tens or hundreds of gigabytes per file.
Does FUSE add overhead?
Log-structured: Yes, but less than commonly assumed. ObjectiveFS uses the kernel cache to avoid some FUSE calls entirely, and handles the remaining requests directly without libfuse. On an 8-core server, a full FUSE request round trip can be as low as 1.5 microseconds.
Context: Early versions of FUSE gave it a reputation for being slow, but Linux kernel optimizations over the years have improved performance. Not all FUSE filesystems can take advantage of the kernel improvements, and some architectures might require contacting a separate metadata server to answer basic FUSE requests, which can add overhead to each call.
Why it matters: Commands such as git status, find and npm install can make hundreds of thousands of stat, open and small read calls.
Does performance drop as servers are added?
Log-structured: No. Each ObjectiveFS server reads and writes directly to the object store and has its own cache. No metadata server or storage gateway sits between the servers and the object store. Adding servers also increases the overall cache capacity, network bandwidth and parallel requests, allowing the performance to scale with the performance to the object store.
Context: Many shared filesystems route metadata requests from every server through one metadata server or storage cluster, so performance stops growing once it is fully loaded. For example, JuiceFS clients write every metadata change to a shared metadata database, which can become a bottleneck when many clients create files or run metadata-heavy workloads.
Why it matters: AI training clusters add GPU nodes to finish training runs sooner with schedulers such as Ray and Slurm. Life sciences teams add compute nodes to process more genomics samples in parallel with workflow managers such as Nextflow and Snakemake. Render farms add nodes to render more frames at once with render managers such as Deadline and OpenCue.
POSIX compatibility
Are hard links and symbolic links supported?
Log-structured: Yes. ObjectiveFS supports hard links and symbolic links. A hard link is another directory entry for the same inode, so no data is copied and a change made through one name is visible through the others.
Context: Filesystems that use a 1-to-1 mapping store each file under its path as the object key, and an object store cannot give one object two keys. For example, Mountpoint for Amazon S3 supports neither hard links nor symbolic links.
Why it matters: On Linux, Python virtual environments, such as those created by uv and Poetry, use symbolic links to the interpreter, the Hugging Face model cache links each model snapshot to its blob files, and pnpm builds node_modules from symbolic links. pnpm and Conda use hard links to share one copy of each package file between environments.
Is memory mapping supported?
Log-structured: Yes. ObjectiveFS supports mmap. mmap(2) is a POSIX system call that maps files into main memory and lets these files be accessed using memory operations.
Context: Filesystems that use a 1-to-1 mapping store each file as one object, which cannot be changed in place, so a write through a shared memory mapping rewrites the whole object. For example, Mountpoint for Amazon S3 does not support writes at arbitrary offsets.
Why it matters: Many high-performance databases map their data files into memory so that queries read data directly from memory without extra copies. For example, kdb+ maps its tables into memory, and LMDB and the Lucene indexes behind Elasticsearch and OpenSearch are read through memory maps. Large AI model files are loaded the same way. The Hugging Face safetensors format and llama.cpp both use mmap, so only the parts in use are read into memory.
Are extended attributes, file flags and special files supported?
Log-structured: Yes. ObjectiveFS supports extended attributes, Linux file attributes such as immutable and append-only, macOS file flags, file capabilities and special files.
Context: Filesystems that use a 1-to-1 mapping store extended attributes as object metadata. Amazon S3 limits the user-defined metadata of each object to 2 KB, and this metadata can be changed only by copying the object. For example, Mountpoint for Amazon S3 does not support extended attributes and can create only regular files.
Why it matters: Samba can store Windows file attributes and ACLs in extended attributes, and macOS stores Finder information in them. Administrators set the append-only and immutable attributes so that logs and configuration files cannot be changed or deleted. Build tools and databases use named pipes and Unix sockets to pass data between processes. For security, SELinux stores its labels in extended attributes, and file capabilities let a program run with only the privileges it needs instead of as root.
Are POSIX permissions and extended ACLs supported?
Log-structured: Yes. ObjectiveFS implements POSIX users, groups and permissions, and supports extended ACLs.
Context: Filesystems that use a 1-to-1 mapping can keep a file's owner, group and mode only as object metadata, and the object store itself checks only IAM and bucket policies. For example, Mountpoint for Amazon S3 applies one owner, group and mode, set at mount time, to every file and does not support chmod or chown.
Why it matters: Every file on Linux has an owner, a group and permissions, and most applications assume that the filesystem enforces them. Some programs check file permissions before they run. For example, PostgreSQL does not start unless its data directory is mode 0700 or 0750, and OpenSSH by default checks the modes and ownership of a user's files and home directory before accepting a login.
Working with the object store
Are encryption, snapshots and immutable files supported?
Log-structured: Yes. ObjectiveFS encrypts data and metadata on the server, so they always stay encrypted at rest and in flight. Server-side encryption with AWS KMS is also supported. Snapshots are read-only, point-in-time views of the entire filesystem and can be mounted to recover files. Linux immutable and append-only attributes protect individual files.
Context: Encryption, snapshots and immutable files are commonly assumed to be missing from filesystems on an object store. For example, Mountpoint for Amazon S3 does not encrypt data on the client or take snapshots, and s3fs-fuse does not support snapshots or immutable files.
Why it matters: Compliance standards such as PCI DSS and HIPAA call for encrypted data, and audit logs written by auditd or rsyslog must not be changed or deleted. Recovering from an accidental deletion requires earlier versions of files, and AI teams use them to reproduce a training run with the exact dataset it used.
Do small files cause many object store requests and high request charges?
Log-structured: No. ObjectiveFS works efficiently with many small files and large directories. Small files and their metadata are stored together in shared objects, so reading and writing small files, listing a directory or running stat on every file in it does not need a request for each file. Caching further reduces the number of requests.
Context: The concern comes from filesystems that use a 1-to-1 mapping, where each small file is a separate object. There, writing or reading each file is its own request, and checking the attributes of every file in a directory, as ls -l does, can take a separate request for each file.
Why it matters: Commands such as ls -l, find, du and rsync check the attributes of every file in a directory tree, and grep -r reads every file in it. A web page that shows a gallery of thumbnails reads many small image files each time it loads. Backup jobs, git status and AI training jobs that read millions of small images or text samples repeat this on every run.
Summary
Whether a filesystem on an object store is a good idea depends largely on its architecture. A log-structured filesystem like ObjectiveFS avoids many of the limitations of the other two approaches. Direct 1-to-1 mapping can be inefficient with small files, rewrites the whole object to change part of a file and cannot rename files or directories atomically. Block mapping addresses some of these issues but requires metadata outside the object store, such as a local database or a metadata server. ObjectiveFS keeps both data and metadata in the object store. It provides POSIX semantics and concurrent read/write access from multiple servers without a separate metadata store.
ObjectiveFS lets applications that require a POSIX filesystem interface use an object store without code changes, including when multiple servers share the same filesystem. Use cases include AI training data and checkpoints, shared Kubernetes volumes, model weights served to an inference fleet, render farms and kdb+ historical databases. Workloads that need files to be accessible directly as objects can use the object store's API or a 1-to-1 mapping filesystem such as s3fs-fuse or Mountpoint for Amazon S3.
ObjectiveFS runs on Amazon S3, Azure Blob Storage, Google Cloud Storage, IBM Cloud Object Storage, Oracle Cloud Infrastructure Object Storage and many S3-compatible object stores. Start a free trial or read the getting started guide.
Last updated ObjectiveFS staff
Try It // Run Your Workload on Object Storage
14-day trial · no credit card · running in minutes