跳到主内容
@wquguru
精选88Hacker News Best(web_list)技巧与观点

Nvidia RTX Spark笔记本Linux性能骤降:固件加密致GPU锁频

Nvidia RTX Spark encrypted firmware slows inference speed to 35% on Linux

原文
发到 X
推荐理由

自部署Spark笔记本的同学必看,详细拆解了Linux下性能腰斩的根因及WSL替代方案,实操避坑指南。

Can you run Linux on the Nvidia RTX Spark laptop?

你能在 Nvidia RTX Spark 笔记本上运行 Linux 吗?

Yes, but it comes with a serious catch. Linux installs and runs on RTX Spark laptops like the MSI Prestige N16 Flip AI Plus, including GPU acceleration through Nvidia’s open kernel driver. The problem is clock speed: once the laptop is plugged into wall power, the GPU gets locked to roughly 780 MHz on Linux instead of the 2 GHz-plus it hits on Windows. That turns a chip capable of around 65 tokens per second on a 120 billion parameter model into one struggling to break 14 tokens per second, for reasons tied to power management firmware that Linux currently can’t read.

可以,但有一个严重的限制。Linux 可以在 MSI Prestige N16 Flip AI Plus 等 RTX Spark 笔记本电脑上安装和运行,包括通过 Nvidia 的开源内核驱动实现 GPU 加速。问题在于时钟频率:一旦笔记本接通电源,GPU 在 Linux 下的频率会被锁定在约 780 MHz,而在 Windows 下则能达到 2 GHz 以上。这导致一款在 1200 亿参数模型上每秒能处理约 65 个 token 的芯片,在 Linux 下每秒只能勉强突破 14 个 token,原因在于与电源管理固件有关,而 Linux 目前无法读取该固件。

TL;DR

简而言之

  • Dual-booting Linux works on the MSI Prestige RTX Spark laptop, with a full desktop, GPU acceleration via Nvidia’s open driver, 4K output at 120Hz, and working audio, keyboard, and touchpad once configured correctly.
  • A hidden Windows-only component called the Nvidia Platform Controllers and Framework manages power delivery between CPU and GPU, and it has no Linux equivalent, which is the root cause of the slowdown.
  • GPU clock speed collapses to about 780 MHz on Linux when plugged in, compared to roughly 2.2 GHz on Windows, because the firmware’s power table is encrypted and only the Windows driver can decrypt it.
  • Benchmarks on GPT-OSS-120B show the gap clearly: Windows hit 65.4 tokens per second, WSL hit 65.1, the Nvidia DGX Spark hit 61, and native Linux on the same laptop managed only 13.9.
  • Memory allocation is a separate headache, since the laptop reserves 96GB of unified memory for the GPU by default and only Windows exposes a setting to change that split, which is required before Linux can see more than a sliver of RAM.
  • WSL (Windows Subsystem for Linux) is the practical middle ground today, since it rides on the Windows driver stack and keeps full GPU boost whether the laptop is plugged in or on battery, while still running Linux-first AI tools like vLLM.
  • A real fix depends on Nvidia, specifically on porting the platform controller’s power management logic into its Linux driver, which would effectively turn the laptop into a portable version of the DGX Spark.
  • 在 MSI Prestige RTX Spark 笔记本上双启动 Linux 是可行的,配置正确后可以实现完整的桌面体验、通过 Nvidia 开源驱动实现 GPU 加速、120Hz 的 4K 输出,以及正常工作的音频、键盘和触控板。
  • 一个名为 Nvidia Platform Controllers and Framework 的隐藏组件仅在 Windows 下存在,它负责管理 CPU 和 GPU 之间的电力供应,且没有对应的 Linux 版本,这是导致性能下降的根本原因。
  • 当接通电源时,Linux 下的 GPU 时钟频率会降至约 780 MHz,而 Windows 下约为 2.2 GHz,因为固件中的电源表是加密的,只有 Windows 驱动程序才能解密它。
  • GPT-OSS-120B 上的基准测试清楚地显示了差距:Windows 达到每秒 65.4 个 token,WSL 达到 65.1,Nvidia DGX Spark 达到 61,而在同一台笔记本上原生 Linux 仅能达到 13.9。
  • 内存分配是另一个头疼的问题,因为笔记本默认将 96GB 的统一内存保留给 GPU,且只有 Windows 提供了更改此分配的设置,而在 Linux 中必须完成此操作才能识别更多的 RAM。
  • WSL(Windows Subsystem for Linux)是目前实用的折中方案,因为它基于 Windows 驱动栈,无论笔记本是插电还是使用电池,都能保持完整的 GPU 加速,同时仍能运行以 Linux 优先的 AI 工具,如 vLLM。
  • 真正的修复取决于 Nvidia,具体而言是将平台控制器的电源管理逻辑移植到其 Linux 驱动程序中,这将使这台笔记本 effectively 成为 DGX Spark 的便携版本。

