November’s Nilling Sausage

This post went to Patronizers at the beginning of November, and to the public at the beginning of December. Not a Patronizer? You could be!

I’m preparing for next week’s shoulder surgery. I won’t be able to type for 4 to 6 weeks, so I’m trying dictation again. this post is dictated and I can already tell you that macOS dictation doesn’t recognize much of my vocabulary. It insists that the descriptive word in the title of this post is “kneeling.” I shouldn’t be surprised so, other than looking forward to spending the holidays with my right arm immobilized, how are things going? (Wow, dictation put the ? in. I’m pleasantly surprised.)

The OpenZFS book will not be finished before I have surgery. I think I can get everything done except for the chapters on hot spares and the advanced raid types. Those are niche topics. I might put the rest of the book out for technical review. What exists is 113,000 words, which makes it more than twice as long as the next longest mastery book. SNMP mastery was a little over 60,000 words. People will need time to do technical review if I can even get people to do it. I’ve said many times that ZFS is more of an operating system than a file system, and this book proves it. Wow, dictating this post is a royal pain. But let’s keep going.

To achieve this, I need to tweak 4 chapters, review 2 chapters that Alan has redrafted and polish up a few comments here and there. I have a week in theory, this is achievable. Being busy is preferable to staring at the calendar. I also want to do a few things like give the apartment a very thorough cleaning. and prepare a freezer full of meals ahead of time. Hopefully I can do those things. while cogitating on how to fix manuscript problems

I don’t know. how much of the trouble I’ve had writing this book is because of the topic, the length, the complexity, or my divorce. Print on demand technology has improved to where I can seriously think about writing larger books independently. I need to get books out frequently enough that I can pay my rent, however. in the past, I’ve written books like Absolute FreeBSD in a few months. That was almost 10 years ago, though, and I don’t know that I can sustain that kind of energy at my age. The work of self-publishing also takes time. Yes, I can hire help. I’ve already hired help for physical distribution of Kickstarter rewards and sponsor gifts. The more time I spend managing help, the less time I spend writing. I fear I will spend more time explaining my requirements for book design to a new contractor than I would spend laying out the book myself.

On the other hand, I think about what happened with BSDCan. Dan ran the conference for 20 years until he had no choice but to give it up. I took over as con chair, assembled a team, and that team kept the conference alive. After two years, I stepped down as con chair and let the youngsters take over. knowing when to hand work to younger people is a vital skill as I age. As an aside, while I’m very proud of the work I did transitioning BSD can to a committee structure, I methodically refused to do any actual work as con chair credit for the conference surviving goes to the committee. I was able to articulate problems with changes that people wanted to try and the youngsters faced those problems head on. That’s why BSDCan will be in Vancouver next year.

Typing this would be much faster than dictation. If I could speak, I wouldn’t be a writer. I have to stop and make corrections every few sentences. I’m sure that if I keep practicing, Mac OS will train me to speak in a manner that works within its limitations and remove all the character from my voice rendering my work as drab and dull as any LLM-influenced text. Avoiding that in the next 2 months is going to be a vexatious challenge. Hey, dictation recognize that! I’m sure that the software suffers from hippopotomonstrosesquipedaliophobia. I’m sure they added that word to the dictionary just for people like me. I wonder if their dictionary includes. No, it does not

Somewhere in all of this my brain spewed out garbage. I published that garbage. Stephen King wrote that “all work and no play makes Jack a dull boy,” but a commercial CA using a private key of four and critical security vulnerabilities in PHP within a 24 hour period do much the same. I can’t believe I’m saying this, but: if you have any teledildonics devices be sure to update them to the latest firmware.

I’m amazed that macOS recognizes the word teladeltonics. Teladeltonics. Teladeltonics Oh fine, you know what I mean. Sadly.

Anyway, digital reader and above patronizers have new stuff in their accounts.

If I make it through surgery without having to run a GoFundMe, it will be because of you patronizers. I am extremely grateful for your support. I’m going to cut this a little short this month so I can go grind through OpenZFS Mastery, but first I’m going to go look up the word teladeltonics. That word, whatever it means, might need a horrible little story written about it as well.

139: 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 files, which feels nonsensical until you understand why.

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 transparent 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. ZFS can also perform deduplication of files, improving disk usage at the cost of memory. We’ll see how to evaluate these options and determine when to use each.

I would appreciate your help making this book happen.

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 countryside where some drunk good old boy has decided it’s okay to piss off the neighbors after midnight. The eight-lane highways run out, individual headlights invisible from up there but all together giving this subliminal impression of slow-flowing light.

For just a moment, looking out at those inverted constellations, I feel even farther above everyone.

Don’t get me wrong, I’m not worth more than anyone else. I’m smarter, yeah. Faster. Stronger. The right side of the bell curve is this itty-bitty little dot receding in my rear view mirror. But that’s all genetics. I’m not worth more than anyone.

