Burn-in testing of new hardware

Video 091 of 140 in Virtualization Foundations, in the unit “Hardware failure and health”. 3:28, with English and Hindi audio.

New hardware can fail in its early days, long before it wears out. A part can leave the factory with a weak spot that shows only under load. Burn-in testing runs a new server hard before it carries real work, so faults appear on an empty machine rather than in front of customers. This article explains what a burn-in stresses, how one run proceeds, and which Linux commands drive each test.

What you will learn

Why new hardware is tested hard before use

Harbor Point Logistics, a fictional regional firm, has just received four new servers for a new cluster. They look perfect, and the paperwork lists no faults. But a part can leave the factory with a weak spot that shows only under heavy load.

A failure after go-live brings downtime and a rushed swap. Finding the fault on an empty server is far cheaper.

What a burn-in stresses

Read the temperature and the logs as the run goes, not only at its end.

One burn-in run, step by step

The Linux commands for each burn-in test

On Linux, stress-ng loads the processors and memory, smartctl runs disk self-tests, and ipmitool reads the event log. Install all three first.

Install the burn-in tools
sudo apt install stress-ng smartmontools ipmitool

Next, load every core and most of the memory for four hours. The test runs for the whole period.

Load the processors and memory for four hours
sudo stress-ng --cpu 0 --vm 2 --vm-bytes 80% --timeout 4h --metrics

The long self-test runs inside the disk itself. The result is kept in the disk's self-test log, which you read when the test ends.

Start a long self-test on a disk
sudo smartctl -t long /dev/sda
Read the self-test log once the test has finished
sudo smartctl -l selftest /dev/sda

When the load ends, read the event log again. A new entry is a reason to stop and investigate.

Check the event log for anything new after the run
sudo ipmitool sel list

Faults that appear during the run, and what goes wrong

Note: Do not run a burn-in on a server that already carries work. The load lasts four hours, and it will slow or stop that work.

Run a short burn-in check on a new server

You need a new server that carries no work, and sudo rights. Use the name of your own disk in place of /dev/sda.

  1. Install the three tools: stress-ng for load, smartmontools for disk tests, and ipmitool for the event log.

    sudo apt install stress-ng smartmontools ipmitool

    What you should see: The tools are ready. stress-ng loads the processors and memory, and smartctl starts a long self-test on each disk.

  2. Load every core and most of the memory for four hours, and print the metrics.

    sudo stress-ng --cpu 0 --vm 2 --vm-bytes 80% --timeout 4h --metrics

    What you should see: The run loads every core and most of the memory for four hours.

  3. Start a long self-test on the disk you are testing.

    sudo smartctl -t long /dev/sda

    What you should see: A long self-test starts and runs inside the disk itself.

  4. When the test has finished, read the self-test log of the same disk.

    sudo smartctl -l selftest /dev/sda

    What you should see: The self-test log shows the result. Read it when the test ends.

  5. Check the event log for anything new since the run began.

    sudo ipmitool sel list

    What you should see: A new entry is a reason to stop and investigate before the server takes live work.

Terms

Burn-in
A hard test run on new hardware, before it carries real work, to find faults that appear under load.
SMART
A health monitoring system built into most disks. It reports the disk's condition and can run self-tests.
Event log
The record of hardware events kept by a server, which shows new faults and warnings.

Check yourself

Why run a burn-in before a server takes live work?

Faults in a weak part show up under heavy load. Finding them on an empty server is far cheaper than finding them on a customer's work.

What happens to a memory stick that a burn-in flags with a bad bit?

The part goes back to the vendor, so the customers never see it.

What does a new entry in the event log after a run mean?

It is a reason to stop and investigate before the server takes live work.

Previous: Replacing a part safely: hot-swap or downtime. Next: Turning on VT-x or AMD-V.