Self-host

自托管

Remy.

Remy。

On-prem or in your private cloud. Remy and every app you build stay inside your walls.

本地部署或私有云。Remy 和你构建的每个应用都保留在你的网络内部。

The AI platform for building secure, compliant enterprise appsTry Remy today

用于构建安全、合规的企业应用的 AI 平台立即试用 Remy

What makes the RTX Spark laptop different from a normal Windows PC?

RTX Spark 笔记本与普通 Windows PC 有何不同?

The RTX Spark platform, which ships in machines like the MSI Prestige, the Asus ProArt, and the Dell XPS, uses the same GPU design as Nvidia’s DGX Spark desktop unit. But where the DGX Spark ships with Nvidia’s own Linux build out of the box, every one of these laptop variants ships with Windows on ARM.

RTX Spark 平台搭载于 MSI Prestige、Asus ProArt 和 Dell XPS 等机型中,其 GPU 设计与 Nvidia DGX Spark 台式机单元相同。但 DGX Spark 出厂时预装的是 Nvidia 自有的 Linux 系统,而这些笔记本变体均预装 Windows on ARM。

That distinction matters because Windows on ARM with CUDA support is new. ARM-based Windows machines have existed for a few years, but pairing that architecture with Nvidia’s CUDA stack only became possible with this chip. The laptops also support unified memory configurations up to 128GB, shared between CPU and GPU, which is unusual for a laptop and central to why they’re being marketed at AI developers in the first place.

这一区别很重要,因为支持 CUDA 的 Windows on ARM 是全新特性。基于 ARM 的 Windows 设备已存在数年,但将该架构与 Nvidia 的 CUDA 堆栈结合,直到这款芯片才成为可能。这些笔记本还支持高达 128GB 的统一内存配置,由 CPU 和 GPU 共享,这在笔记本电脑中并不常见,也是它们最初面向 AI 开发者营销的核心原因。

Because so much of the AI tooling ecosystem, including vLLM and SGLang, is built Linux-first, developers who buy these machines naturally want to know whether they can ditch Windows, or at least dual-boot, without losing performance.

由于大量 AI 工具生态系统(包括 vLLM 和 SGLang)优先构建于 Linux 之上,购买这些设备的开发者自然想知道,他们是否可以放弃 Windows,或者至少实现双启动,而不会损失性能。

How do you actually install Linux on it?

你实际上如何在其上安装 Linux?

The process is not plug-and-play. A first attempt using Omarchy (a Linux distribution with Arch roots) failed because, while it already supported the chip on Asus and Dell hardware, the MSI Prestige behaved differently, producing a flickering, unstable display during boot.

该过程并非即插即用。首次尝试使用 Omarchy(一个源自 Arch 的 Linux 发行版)失败了,尽管它已经支持 Asus 和 Dell 硬件上的这款芯片,但 MSI Prestige 的表现不同,在启动期间产生了闪烁且不稳定的显示效果。

