惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
博客园 - 聂微东
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 司徒正美
爱范儿
爱范儿
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
博客园 - 【当耐特】
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
人人都是产品经理
人人都是产品经理
V
V2EX

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
nvoc: linux overclocking gains multi GPU support, scripti...
Martin Stark · 2026-06-27 · via DEV Community

The latest version has focused on overclocking for running local LLMs (AI). Primarily better memory OC support, and improved support for targeting mixed GPU models in a single system. Read on.

Back in September I posted about NVOC - NVIDIA GPU Overclocking for Linux, an ergonomic cli tool for overclocking and undervolting RTX 50-series cards on Linux.

The tool is at v0.3.0 now. It picked up multi-GPU support, machine-readable output, a few more cards, and a clean way to apply settings at boot.

More than one GPU

The first release assumed you had one card and operated on device 0. There was no way to point it at a specific GPU in a multi-card system.

There is now a -d/--device flag. The simplest form takes an index, or a comma separated list of them:

# one card
sudo nvoc -d 1 -o 856

# two specific cards
sudo nvoc -d 0,1 -c 200,2820 -o 856 -m 2000 -p 105

# everything in the box
sudo nvoc -d all -o 200

Indices are convenient until you reboot and they shuffle. NVML does not promise they stay put, so for anything you want to survive a restart, select by something stable.

Selecting a card without counting

You can target a card by UUID, by a substring of its name, or by a regex against the name:

# stable across reboots
sudo nvoc -d GPU-1234... -o 856

# case-insensitive substring on the device name
sudo nvoc -d name:5090 -o 856
sudo nvoc -d "n:5060 ti" -o 100

# regex, for a mix of models
sudo nvoc -d "regex:RTX 50[89]0" -o 856
sudo nvoc -d "r:5060( Ti)?" -o 100

In a box with a 5090 and a couple of 5060 Ti, name:5090 is easier than working out which index the driver handed each card this boot.

nvoc list

To select a card you first need to know what is in the machine. nvoc list prints the index, name, and UUID of every GPU it can read:

$ nvoc list
0 - NVIDIA GeForce RTX 5090 - GPU-1234...

It skips devices it cannot read instead of falling over on them, so one flaky card does not take the whole listing down with it.

Output you can pipe

info and list both take --json now, which is what you need to drive nvoc from a script rather than by hand:

nvoc info --json
nvoc list --json

There is also nvoc list --uuid, which prints just the UUIDs, one per line. Put the two together and you can apply the same settings to every card by UUID without hardcoding anything:

for uuid in $(nvoc list --uuid); do
  sudo nvoc -d "$uuid" -o 856 -m 2000 -p 105
done

(-d all does the same in one shot. The loop earns its keep when you want different values per card.)

Not only RTX 50-series

The original gated on the card being an RTX 50-series part by matching its name. That was lazy, and it locked out the RTX PRO Blackwell cards, which are the same architecture wearing a different name.

nvoc now asks NVML for the architecture directly and accepts anything Blackwell, so the workstation cards work too. It is still Blackwell only, though.

A call for help

There is experimental support for Ada Lovelace (RTX 4060, 4070, 4080, 4090) and Ampere (RTX 3050, 3060, 3070, 3080, 3090) already, but it needs testing on hardware I do not have. If you own one of those cards, trying the relevant branch and reporting your results would be appreciated.

Draft PRs: Ada Lovelace (40-series) and Ampere (30-series).

Applying settings at boot

Overclock settings do not persist. Reboot and you are back at stock. A systemd oneshot service reapplies them automatically:

# /etc/systemd/system/gpu-oc.service
[Unit]
Description=GPU overclock settings
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/usr/bin/nvoc -c 200,2820 -o 856 -m 2000 -p 105

[Install]
WantedBy=multi-user.target

sudo systemctl daemon-reload
sudo systemctl enable --now gpu-oc.service

On a multi-GPU box, pin by UUID or model rather than index, for the reasons above. The README has the full walkthrough.

Installing

If you are on Arch, it is in the AUR now:

paru -S nvoc-cli

Building from source still works the same way with cargo build --release.

Smaller things

  • reset puts clocks back through NVML directly, instead of the slightly hacky idle-clock trick the first version leaned on, and it attempts every reset before reporting what failed rather than bailing on the first error.
  • --dry-run no longer needs root, since previewing a change should not require privileges to do nothing.
  • Device names stopped truncating, after a switch to the v2 NVML name buffer.
  • info shows the memory clock offset next to the graphics one now.
  • An unknown device error points you at nvoc list instead of leaving you to guess.
$ nvoc info
driver: 595.71.05
gpu 0: NVIDIA GeForce RTX 5090
gpu clock: 1080MHz
gpu offset: 856MHz
mem clock: 810MHz
mem offset: 2000MHz
temp: 52°C
power: 28W
power limit: 600W (104%)
power range: 400W-575W (600W hard limit)

Repo and issues: https://github.com/martinstark/nvoc/