Except the scumbags pillaging the planet, of course.

You can get the first Beaks story for free, the novel Butterfly Stomp Waltz at any retailer, or the three-book Beaks Bundle at my bookstore.

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 hypothetical backup job. Scanning the entire pool still purges the MRU list, but doesn’t affect the MFU list. Scanning a block once to back it up is not “frequent.” The most frequently used files remain cached in memory. The backup still impacts disk I/O, reducing write performance, but the system serves the most popular files from the copy cached in memory.

Each list is paired with a ghost list, which contains the information about blocks that have been recently evicted from each of the lists. When the MRU or MFU lists fill up, the blocks at the bottom of the list fall off. By tracking blocks dropped from the caches, the ARC can prevent a block from constantly cycling in and out of the cache.

The book is out for a preliminary tech review, but if you sponsor now you’ll get a PDF of the incomplete uncorrected work in progress.

OpenZFS Mastery Status

Two and a half chapters remain: AnyRAID and DRAID, hot spares, and Configurable Allocation Classes. I could knock this off in a couple weeks at the current rate.

The current rate hits a brick wall tomorrow. I’ll be out on medical and unable type until Christmas. While I might dictate some things, I won’t be able to do sysadmin work.

Sponsors have received a copy of the draft for their perusal and review. I’m also interested in feedback from OpenZFS experts.

Sponsorships will remain open until we finish the book. New sponsors will get access to the incomplete and unreviewed draft.

Thanks for the support, folks. I appreciate it.

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 maximum size, or require the kernel to preserve at least a minimum amount of RAM for the ARC.

Proxmox is intended for virtualization, and automatically caps the ARC at 10% of available memory. Linux OpenZFS defaults to capping the ARC at 50% of memory. FreeBSD goes the other direction and reserves 1 GiB of RAM for core system functions like sshd and Emacs, allowing ZFS to claim as much as it needs. No operating system vendor knows your specific workload, so all of these are equally incorrect.

I think I can get most of this book done before my surgery on 12 November. You sponsoring the book would help me pay my bills as I recover.

October’s Orthopedic Sausage

This post went to Patronizers at the beginning of October, and to the public at the beginning of November. Not a Patronizer? You could be!

I’d like to say that the title of this month’s post is a clever pun in some way, meant to either expand your vocabulary or troll your deficient vocabulary.

It is not.

Terry Pratchett said, “They say that the prospect of being hanged in the morning concentrates a man’s mind wonderfully; unfortunately, what the mind inevitably concentrates on is that it is in a body that, in the morning, is going to be hanged.”

The mysterious pain in my arm that keeps me from sleeping well? I’ve severed my rotator cuff tendon and get to have surgery for it. Having surgery to fix a health problem is a privilege in the United States, but I’m not looking forward to the four to six weeks my right arm will be immobilized. It’ll happen some day soon. My hope is to be able to appear at my divorce hearings without being hopped up on painkillers.

What’s the date? No idea. I have an MRI tomorrow, then get to meet the surgeon

But I’ve stopped lifting my right arm as much as possible. I stop my martial arts practice. I’m still doing tai chi, but with only one arm. I can still dangle my arms at my sides, so my hip-mounted keyboards mean I can still write. For now.

Other projects that I talked about last month? On hold. I’m cramming to try to get as much of OpenZFS Mastery finished before I lose use of an arm. Ideally I’ll get a first draft completed and off to reviewers before No More Typing Day. I have no idea when that will be. I do know that if I wait too long to have it fixed, it will not be fixable and I will be in pain the rest of my life. So it’s getting fixed ASAP.

My Internet existence is typed. When No More Typing Day happens, I expect to be mostly missing for 4-6 weeks.

On the plus side, one of my future novels will feature a one-armed character and his struggles to adapt to a two-armed world. Writing a book about the experience will, of course, make the surgery tax-deductible. That’s how business works.

Fortunately, I can plan for temporary disability. The Twisted Presents Kickstarter is over, but I still must fulfill it. I’m ordering the signed books today, because they have to be shipped twice. My ever-trusty Director of Analog Distribution, Alex, is standing by to fulfill DAD duties such as the dropship spreadsheet and chasing survey respondents. Worst case, I must sign Patronizer and backer copies of Twisted Presents with my left hand. That’ll be a fun collectors’ item, for very low values of fun. (Yes, yes, before you comment I’ll add: “and collectors.” There. Happy?)

Fortunately, a friend has offered to stay with me for a few days after the surgery. I’ll have two spare hands to help me sort out what I missed preparing.

So am I going to spend six weeks watching Star Trek, in order?

Perhaps. Or perhaps I’ll… take the opportunity to try dictation again?