Switching to Debian worked more reliably, but still needed workarounds. The installer couldn’t connect to Wi-Fi, so installation required a USB Ethernet adapter. Out of the box, Debian also didn’t recognize the keyboard, touchpad, or GPU, because none of the laptop-specific hardware support was present in a vanilla kernel.

切换到 Debian 后工作更可靠,但仍需要变通方法。安装程序无法连接 Wi-Fi,因此安装需要 USB 以太网适配器。开箱即用状态下,Debian 也无法识别键盘、触控板或 GPU,因为标准内核中缺乏针对该笔记本特定硬件的支持。

Going back to Omarchy solved the driver problem, since its kernel already bundled Nvidia’s open-source driver. At that point Linux booted properly, but could only see 28GB of the laptop’s 128GB of unified memory. That’s because the laptop’s firmware reserves 96GB for GPU use, and that split is only adjustable from Windows. Dropping the Windows-side GPU memory reservation down to 4GB freed up 120GB for Linux to see once booted. After that adjustment, the laptop ran a full desktop at 4K and 120Hz, with working audio, touchpad, keyboard, and CUDA acceleration.

回到 Omarchy 解决了驱动问题,因为其内核已捆绑了 Nvidia 的开源驱动。此时 Linux 能够正常启动,但只能看到笔记本 128GB 统一内存中的 28GB。这是因为笔记本固件为 GPU 保留了 96GB,且这种分配比例只能通过 Windows 进行调整。将 Windows 侧的 GPU 内存保留量降至 4GB 后,Linux 启动时可访问 120GB。完成此调整后,笔记本以 4K 分辨率和 120Hz 刷新率运行完整桌面环境,音频、触控板、键盘和 CUDA 加速均正常工作。

Getting video output over HDMI during the install process was its own obstacle. Early in the process, the laptop would only display video on its own internal screen, not over HDMI, which required pointing an external camera at the laptop’s screen just to see what was happening during remote-controlled installation steps.

在安装过程中通过 HDMI 获取视频输出也是一大障碍。在早期阶段,笔记本仅能在其内置屏幕上显示视频,而无法通过 HDMI 输出,这导致在远程控制的安装步骤中,必须用外部摄像头对准笔记本屏幕才能看到发生了什么。

How does Linux performance compare to Windows and WSL?

Linux 的性能与 Windows 和 WSL 相比如何?

This is where the story turns. With GPT-OSS-120B running on the GPU, Windows produced 65.4 tokens per second. WSL, which runs a Linux environment inside Windows, hit 65.1 tokens per second, nearly identical. The DGX Spark desktop unit, running Nvidia’s native Linux build, came in at 61 tokens per second. Native Linux on the laptop, however, dropped to 13.9 tokens per second, roughly five times slower.

故事在这里发生了转折。在 GPU 上运行 GPT-OSS-120B 时,Windows 的生成速度为每秒 65.4 个 token。WSL(在 Windows 内部运行 Linux 环境)的速度为每秒 65.1 个 token,几乎完全相同。运行 Nvidia 原生 Linux 版本的 DGX Spark 台式机单元的速度为每秒 61 个 token。然而,笔记本电脑上的原生 Linux 速度降至每秒 13.9 个 token,大约慢了五倍。

Every team builds with AI.

每个团队都在利用 AI 进行构建。

Nothing gets lost.

没有任何信息会丢失。

The AI platform for building secure, compliant enterprise appsTry Remy today

用于构建安全、合规的企业应用的 AI 平台今天试用 Remy

The gap showed up again with vLLM running eight concurrent clients: WSL reached 127 tokens per second while native Linux reached 39.5. A longer benchmark run told the same story in time rather than throughput. Windows finished in about 8 minutes while holding the GPU near 2.2 GHz. Linux took 37 minutes, with the GPU parked around 790 MHz the entire time. Temperatures stayed low, between 40 and 47°C, so this isn’t a thermal throttling issue. The GPU simply isn’t being allowed to run at full speed.

