# Under My Thumb: Insight Behind the Rules

DevFeed: [Under My Thumb: Insight Behind the Rules](<https://devfeed.tech/articles/under-my-thumb-insight-behind-the-rules-12530.md>)

Original publisher: [Read original article](<http://brooker.co.za/blog/2022/12/15/thumb.html>)

Author: Marc Brooker

Published: 2022-12-15T00:00:00Z

Content type: opinion

Language: en

Sources: [Marc Brooker's](<https://devfeed.tech/sources/marc-brooker-s-blog.md>)

Topics: [Electrical engineering and computer science (EECS)](<https://devfeed.tech/topics/electrical-engineering-and-computer-science-eecs.md>), [database-optimization](<https://devfeed.tech/topics/database-optimization.md>), [Finance](<https://devfeed.tech/topics/finance.md>)

Tags: [context](<https://devfeed.tech/tags/context.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [data](<https://devfeed.tech/tags/data.md>), [design](<https://devfeed.tech/tags/design.md>), [developers](<https://devfeed.tech/tags/developers.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [memory](<https://devfeed.tech/tags/memory.md>), [minutes](<https://devfeed.tech/tags/minutes.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [principles](<https://devfeed.tech/tags/principles.md>), [radar](<https://devfeed.tech/tags/radar.md>), [random](<https://devfeed.tech/tags/random.md>), [rapid](<https://devfeed.tech/tags/rapid.md>), [reading](<https://devfeed.tech/tags/reading.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [rules](<https://devfeed.tech/tags/rules.md>), [saving](<https://devfeed.tech/tags/saving.md>)

## AI overview

The excerpt argues that rules of thumb are useful only when their context is retained, and that many become more durable when turned into quantitative estimates. Gray and Putzolu's five-minute rule illustrates the method: compare the cost of keeping data in memory with the cost of storage accesses it saves. The excerpt's historical prices yield a 400-second break-even interval for a 1 KB record, while emphasizing that current costs must replace those old assumptions. It applies the same approach to development time: using the cited US median software developer wage and Graviton core price, an hour of work is worthwhile if it saves roughly two core-months. Both estimates depend on their inputs. By contrast, the excerpt says broad claims such as Jevons's Paradox and Zeynep's Law offer limited guidance because they lack tools for judging when they apply. It concludes that software engineering should make greater use of quantitative and economic reasoning.

## Source excerpt

Under My Thumb: Insight Behind the Rules My left thumb is exactly 25.4mm wide. Starting off in a new field, you hear a lot of rules of thumb. Rules for estimating things, thinking about things, and (ideally) simplifying tough decisions. When I started in Radar, I heard: the transmitter makes up three quarters of the cost of a radar system and when I started building computer systems, I heard a lot of things like: hardware is free, developers are expensive and, the ubiquitous: premature optimization is the root of all evil. None of these things are true. Some are less true than others2. Mostly, they're so context dependent that stripping them of their context renders them meaningless. On the other hand, heuristics like this can be exceptionally valuable, saving us time reasoning things through from first principles, and allowing rapid exploration of a design space. Can we make these truisms more true, and more useful, by turning to them into frameworks for quantitative thinking? The 5 Minute Rule Jim Gray's famous 5 minute rule, from 1987: Data referenced every five minutes should be memory resident. Today, thirty five years later, Gray's five minute rule is just as misleading as the ones above1. What we're left with isn't a rule, but a powerful and durable insight. Gray and Putzolu's observation was that we can calculate the cost of something (storing a page of data in memory) and the cost of replacing that thing (reading the data from storage), and quantitatively estimate how long we should keep the thing. They did it like this: The derivation of the five minute rule goes as follows: A disc, and half a controller comfortably deliver 15 random accesses per second and are priced at about 15K$ So the price per disc access per second is about 1K$/a/s. The extra CPU and channel cost for supporting a disc is 1K$/a/s. So one disc access per second costs about 2K$/a/s. A megabyte of main memory costs about 5K$, so a kilobyte costs 5$. If making a 1Kb data record main-memor