Portland Black Lives Matter Mural

I tried to photograph a “Black Lives Matter” mural by stitching together 617 photos. . . . → Read More: Portland Black Lives Matter Mural

Elections 2019: Who is really getting a tax cut?

It’s Canadian federal election season again, and that means party platforms and arguments about tax cuts, deficits, and how much each campaign proposal will cost. As usual, the Office of the Parliamentary Budget Officer (PBO) provides independent estimates of the cost of campaign proposals.

But the cost to government is only one half of the . . . → Read More: Elections 2019: Who is really getting a tax cut?

Discovering Hard Disk Physical Geometry through Microbenchmarking

Modern hard drives store an incredible amount of data in a small space), with billions of sectors (with thousands of defects), packed into hundreds of thousands of tracks spaced tens of nanometers apart, arranged onto a stack of platters spinning around at a high speed. Which drive characteristics can be discovered using microbenchmarks?

This article describes several microbenchmarks that try to extract the physical geometry of hard disk drives, and a few other related measurements, including rotation period, the physical location of each sector, track boundaries, skew, seek time, and locations of defective sectors. I use these microbenchmarks to characterize a variety of hard drives from 45 MB (1989) to 5 TB (2015).

. . . → Read More: Discovering Hard Disk Physical Geometry through Microbenchmarking

A Cardboard Haswell Box

This post is about a cardboard computer I built in 2015. It served as half of my simulation cluster during the latter half of my Ph.D. work. This is a continuation of a series of cardboard computer cases I’ve built (2014/2012, 2010). Compared to the previous boxes, this one packs even more systems (8 quad-core Haswells) into a box, while still sharing one power supply. . . . → Read More: A Cardboard Haswell Box

The Microarchitecture Behind Meltdown

Since the recent (Jan. 2018) disclosure of the Meltdown vulnerability, there has been a lot of interest, speculation, and hysteria, but not a particularly good understanding of the processor microarchitecture feature responsible for it. Understanding of the root cause of the vulnerability allows one to understand why only some microarchitectures are affected, and allows reliably testing for the existence (or, even harder, the non-existence) of the vulnerability on various processors, instead of relying solely on vendor self-reporting (or worse, speculation…).

This article first defines the microarchitectural mechanism that allows Meltdown to work, then develops a microbenchmark to specifically test for this behaviour on multiple microarchitectures.

. . . → Read More: The Microarchitecture Behind Meltdown

PET is hygroscopic: Water diffuses out of a Sprite bottle

Polyethylene terephthalate (PET) is a plastic commonly used to make beverage bottles. PET is hygroscopic . Therefore, if you have a bottle of Sprite, you would expect the water to be absorbed by the plastic, diffuse through the bottle, then evaporate outside the bottle.

And that’s exactly what happens.

. . . → Read More: PET is hygroscopic: Water diffuses out of a Sprite bottle

Microbenchmarking Return Address Branch Prediction

Modern processors use branch predictors to predict a program’s control flow in order to execute further ahead in the instruction stream. Function return instructions use a specialized branch predictor called a Return Address Stack (RAS), Return Stack Buffer (RSB), return stack, or other various names. This article presents a series of increasingly complex microbenchmarks to measure the behaviour of the RAS found in several Intel and AMD processor microarchitectures. . . . → Read More: Microbenchmarking Return Address Branch Prediction

AMD Polaris (RX 550) on Mageia Linux 6

I recently bought an AMD RX 550 graphics card to drive a 4K display for use with Mageia Linux 6. Not surprisingly, it did not work out of the box. The Mageia 6 kernel (4.9.43 as of Aug 2017) needs to be updated to avoid the amdgpu module from crashing, and needs further kernel updates . . . → Read More: AMD Polaris (RX 550) on Mageia Linux 6

Cyclone/Stratix V Carry-Lookahead…bug?

New in the Cyclone V and Stratix V families, there seems to be carry lookahead at the LAB level (10 ALMs or 20 bits of addition), which can be seen by looking at the timing path through a big adder. But if there are two unrelated adders in a circuit, the carry lookahead is disabled if the length difference is near a multiple of 10, causing 70% higher delay for long adders. Bug? . . . → Read More: Cyclone/Stratix V Carry-Lookahead…bug?

BIND patch for Mandriva 2010.2

Yay, another security vulnerability in old software, this time in many versions of BIND. Here’s an RPM for Mandriva 2010.2 that upgrades BIND to 9.9.7 P2 (from 9.7.6). . . . → Read More: BIND patch for Mandriva 2010.2