在使用 vLLM 运行八个并发客户端时,差距再次显现:WSL 达到了每秒 127 个 token,而原生 Linux 仅为 39.5。更长时间的基准测试从时间角度而非吞吐量角度讲述了同样的故事。Windows 在将 GPU 频率维持在约 2.2 GHz 的情况下,耗时约 8 分钟完成。Linux 则耗时 37 分钟,GPU 频率在整个过程中一直停留在约 790 MHz。温度保持在 40 到 47°C 之间,因此这不是散热节流问题。GPU simply 没有被允许以全速运行。

Oddly, the direction of the problem flips depending on power source. Unplugged, Linux hit around 61 to 67 tokens per second on LM Studio, comparable to Windows. Plugged in, that same test dropped to about 15 tokens per second. Clock speed told the same story: around 1,800 MHz unplugged under load, and down to roughly 780 MHz when connected to wall power.

奇怪的是,问题的方向取决于电源来源。未插电时,Linux 在 LM Studio 上的速度约为每秒 61 到 67 个 token,与 Windows 相当。插电后,同一测试的速度降至约每秒 15 个 token。时钟频率也反映了同样的情况:负载下未插电时约为 1,800 MHz,连接墙电时降至约 780 MHz。

Why does plugging in the laptop slow Linux down?

为什么给笔记本电脑插电会使 Linux 变慢?

The cause traces back to a component visible in Windows Device Manager called the Nvidia Platform Controllers and Framework. This piece of firmware and driver logic manages the shared power budget between CPU and GPU, since a laptop (unlike the desktop DGX Spark) has to balance power delivery between both chips rather than feeding the GPU on its own line.

原因可以追溯到 Windows 设备管理器中可见的一个组件,称为 Nvidia Platform Controllers and Framework(Nvidia 平台控制器和框架)。这段固件和驱动程序逻辑管理 CPU 和 GPU 之间的共享电源预算,因为笔记本电脑(与台式机 DGX Spark 不同)必须在两个芯片之间平衡电力输送,而不是单独为 GPU 供电。

Disabling that controller in Windows reproduced the slowdown directly: tokens per second dropped from around 83 to about 31, and clock speed fell from roughly 2 GHz down to the same 786 MHz seen on Linux when plugged in. Re-enabling the controller restored normal speed immediately. That confirms the controller, not the kernel, the distribution, or the Nvidia GPU driver itself, is what’s holding Linux back.

在 Windows 中禁用该控制器直接重现了减速现象:每秒 token 数从约 83 降至约 31,时钟频率从约 2 GHz 降至与插电时 Linux 相同的 786 MHz。重新启用该控制器立即恢复了正常速度。这证实了是控制器,而不是内核、发行版或 Nvidia GPU 驱动程序本身,在拖 Linux 的后腿。

The deeper issue is that the firmware hands this controller a table of power settings that is encrypted. Windows has the key to decrypt it. Linux currently does not, and no software fix attempted during testing could enable it, including one attempt that triggered a kernel panic. Extracting the decryption key from the Windows driver was floated as a theoretical workaround, but that would amount to a fragile, single-machine hack rather than something that works broadly. A real fix needs to come from Nvidia shipping equivalent power management logic in its Linux driver.

更深层的问题在于,固件向该控制器提供的是一个加密的电源设置表。Windows 拥有解密它的密钥。Linux 目前不具备这一能力,且在测试期间尝试的任何软件修复方案均未能使其生效,其中一次尝试甚至引发了内核恐慌(kernel panic)。有人提出从 Windows 驱动程序中提取解密密钥作为一种理论上的变通方案,但这将等同于一种脆弱且仅适用于单机的黑客手段,而非能够广泛适用的解决方案。真正的修复需要来自 Nvidia,即在其 Linux 驱动程序中提供等效的电源管理逻辑。

Is WSL a good substitute for native Linux right now?

WSL 目前是原生 Linux 的良好替代品吗?

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件