Dictation is weird. I cannot speak coherently. My vocabulary exceeds the abilities of any dictation program I’ve tried. Writing sysadmin books with dictation is not possible. With SSH Mastery I tried a hybrid approach of speaking parts of the prose and typing commands, but my copyeditor immediately identified the dictated parts by error density. Oops. My fiction uses the characters’ voice and vocabulary, which means training a single dictation program to manage all of my fiction is a non-starter. AI dictation? Bah! AI generates minimum viable text which, despite the label, is completely non-viable. I know professional novelists who use dictation. Only a handful use software. Many hire transcriptionists.

This might be the prompt I need to finally write that book on how to make a living writing.

That’s a book I don’t particularly need to write. Whatever I say, people will tell me I’m doing it wrong. People will tell me I’m lying, or greedy, or arrogant. Greed is relative, of course. I want to pay my rent and get through my surgery without needing a GoFundMe. Some people aren’t doing as well as me. If I needed big money I would have stayed in tech. For decades, my goal has been to make “enough.”

The book would make trouble, but it sat in my brain like a noisy cricket hiding in the bedroom. I outlined it a few months ago, mostly to inescapably bind it within my literary spell book.

BUT–I would write that book in my own voice, using a comparatively simple vocabulary. Which means dictation might work. It won’t. I know it won’t. But it might. The attempt might distract me as I recover. Or, I could just give up and watch the ~850 existing hours of Star Trek, except that would involve once again witnessing “Turnabout Intruder” and I’ve sworn an oath in that regard.

The good news is, the core structure of OpenZFS Mastery is complete. The difficult work was coherently explaining the core concepts. What remains are crenellations and outbuildings built on that knowledge. The remaining chapters?

  • “Encryption” is brand-new.
  • “Replication” has a working shell from the first edition, but needs updating and expansion for new features.
  • “Hot Spares” will be easier than folks think, because mostly you shouldn’t.
  • “DRAID and AnyRAID” won’t be too horrid.
  • “Caches” needs updates, but the first edition text isn’t actively terrible
  • “Sharing” is a bunch of straightforward small topics riveted together
  • “Performance,” “Tuning,” and “The ZFS Debugger” are my favorite type of chapters: Allan’s problem

Can I finish this before surgery? Who knows. I’m gonna try, though.

After all, my mind is concentrated upon being hanged.

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 you’ll barely remember where you left your spleen. If you delegate them, your flunky will get overloaded and forget. That’s what flunkies are for. Actual routine backups demand automation. The two popular tools are syncoid and zelta.

Syncoidis the integrated sanoid replication tool.

Zelta is a powerful policy-guided backup suite designed to satisfy compliance auditing. If you need to configure massive backups via metadata, satisfy external auditors, or if you daily use the word “pebibytes” in anger, investigate zelta. Most people don’t need that much power, however, so we’ll discuss syncoid.

For Halloween, why not treat me to an OpenZFS Mastery sponsorship? Really trying to get a first draft done before 12 November, so I can get it to review before my shoulder surgery disables me through the end of the year.

New story: Tormented by Teledildonics

Let me get this out of the way: I am a bad person and I feel bad.

I thought I was done with this crap.

But last week was bad in computer security. PHP got rooted–no, no, you can’t root a computer language, except when every web site based on PHP is vulnerable to an attack, PHP got rooted. On the same day, digital security company eMudhra was found to have deployed a poor private key for signing X.509 certificates. Only a digital security company with very special skills would use a private key of “4.”

People without deep expertise might ask “how bad was this, really?” Several other security firms immediately disclosed failures that, any other time, would have triggered blaring headlines and deeply annoyed techies. They were mere blips. This was the kind of week where everyone affected needed a shot of whiskey and a prolonged hug.

I had neither—but I did have a full-day meltdown. I bounced it past fellow author Lucy Snyder. She raised it from a shriek of pain to a tale with depth. After bouncing it between us a few times, there’s no way to tell who wrote what without digital analysis.

Allow me to present: Tormented by Teledildonics: A BDSM Cybersecurity Incident by myself and L A Snyder. (Why is Lucy using a pen name? Because BookScan. If you don’t know what that is, congratulations, you have lived a good life.)

Print is on the way. Patronizers, your ebook is coming. Other stores are coming, but they’re slower than my store.

If you search book catalogs you’ll find this in the categories Fiction/Erotica/BDSM, Fiction/Crime, and Computers/Embedded Computer Systems. After perusing Amazon’s offerings, this work is positioned to become the industry’s standard reference cautionary tale on teledildonics.

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 spindles and SSDs have one queue per disk, NVMe allows 65,536 queues per device, of 65,536 commands each. Most NVMe drives use one read and one write queue per CPU. By spreading the load across CPUs, NVMe queues can be kept relatively shallow, allowing high-priority tasks fast responses and boosting general performance. The NVMe interface requires less locking while providing far greater parallelism and performance.

Still grinding to get a first draft done before my shoulder surgery next month. I’d appreciate your support.