HomePatent

Configurable CPU health monitoring

US 8,352,791 B2, filed as “Configurable test suite.” The attorneys' abstract is accurate and unreadable; this is the version I'd tell a colleague.

General Motors · Read the patent

Getting a patent is a long process, which is the main reason I stopped after the first one: I'd rather spend the time on the engineering than on the filings. So I have one to share.

Over the three years it took, the attorneys worked to make the invention as general as possible so it would cover as much ground as it could. One side effect is that the legal description bears little resemblance to the technical one. Even the name changed, from Configurable CPU Health Monitoring Software to Configurable test suite. Read the abstract if you like, but the description below is more useful.

Background

I was on the Infrastructure Software team at General Motors. A consistent goal was modular, reusable software, which is a common objective across industries for good reasons: easier maintenance, faster development through reuse, better testability, cleaner separation of concerns, and less duplicated effort when the same core ships in many products.

We'd achieved that in the past by splitting code specific to a particular deployment into a category we called calibrations, or cals, and keeping the part common across applications as core. The cals are a huge collection of constants, thousands or tens of thousands of them, specific to one deployment.

This invention extends the idea past simple constants to complex structures of software, so that a core infrastructure component can stay reusable while application-specific behavior stays with the deployment teams.

The problem

Different deployments of the same core infrastructure need different CPU state-of-health tests. Two ECUs might share most of a test list and each need a few of their own. The two obvious options are both bad:

A third option, define the mechanism in core but implement the test suite in the deployment, keeps every deployment independent while preserving a reusable core component. That's what the design does.

The design

Core software provides the Health Monitor; the deployment provides its configuration. A configurable table of tests is the input to Health Monitor: each entry carries a function pointer to a test, its period, and a delay offset. An array of test results is the output, one instance per input entry, updated at run-time.

Replacing hard-coded tests with a configured table means no deployment is limited by the scope of tests in a previous one, and none carries tests it doesn't use. Because the table holds function pointers, a deployment team can plug in tests that didn't exist when core was designed, without touching core software at all.

The delay offset is a small detail that matters for CPU load. If every test runs every 1,000 ms with an offset of zero, they all try to execute at once and spike the CPU. Staggering offsets by a few milliseconds spreads the load across the period.

Figures from the patent

Walkthrough slides