Skip to content
How It Works

How It Works

gpsu runs fan control for each server separately. It keeps one IPMI session open to each iDRAC. At every reading it takes the three steps below.

At each reading

Read

gpsu reads these sensors over IPMI:

SensorUsed for
CPU temperaturesThe control temperature (see the next step)
Inlet temperatureA warm-air offset and a temperature limit
Exhaust temperatureA temperature limit
Fan speedsCharts and metrics
Power draw (DCMI)Charts, metrics, and learning

gpsu takes a reading every 5 seconds by default. That matches how often an iDRAC8 refreshes its CPU temperatures and fan speeds.

Decide

  1. gpsu combines the CPU temperatures into one. The server’s template chooses the hottest CPU or the average.
  2. It adds an offset when the inlet air is warm. The result is the control temperature.
  3. The curve maps the control temperature to a fan speed.

Hysteresis steadies the fans. With a hysteresis of 2 degrees, the curve follows the control temperature only after it moves more than 2 degrees.

Limit

gpsu applies the hard limits before it sends the speed:

  • The speed stays between the minimum and the maximum.
  • The speed rises at once.
  • The speed falls by at most a set percentage each minute.

gpsu also resends the current speed every minute. If an iDRAC resets and takes back the fans, gpsu takes them over again.

When gpsu hands off to the iDRAC

gpsu hands off the fans to the iDRAC in these cases:

CaseDetail
gpsu can’t read the sensorsAn iDRAC sometimes marks a sensor unavailable for a moment. gpsu retries once after half a second before it hands off.
No CPU temperature can be read for over 15 secondsgpsu has no control temperature to work from. See below for shorter gaps.
The inlet temperature can’t be readThis applies only to templates that use the inlet temperature.
gpsu stopsgpsu stops fan control first. Then it hands off every server’s fans. It closes the IPMI sessions last.

An iDRAC sometimes reports its CPU temperatures unavailable for a few seconds. Handing off then would run the fans loud for the whole handoff hold. So for up to 15 seconds without CPU readings, gpsu keeps the last fan speed when all of these hold:

  • The last control temperature was at least 10 °C below its limit.
  • The inlet and exhaust still read within their limits.
  • A template that needs the inlet still reads it.

At a temperature limit

A temperature past its limit doesn’t hand off at once. The iDRAC’s own algorithm can run the fans slower than gpsu’s maximum. gpsu therefore runs the fans at the configured maximum first.

Hard limits explains when gpsu then hands off to the iDRAC.

After a handoff or a run at the maximum speed, the curve takes over again once both of these are true:

  • The hold time has passed.
  • The control temperature has fallen a set margin below its limit.

Logins and sessions

RuleWhy
One session per serverAn iDRAC allows only a few open sessions.
A failed login closes whatever it openedA session left open takes one of those few slots.
gpsu waits after a refused loginAn iDRAC can block an address after a few failed logins. The wait starts at 1 minute and doubles up to 16 minutes.
gpsu reads the password again at every loginA rotated password needs no restart.
gpsu falls back to the last password the iDRAC acceptedThe fans stay under gpsu’s control after a session ends. gpsu must always be able to log in again to hand them off.
gpsu falls back to the last address where it logged inThe iDRAC’s name can stop resolving during a DNS outage. gpsu still needs to reach it to hand off the fans.

Note

gpsu never logs passwords, keys, or other login secrets. For each IPMI exchange it logs only the command, completion code, length, and timing.

What gpsu keeps

gpsu stores every reading and the speed it chose. The web UI charts them. Learning uses them to tune each curve.

Storage and Backups explains how long gpsu keeps them.