today's howtos
-
Most websites should be served statically
There's nothing stopping sites from being built dynamically, using centrally stored content, and various templates that can be put together to build a complex website. It should just happen once, and then the generated static content can be efficiently served again and again, until the source content changes, and triggers it to be rebuilt.
-
ARC memory reclaim statistics exposed by ZFS on Linux (as of ZoL 2.1)
Yesterday I talked about some important ARC memory stats, to go with stats on how big the ARC is. The ARC doesn't just get big and have views on memory; it also has information about when it shrinks and somewhat about why. Most of these are exposed as event counters in /proc/spl/kstat/zfs/arcstats, with arc_need_free as an exception (it counts how many bytes ZFS thinks it currently wants to shrink the ARC by).
-
When and how ZFS on Linux changes the ARC target size (as of ZoL 2.1)
Previously I discussed the various sizes of the ARC, some important ARC memory stats, and ARC memory reclaim stats. Today I can finally talk about how the ZFS ARC target size shrinks, and a bit about how it grows, which is a subject of significant interest and some frustration. I will be citing ZoL function names because tools like bpftrace mean you can hook into them to monitor ARC target size changes.
-
A Journey through Color Space with FFmpeg
This is the sentence that started it all. A user wanted to export a number of colorful Canva slides to a video file. I just recently joined Canva’s video group and thought this might be a great starter task. I mean, we’re talking about converting a bunch of images to a video and apparently, there’s a minor color space issue. At least that’s what I thought, without really grasping the complexity behind color spaces. Oh gosh, what had I done!
My first naive approach was, of course, to find out whether someone else on the internet had the same or a similar problem. Luckily, my amazing team gave me a good place to start. “Just try to convert an image to a video in the Rec. 709 color space using FFmpeg and you’ll see what the problem is.” We’ll talk about what Rec. 709 is later in the article.