
60 Seconds of WIP
No interviews. No discussions. Just a multi-genre author reading a few sentences of whatever he's working on at the moment.
Latest Episodes
Thanks
Happy American Food Coma Day! Here’s a tidbit of OpenZFS Mastery. ZFS makes it easy to answer questions like “How much free disk space does this pool have?” The question “What’s using up all my space?” is much harder to answer thanks to snapshots, clones, reservations, volumes, compression, and referenced data. These features might also cause problems when trying to use traditional filesystem management methods on ZFS datasets. It’s even possible to find you don’t have enough space to delete fil…
138: Slow-Flowing Light
I’m recovering from surgery and unable to type, so here’s a tidbit from Butterfly Stomp Waltz. The Embassy Building’s way outside Atlanta, in this chunk of green space and private homes and convenience stores and dentist offices. Atlanta looks like a tangle of Christmas lights, mostly white but with reds and blues and greens all mixed up in there. Christmas is the wrong holiday, though. The fireworks for the Fourth ended a couple hours ago, except for the occasional low sparkle across the countr…
137: Paired with a Ghost
Here’s a snippet of OpenZFS Mastery on the Adaptive Replacement Cache. The ARC also caches files that have been recently read from disk. Instead of a single list, the ARC has multiple lists. One is the Most Recently Used, or MRU, list, tracking accessed filesystem blocks much like the buffer cache. The second is the Most Frequently Used (MFU) list, tracking filesystem blocks that get used regularly. The addition of the MFU list reduces the impact of cache-thrashing processes like the hypothetica…
136: sshd and Emacs
Here’s a chunk from the caching chapter of OpenZFS Mastery. The ARC surrenders memory readily upon request, but freeing memory doesn’t happen instantaneously. While the process of releasing memory from the ARC has been accelerated in recent OpenZFS, it will always take longer than allocating free memory. On a host with a very large ARC, dumping gigabytes of objects from the cache might take a measurable fraction of a second. Depending on your host’s purpose you might need to restrict the ARC’s m…
135: What Flunkies Are For
Today I’m working on snapshot replication for OpenZFS Mastery. While some environments require backups be dumped to offline media, others find online backups sufficient, or use online backups for warm spares. Lucas assumes that every system he controls will simultaneously betray him, so he uses both. Jude does something that he’s gonna fill in here. Backups that must be run manually are not backups. You won’t do them. Sure, you’ll do them once or twice, but one day the coffee pot will break and …
134: The Clunky NVMe Interface
One PHP Apocalypse later, here’s OpenZFS Mastery on NVMe. The slowest, most complicated, and most error-prone part of an SSD is the Flash Translation Layer. Pretending to be as stupid as a 1980s spinning disk is hard labor. Non-Volatile Memory Express (NVMe) uses very similar hardware but drops this clumsy pretense, instead offering an interface designed for fast flash memory. NVMe itself is a physical interface specification like SATA or SCSI/SAS, but designed for extremely fast access. Where s…
133: Cleverness Is Your Only Option
Here’s a tidbit of OpenZFS Mastery about replication. Replication also greatly simplifies migrating data, even huge amounts of data over ridiculous distances. With enough data, even 40-gigabit Ethernet in the same datacenter seems slow! Maybe you have to migrate a massive dataset to the other side of the country, or across the planet. Suppose you have many tebibytes of data undergoing constant minor churn, such as an orders database for a busy ecommerce site. Copying that data across the country…
132: A Monstrous Heap of Redirections
I’m pushing to complete a first draft of OpenZFS Mastery in the next few weeks. Here’s a bit on ZFS and lightweight virtual machines. Lightweight virtualization like Linux containers, Illumos zones, and FreeBSD jails are the most efficient way to isolate virtual systems from the host. Rather than making the virtual machine deploy its own networking stack, memory cache, and filesystem, the main host’s kernel handles those tasks and reduces the virtual machine to an isolated process space. Some ap…
131: Lucas is Incompetent or Evil
Folks sometimes forget that OpenZFS Mastery has a co-author. Here’s a bit Allan Jude originally wrote. But what if Lucas is incompetent or evil? You give him access to take his own snapshots and he will try to create a million “just to see what would happen.” You know people like that. ZFS has your back when dealing with these difficult users. The snapshot_limit and filesystem_limit properties allow you to restrict the number of snapshots or child filesystems that can be created under a dataset.…
130: Meticulous Adherence to Arcane Unofficial Procedures
OpenZFS Mastery uses FreeBSD and Proxmox as reference platforms. Here’s a bit about why. Proxmox is a Debian variant focused on virtualization, developed by Proxmox Server Solutions GmbH. It integrates ZFS as a primary filesystem and can install all the Debian packages. As we write this, Proxmox is the easiest way to get ZFS on Linux. While Proxmox is designed as a virtualization platform, it’s Debian plus other tools. You can install a desktop environment or any other Debian packages to tune th…
129: The New Linker Strangles
OpenZFS Mastery has reached chapter 9, on boot loaders. The most tediously terrifying system administration task is an operating system upgrade. The new kernel might not boot the system, but that’s the least of your problems. What if a critical program requires an old version of a shared library? Maybe that new terminal mode is subtly incompatible with your application. Or perhaps the new linker strangles your mission-critical software. Sometimes problems aren’t immediately apparent but creeping…
128: Filthy Land Animal Lungs
There’s one story in Twisted Presents I haven’t read here, so that’s what you get. This isn’t a fairytale, but: Once upon a time, we were all friends. And it’s not going to end happily ever after. On this Christmas Eve, three tedious years after the disastrous college summer when Kurt betrayed us, Phil and I are finally making an ending. Kurt’s ill-gotten mansion looms on an isolated northern California cliff overlooking the Pacific Ocean. This deep in the night, the scents of ocean and eucalypt…
127: A Fifth of Makers' Mark
I’ve just finished prepping the print version of Twisted Presents, so here’s a tidbit from one of the stories therein. The first Hogswatch Eve after the accident, Merle had stopped on the way back from the hospital for a fifth of Makers’ Mark. He knew if he started drinking he’d never stop, but the next day was Hogswatch and he couldn’t think of any other way to survive the night. He woke the next morning with an empty bottle, an open sewer for a mouth, and a witch’s brew in his stomach. Throug.…
126: Low Distress Tolerance
I finished the OpenZFS Mastery chapter on volumes earlier this week. Zvols support sparse volumes, also known as thin provisioning or overcommitting storage. A sparse volume is a volume that reserves less space than the volume actually needs. Sparse volumes permit allocating more space than the pool has available. You could, for example, create ten 1-exabyte sparse volumes on your 1 TiB dataset. So long as your volumes are never heavily used, nobody will notice that you’re overcommitted. Sparse …
125: A Useful Quirk
I’m trying to finish up the OpenZFS Mastery chapter on disk space use today. Well, my part of it. I’m planning to dump–delegate, delegate–the section on deduplication to Allan. When you have a co-author expert, use them. Zstd offers compression levels from 1 to 19. The default is zstd-3, a reasonable compromise between performance and efficiency. Writing data at higher compression levels require more CPU but might save more space. Zstd has a useful quirk where decompressing higher levels uses no…
124: Clones Can Grow
I’m writing about space usage OpenZFS Mastery. ZFS offers tools to transparently increase the amount of data you can fit on a disk. Rather than requiring the system administrator to compress and decompress individual files, ZFS uses efficient compression at the filesystem level. While compressing logs during rotation makes the files look smaller in ls(1), it doesn’t change how many disk blocks those logs use. Snapshots and clones let you duplicate entire datasets with only a tiny amount of space…
123: Excuses Weighed Nothing Against Ice
Probably jinxing myself by posting this, but: here’s a chunk from Twisted Presents. Three nights ago had been the Longest Dark, the strongest night of the year. A night for the clan to come together and declare the year’s struggles, to mark the end of feuds and wars. Even living clanless and bereft, Mha had caught a whisper that her youngest daughter was in danger and had charged into battle. The magnificent fight had given Mha fresh cuts. She had defeated an elven wizard. Other orcs had honored…
122: Gawk at Others' Past Mistakes
OpenZFS Mastery is starting to pick up momentum. Don’t look at it too closely. You might scare it. First, note how ridiculously wide this VDEV is. A fourteen-disk VDEV will have suboptimal performance and experience slow death by fragmentation. Also, the devices were named badly. Now that drives have failed, it matters. But we’re not here to gawk at others’ past mistakes—uh, learning experiences. We’re looking at hardware failures. This RAID-Z2 pool is in a degraded state. It’s missing not one b…
121: Possibilities Multiply
OpenZFS Mastery is starting to roll lunch again. Hoping to get some intertia with it. But create a dataset for each team, and give each site its own dataset within that parent dataset, and possibilities multiply. A team needs a copy of a web site for testing? Clone it. With traditional filesystems, you’d have to copy the whole site directory, doubling the space used and taking much, much longer. Clones use only the amount of space for the differences between the datasets and can be created insta…
120: The Pool Reverts
Here’s a chunk of OpenZFS Mastery. I’ve caught up to where I stopped, and new words will be coming soon. Pool features that are enabled are available for use, but not yet used on any bits on the disk. Your OpenZFS supports a new compression algorithm, but has not actually used it to write any data to disk. This pool could be imported on a system that doesn’t support the feature, because the new host won’t see anything that makes it freak out. Disabled pool features are available in the operating…





