Settings

Theme

OpenBSD Webzine #14

webzine.puffy.cafe

79 points by solene 2 years ago · 11 comments

Reader

ivoras 2 years ago

It's curious to see how times have changed. Soft-updates are indeed a very clever solution to the problem of file system consistency in the face of possible failures like OS crashes or power outages.

While journaling "simply" writes a journal of FS ops to a continuous area of the drive (especially important for mechanical drives) which is fsynced faster than random writes across platters, Soft-updates opts to be really clever with the way FS ops ordered, so that what's actually on the drive is always consistent, even with decent amount of write caching. It doesn't guard file content, though, just the file system itself.

Soft-updates is what enabled the BSD's to support short-lived files never touching the physical drive. You could create a file, write to it, read it, close and delete it, and if this was done in a reasonably short amount of time, no writes whatsoever got to the actual hardware. It was wonderful with software which used to generate a lot of temp files, like building C software.

OTOH, if a write got trough to the hard drive, Soft-updates guaranteed that file system structures get written in a way so that if an OS crash or a power failure happened at any single time, the only downside could be some unreferenced blocks, which could be garbage collected later; assuming hardware doesn't lie about fsync, of course...

I think ext4 supports this kind of short-lived-files-never-touch-the-drive caching.

  • tiffanyh 2 years ago

    Hammer2

    There is a port of Hammer2 being worked on for OpenBSD/NetBSD/FreeBSD/Linux.

    I can only hope the developer delivers this to OpenBSD and someone then maintains it since the developer, based on the readme, doesn’t appear to want to maintain OpenBSD or NetBSS longterm.

    https://github.com/kusumi/openbsd_hammer2

  • yjftsjthsd-h 2 years ago

    > the only downside could be some unreferenced blocks, which could be garbage collected later

    Unless I've misunderstood,

    > It doesn't guard file content, though, just the file system itself.

    Is a pretty big downside, although I grant that data integrity in the face of of sudden crash/poweroff is hard without going full-CoW

accrual 2 years ago

I'm quite excited about this line:

> viogpu(4), a VirtIO GPU driver, added to -current

Having a basic display driver for VMs would open doors for a lot of fun and projects with OpenBSD's VM stack (vmd).

  • zshrc 2 years ago

    Already tried it on `qemu` and Parallels. Works great! So happy that I don't need to configure it to use `fb0` anymore.

ploum 2 years ago

Note: You can support Solene, the author of this webzine and of a very interesting related blog, on patreon and liberapay:

https://liberapay.com/solene/ https://www.patreon.com/user?u=23274526

SoftTalker 2 years ago

Thanks for posting and doing this. I try to check undeadly.org from time to time but this looks like a nice summary of news from various places.

meristohm 2 years ago

This website is a breath of fresh air, and an inspiration to keep my sites simple and accessible. I appreciate that the one image (aside from the icons) has the caption beneath:

"A giant puffer fish fixing old machines. A girl kneels nearby. The narrator says «There, I found it»."

  • rollcat 2 years ago

    Hah, there's an entire comic series: https://analognowhere.com/techno-mage/

    I love how she trades the huge Bash manual for the brain interface, or distracts the sniper with "bad UI design". The world is grim and surreal, perfect setting for the story. There's a statement somewhere in there.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection