Status and Experience on Thermal Performance

Here’s my take on cooling of Gigabyte AI Top Atom:

Version 1: Basic laptop cooler stand , with a table top fan in the front. Almost regular 24hrs running qwen2.5:32b-instruct , temperatures revolve around 90-92 Degree Celsius.

Running ComfyUI WAN2.2 Remix 12V Workflow, around 97-99 Degree Celsius.
System would often crash at heavy ComfyUI workloads.

Version 2: DGX COOLER ULTRA MAX PRO ++++ (Overkill)

Front : 3 x 40mm FAN

Bottom : 4 x 120mm FAN

Rear: 2 x 80mm FAN

With regular 24hrs running qwen2.5:32b-instruct , temperatures revolve around 85-88 Degree Celsius. Also, I saw no crashes at all with continues ComfyUI workloads.

Running ComfyUI WAN2.2 Remix 12V Workflow, around 92-96 Degree Celsius. System would not crash, I ran 10 I2V Workflows in queue.

I turned off my DGX COOLER ULTRA MAX PRO ++++ mid ComfyUI WAN2.2 Workflow, and the system crashed in just 1 min.

The setup seemed to be working perfectly fine, but I think it’s overkill.

Version 3:

Front: 140mm FAN

Bottom: 120mm FAN
Top: 120mm FAN

Rear: 140mm FAN (With an exhaust cover)

Temperatures revolve around 75-80 Degree Celsius running qwen2.5:32b-instruct.

Running ComfyUI WAN2.2 Remix 12V Workflow, max temperature it hits is 97 Degree Celsius. No crashes at all.

The fans are running at max RPM, no noise at all, all fans are Noctua Industrial.

I 3D built & printed Version 2 & 3 in house with a PLA-CF Filament, would have preferred PETG-CF , but did not have enough of it in stock with me.

VERDICT: Version 2 seemed better at first, it gave server level cooling, but the smaller 40mm Fans made way too much noise, almost server level noise. I added a PWM Fan controller, so found a sweeter spot, where the 40mm fans were making slight less sound. Maybe Noctua 40mm fans would make less noise, not sure. Have ordered Noctua NF-A4x20 PWM , let’s see if they make less noise.

For my purpose and the rack space I have, Version 3 is much more suited to me, it fits perfect in my custom rack shelves space.

Also, what I learned, its best to direct the airflow for the system to work at the best temperatures. Directing the rear hot air with proper exhaust duct airflow seemed to be cooling the system much better.

I have added an option to add another fan mount option on the top as well on Version 3 , so it can cool the box from the top as well.

I am located in India. Outside temperature currently is around 34-36 Degree Celsius. I made all the tests without any Air Conditioning in the room.

Would be happy to share the 3D stl files if anyone needs them.
Printed all these parts in my Bambu Lab P2S.

I think full load depends on how bigger of a LLM model you have loaded, your GPU can still be utilizing 98% of VRAM , but with a smaller model loaded, and in that case the temps won’t reach the peaks. Load a model with around 50-70 GB , and then run the model with a high KV Cashe prompt, and see the temps. Maybe with heavy pre compute prompt.

Not-a-Star-Wars-solution: raise the box + buy a desk fan

If you are here looking for a not-a-Star Wars solution:

Put your DGx upper than the surface. I used a metal plate with holes to raise it off the ground, hoping for some thermal exchange, and in a> 2-hour run I was at 77 degrees, and for longer runs I reached 75 for GPU and CPU. So this free metal gives you: minus 6 degrees on a <2-hour run, and minus 4 degrees on a >2-hour run

If the room temperature is good and satble, it can be enough. Make sure the back of your device has enough space to avoid sucking the hot air back into the device.

If you wanted to do another step (and in case your PI is paying): go for a fan. But not every fan.

Understanding Ventilation and Selecting a Fan

You should consider to put a fan with low turbulation and in right direction (blows wind to front of device, so it would blowing front to back) and in right distance (there are two important things to consider for yourself, help the wind to get into the device, and help the hot air to go out). The device ventilation is sucking from front and below, and then it blows hot air from behind. The nvidiga dgx and asus dgx are a bit different, while I couldn’t find out how.

