Fast File System: Why Berkeley Rearranged the Disk
Fast File System sounds like a compliment you could give any speedy storage setup. In computing, it usually names a specific design: the Berkeley Fast File System, or FFS.
A filesystem organizes stored files and folders and keeps the information needed to find them. That supporting information, called metadata, includes details such as file sizes and the locations of their contents.
The disk was spending too much time traveling
On a mechanical hard drive, a moving read-and-write head must reach the right part of a spinning disk. Repeated trips between scattered pieces of a file and its bookkeeping can waste time.
Berkeley researchers described their redesign in the 1983 paper A Fast File System for UNIX. It became part of Berkeley's version of Unix, an operating-system family.
FFS divided storage into areas called cylinder groups, with space for both file data and bookkeeping in each group. Placing related information nearby reduced the need for long trips across the disk.
Why Split One Drive Into Several?
A block is a unit of space the filesystem uses to manage data. Larger blocks let the system transfer more information per operation, improving efficiency for larger files.
Small files needed a smaller allowance
Large blocks create a space problem: a tiny file shouldn't have to waste most of a large allocation. FFS allowed blocks to be divided into smaller pieces called fragments, which could hold a small file or a file's final portion.
That use of “fragment” describes an intentional storage unit. It doesn't mean the file is damaged.
The design combined larger transfers with more economical storage for small amounts of data. It didn't guarantee that every large file would fit in one uninterrupted stretch of disk.
- Open programs and large files in moments with speeds up to 7,150MB/s.
- Stop deleting things to make room: 1TB holds a full library.
- Keep the drive healthy with Samsung's own management tools.
Where FFS shows up today
You'll encounter this family in BSD operating systems, descendants of Berkeley's Unix work; BSD stands for Berkeley Software Distribution. FreeBSD's filesystem creation manual supports UFS1 and UFS2 formats and exposes settings for block size, fragment size and allocation policies.
UFS stands for Unix File System; in FreeBSD documentation, you'll see the UFS name alongside its Berkeley FFS implementation. Those settings are implementation choices, so an old paper's example sizes aren't universal modern requirements.
Performance also depends on the storage device, available space and the work being done. The historical word “fast” doesn't establish that FFS is the best choice for every current workload.
Keeping the bookkeeping consistent
FreeBSD's FFS manual describes soft updates, which control the order of metadata writes. The purpose is to preserve consistent filesystem bookkeeping if work is interrupted.
Journaling records changes in a log that can help recovery after a crash. Soft updates can use a journal of metadata operations, but that record isn't a separate backup of every document's contents.
If you're reading an FFS guide to speed up an existing computer, pay attention to what each tool does. FreeBSD's newfs creates a filesystem and clears its previous structure; it's a formatting tool, not a routine speed-up command for files you want to keep.
Unix: A Family History, a Standard and a Set of Permissions

Disk Partitions: Separate Storage Areas on the Same Drive

Data Integrity: How to Keep Records and Their Connections Reliable

QUOTE:
"Amateurs hack systems, professionals hack people."