I think the best thing you can go with (low sound, good ventilation, and low budget) is Noctua NF-F12 5V (30 bucks + extra for adapter + good availbility) which is under pc fan category. If you are going for the easiest buy, go with Noctua NV-FS1 (120 bucks) which is a modified version under desktop fan category. I will update the temps after getting it. The good thing about Noctua, is that they are experts for pc fans, which is focused on ventilation of pc (rather than cooling rooms). They considered the problems of turbulation, I assume:

P.S. I am still thinking about which direction I should put the fan. If I didn’t have a 2-year-old son, I would have time to set it on different axes and distances and benchmark it for fun, but I don’t. I would put it in front (and a little bit lower) so it blows wind from front to back, without blocking the device to suck air from the bottom. Will hopefully update you guys on the temp.

Just a follow-up:

Device: Dgx on top of metal mesh (dgx 10 cm up and flat) + Noctua NF-F12 Fan (20 cm distance, blowing from top to back and slightly from donw to up (~10 percent incline)

Running Qwen-3.5-9b via vLLM Docker

GPU util: 95%

Power watag: 35-40

In 10 min run:

  • without fan: CPU 81, GPU 69
  • with fan: CPU 73, GPU 66

In a 2-hour run:

  • loading…
#!/usr/bin/env node
'use strict';

/*
 * Standalone Linux cpufreq thermal guard (Node.js 18+, no npm packages).
 * Check hardware: node standalone_cpu_thermal_fast_first.js --check
 * Run as root:   sudo node standalone_cpu_thermal_fast_first.js --run
 *
 * Change TARGET_C / safety limits for your own CPU. The values below were
 * measured on one ARM workstation; they are NOT universal safe temperatures.
 * Stop other cpufreq controllers before --run. This script writes only
 * scaling_min_freq and scaling_max_freq. Its last cap remains after exit.
 * Requires exactly two cpufreq classes with distinct cpuinfo_max_freq values;
 * the class with the higher maximum is treated as fast. Ambiguous hardware
 * fails closed. Review `--check` output before allowing writes.
 */

const fs = require('node:fs');
const path = require('node:path');

const TARGET_C = 93;
const SAMPLE_MS = 500;
const FAST_HANDOFF = 0.75;
const SYSFS = process.env.CPU_GUARD_SYSFS_ROOT || '/sys';
const THERMAL = path.join(SYSFS, 'class/thermal');
const CPUFREQ = path.join(SYSFS, 'devices/system/cpu/cpufreq');
const mode = process.argv[2];

function clamp(x, lo, hi) { return Math.max(lo, Math.min(hi, x)); }
function readInt(file) {
  const raw = fs.readFileSync(file, 'utf8').trim();
  if (!/^\d+$/.test(raw)) throw new Error(`invalid integer: ${file}`);
  const n = Number(raw);
  if (!Number.isSafeInteger(n)) throw new Error(`integer overflow: ${file}`);
  return n;
}

function discoverPolicies() {
  const names = fs.readdirSync(CPUFREQ).filter(x => /^policy\d+$/.test(x));
  if (!names.length) throw new Error('no cpufreq policies');
  const policies = names.map(name => {
    const dir = path.join(CPUFREQ, name);
    const min = readInt(path.join(dir, 'cpuinfo_min_freq'));
    const max = readInt(path.join(dir, 'cpuinfo_max_freq'));
    if (!(min > 0 && max > min)) throw new Error(`invalid range: ${name}`);
    for (const field of ['scaling_min_freq', 'scaling_max_freq'])
      readInt(path.join(dir, field));
    return {name, dir, min, max};
  });
  const classes = [...new Set(policies.map(p => p.max))].sort((a, b) => a - b);
  if (classes.length !== 2) throw new Error(`expected two frequency classes, found ${classes.length}`);
  for (const p of policies) p.className = p.max === classes[1] ? 'fast' : 'slow';
  return policies;
}

function hottestTemperature() {
  const names = fs.readdirSync(THERMAL).filter(x => /^thermal_zone\d+$/.test(x));
  if (!names.length) throw new Error('no thermal zones');
  let hottest = null;
  for (const name of names) {
    const c = readInt(path.join(THERMAL, name, 'temp')) / 1000;
    if (!(c > -10 && c < 150)) throw new Error(`invalid temperature: ${name}`);
    if (!hottest || c > hottest.c) hottest = {name, c};
  }
  return hottest;
}

// Feed-forward safety ceilings cannot be overridden by the PID.
function safetyCeiling(c) {
  if (c >= 97) return 0;    // hardware minimum on both classes
  if (c >= 95) return 0.25;
  if (c >= 93) return 0.50;
  if (c >= 92) return 0.65;
  if (c >= 90) return 0.80;
  if (c >= 88) return 0.95;
  return 1;
}

class PID {
  constructor() { this.integral = 1; this.previousC = null; this.previousMs = null; this.cap = 1; }
  next(c, nowMs) {
    const dt = this.previousMs === null ? SAMPLE_MS / 1000 :
      clamp((nowMs - this.previousMs) / 1000, 0.1, 2);
    const error = TARGET_C - c;
    const derivative = this.previousC === null ? 0 : (c - this.previousC) / dt;
    const provisional = this.integral + 0.075 * error - 0.06 * derivative;
    if ((provisional > 0 && provisional < 1) ||
        (provisional >= 1 && error < 0) || (provisional <= 0 && error > 0)) {
      this.integral = clamp(this.integral + 0.012 * error * dt, 0, 1);
    }
    const wanted = Math.min(
      clamp(this.integral + 0.075 * error - 0.06 * derivative, 0, 1),
      safetyCeiling(c));
    // Restrict warming recovery, never delay a protective reduction.
    this.cap = Math.min(wanted, this.cap + 0.015);
    this.previousC = c;
    this.previousMs = nowMs;
    return this.cap;
  }
}

function classCaps(fast, c) {
  let slow = clamp(fast / FAST_HANDOFF, 0, 1);
  // Fast-first must not weaken emergency protection of the slow cores.
  if (c >= 95) slow = Math.min(slow, safetyCeiling(c));
  return {fast, slow};
}

function setCaps(policies, caps) {
  for (const p of policies) {
    const minFile = path.join(p.dir, 'scaling_min_freq');
    const maxFile = path.join(p.dir, 'scaling_max_freq');
    const desired = Math.round(p.min + (p.max - p.min) * caps[p.className]);
    // Lower minimum first; otherwise lowering maximum can return EINVAL.
    if (readInt(minFile) !== p.min) fs.writeFileSync(minFile, String(p.min));
    if (readInt(maxFile) !== desired) fs.writeFileSync(maxFile, String(desired));
  }
}

function failSafe(policies, error) {
  console.error(`thermal guard failure: ${error.message}`);
  try { setCaps(policies, {fast: 0, slow: 0}); }
  catch (writeError) { console.error(`hardware-minimum write failed: ${writeError.message}`); }
  process.exitCode = 1;
  clearInterval(timer);
}

if (!['--check', '--run'].includes(mode) || process.argv.length !== 3) {
  console.error('usage: node standalone_cpu_thermal_fast_first.js --check|--run');
  process.exit(2);
}

const policies = discoverPolicies();
const initial = hottestTemperature();
console.log(JSON.stringify({mode, targetC: TARGET_C, hottest: initial,
  policies: policies.map(p => ({name: p.name, class: p.className, minKHz: p.min, maxKHz: p.max}))}));
if (mode === '--check') process.exit(0);
if (process.getuid() !== 0) throw new Error('--run requires root for cpufreq writes');

const pid = new PID();
let lastTick = Date.now();
let lastLog = 0;
function tick() {
  const now = Date.now();
  try {
    if (now - lastTick > 2000) throw new Error('control-loop delay exceeded 2 seconds');
    lastTick = now;
    const hottest = hottestTemperature();
    const fast = pid.next(hottest.c, now);
    const caps = classCaps(fast, hottest.c);
    setCaps(policies, caps);
    if (now - lastLog >= 10000) {
      console.log(JSON.stringify({at: new Date(now).toISOString(), hottest,
        fastCapPct: Math.round(caps.fast * 100), slowCapPct: Math.round(caps.slow * 100)}));
      lastLog = now;
    }
  } catch (error) { failSafe(policies, error); }
}
const timer = setInterval(tick, SAMPLE_MS);
tick();

Thats my pass on CPU Temperature Control…
controlled via a Pid which has a max Temp of 93°C which it trys to reach via CPU-Speed reduction

My 2 cents:

Lower temps, (almost) the same performance. No problems :)