Skip to content

Headless Steam Memory

Drackrath edited this page Nov 30, 2026 · 4 revisions

Headless Steam memory

How much RAM a Steam client uses as a background service, with and without headless mode (aurelia config steam-headless, see the setup tutorial). Measured for both clients Aurelia can start: the host Linux Steam and the in-Wine Steam of the Steam-Wine.

Results

Idle Steam, signed in, started with -silent (no window), no game running.

Client Mode Total RAM Processes of which CEF (steamwebhelper)
In-Wine Steam Valve UI 3,275 MB 19 2,871 MB (7 processes)
In-Wine Steam Headless 857 MB 14 458 MB (2 processes)
Host Steam Valve UI 1,265 MB 16 1,023 MB (12 processes)
Host Steam Headless 515 MB 6 284 MB (4 processes)
Client Saved by headless Reduction
In-Wine Steam 2,418 MB 74 %
Host Steam 750 MB 59 %

The in-Wine totals include about 230 MB of Wine's own services (wineserver, explorer, services, winedevice, …). Those run in any case and are shared with the game, so the Steam client itself is about 630 MB headless.

The first minute

Each client was started from cold, and RAM was sampled once a second from the start command. The marker shows when the command returned with Steam signed in.

Steam RAM over the first minute: Valve UI vs headless

Run Signed in after Peak After 60 s
In-Wine Steam, Valve UI ≈12 s 3,215 MB 3,195 MB
In-Wine Steam, headless 8 s 915 MB 862 MB
Host Steam, Valve UI 10 s 2,126 MB 1,341 MB
Host Steam, headless 15 s 1,155 MB 479 MB
  • In-Wine Steam: headless also signs in faster. Valve's UI starts seven CEF processes, and their memory grows until about 16 s. The headless helper is fully loaded by 7 s.
  • Host Steam: both modes have short spikes in the first 35 s, while Steam's container runtime (pressure-vessel) starts. Each container start generates locales with localedef, at 80–130 MB per run. Headless also has one bootstrap spike, about 1.1 GB in the first 8 s, before any CEF process exists. Both modes settle by about 35 s.
  • Host Steam sign-in: headless signs in 5 s later than Valve's UI. Before -noverifyfiles was added it took 26 s. Steam saw the substituted files as damaged and unpacked a full update on every start, then failed to apply it.

In-Wine Steam with Valve's UI In-Wine Steam, headless Host Steam with Valve's UI Host Steam, headless

With Steam Linux Runtime 3

The same four runs, with aurelia config steamrt3 both true:

  • Host Steam: Valve's 64-bit steamrt3c client (steamrt64/steam) replaces the 32-bit ubuntu12_32 client.
  • In-Wine Steam: Wine runs inside the SteamLinuxRuntime_sniper container.
Client Mode Total RAM Processes CEF vs. without steamrt3
In-Wine Steam Valve UI 2,878 MB 21 2,478 MB −397 MB
In-Wine Steam Headless 844 MB 16 447 MB −13 MB
Host Steam Valve UI 1,207 MB 17 968 MB −58 MB
Host Steam Headless 482 MB 8 262 MB −33 MB
Run Signed in after Peak (first 60 s) After 60 s
In-Wine Steam, Valve UI 18 s 2,997 MB 2,982 MB
In-Wine Steam, headless 12 s 903 MB 835 MB
Host Steam, Valve UI 7 s 1,903 MB 1,438 MB
Host Steam, headless 8 s 1,272 MB 481 MB
  • Headless still saves 71 % in Wine and 60 % on the host.
  • In-Wine Steam: the container adds two processes (srt-bwrap, pv-adverb) and about 4 s to sign-in.
  • Host Steam: the steamrt3c client signs in about 7 s faster headless (8 s vs 15 s). Headless still has one short spike, about 1.3 GB at 11 s, and settles by 27 s.

Steam RAM over the first minute on steamrt3

In-Wine Steam in steamrt3 with Valve's UI In-Wine Steam in steamrt3, headless Host steamrt3c Steam with Valve's UI Host steamrt3c Steam, headless

Steam on Windows

Measured on Windows 11 with aurelia host-steam start, two runs per mode, alternating. Idle Steam, signed in, started with -silent, no game running. The figures are the averages of the two runs, and the runs differed by less than 2.5 %.

Mode Private working set Commit Processes of which CEF (steamwebhelper)
Valve UI 589 MB 1,033 MB 8 526 MB (7 processes)
Headless 100 MB 221 MB 3 41 MB (2 processes)
Saved by headless Reduction
Private working set 489 MB 83 %
Commit 812 MB 79 %
  • What's left headless: steam.exe (about 56 MB), Aurelia's wrapper (under 1 MB) and one steamwebhelper.real.exe (about 40 MB).
  • Valve's UI: most of it is one CEF renderer process, about 380 MB.
  • Not counted: steamservice.exe, about 5 MB in either mode. It is a Windows service and runs whether or not Steam is open.

Real Windows vs Wine. Valve's UI costs far less on Windows than under Wine: 589 MB against about 3.2 GB. Windows maps one shared copy of libcef.dll into all of Steam's browser processes. Under Wine each process loads its own copy (see below). Headless mode still saves most of Steam's memory on Windows, but in absolute terms it saves about 0.5 GB there, against about 2.4 GB under Wine.

The first minute. RAM sampled once a second from the start command:

Run Signed in after Peak (private WS) After 60 s
Valve UI, run 1 7.6 s 771 MB at 30 s 653 MB
Valve UI, run 2 4.3 s 771 MB at 32 s 665 MB
Headless, run 1 3.3 s 109 MB at 21 s 103 MB
Headless, run 2 3.3 s 107 MB at 16 s 102 MB

Headless signs in faster and has no start-up spike: it stays within 10 MB of its settled value. Valve's UI peaks at about 770 MB about 30 s in, then settles about 180 MB lower.

While a game runs. aurelia play 1942280 --steam (Brotato) started Steam headless and signed it in within 4 s. Steam's own logs showed it serving the game: cloud sync at start and exit, Steam Input, the overlay and Workshop. The Steam side used 124 MB of private working set: steam.exe 64 MB, CEF 40 MB, the overlay (gameoverlayui64.exe) 19 MB. The game itself used 402 MB.

Turning headless off and starting Steam again put Valve's steamwebhelper.exe, crash_reporter.cfg and steamui\index.html back.

Under Wine. Earlier, the Windows build of Aurelia ran in the in-Wine Steam's prefix and started that Steam as its host Steam, with headless mode on. After a minute, signed in, it used 821 MB of PSS (13 processes, including Wine's services). With Valve's UI the same Steam used about 3.2 GB.

While a game runs

With Brawlhalla running through the headless in-Wine Steam, the Steam side stayed at about 745 MB: CEF 495 MB, steam.exe 245 MB, CEF wrapper 4 MB. Wine's services used another 230 MB. The game itself used 2,520 MB.

Why the in-Wine UI is so expensive

On Linux, Chromium's processes share one mapped copy of libcef. Under Wine, every steamwebhelper.exe process loads its own private copy, about 250 MB each. Valve's UI runs seven of them. Headless mode runs the helper as a single process. It also turns off the GPU process and the crash reporter, so only the wrapper and one helper remain.

What headless mode does

  • Host Steam:
    • Runs in a bubblewrap mount namespace, so Valve's install stays untouched.
    • A stand-in page replaces the React UI and signs the client in with Aurelia's session.
    • The CEF helper is started with trimmed flags.
  • In-Wine Steam:
    • Aurelia owns this prefix, so it swaps steamwebhelper.exe for a small wrapper that adds the trimmed flags. It also swaps in the stand-in page.
    • The originals are kept and restored when headless is turned off, or when steam-wine login needs the real UI.
    • The tray icon is hidden, because clicking it would open a UI that doesn't exist. aurelia steam-wine tray show|hide|auto overrides this. auto is the default and hides the icon only when headless. A change takes effect the next time the in-Wine Steam starts.

Steam's background services keep working in both modes: logon, licences, DRM and app tickets, cloud, and launching games.

Reproducing

aurelia config steam-headless true     # or false for Valve's UI

aurelia steam-wine start            # in-Wine Steam; returns once signed in
aurelia steam-wine stop

aurelia host-steam start               # host Steam; returns once signed in
aurelia host-steam stop

Method:

  • Metric: PSS (proportional set size) from /proc/<pid>/smaps_rollup. Shared pages are split between the processes that map them, so the totals don't double-count.
  • Sampling: three samples, 20 s apart, starting 90 s after the client signed in. The table shows their average. The samples differed by less than 1 %.
  • In-Wine Steam: counts every process whose WINEPREFIX is the master prefix.
  • Host Steam: counts every process descended from Steam's launcher (steam.sh).

Setup:

  • Date: 2026-10-30.
  • Steam client: build 1792618285.
  • Runner: in-Wine Steam under Proton Experimental (wine-11.0).
  • OS: Arch Linux, kernel 7.2.

On Windows

aurelia config steam-headless true     # or false for Valve's UI
aurelia host-steam start               # returns once signed in
aurelia host-steam stop

Method:

  • Metric: Windows has no PSS. The totals add up each process's private working set, the "Memory" column in Task Manager. It leaves out shared pages such as libcef.dll's code, so it is lower than PSS would be. Commit (private bytes) is shown next to it, because Windows trims the working sets of idle processes and commit isn't affected by that. Compare the two modes with each other, not with the Linux PSS figures above.
  • Source: Win32_PerfRawData_PerfProc_Process (WorkingSetPrivate, PrivateBytes).
  • Processes: every steam*.exe, which includes the wrapper and steamwebhelper.real.exe, except steamservice.exe.
  • Sampling: as on Linux, three samples 20 s apart from 90 s after host-steam start returned, averaged. Each mode ran twice, alternating, from a stopped Steam.

Setup:

  • Date: 2026-10-30.
  • Steam client: build 1792618285, interface language German.
  • Aurelia: 0.1.42-experimental.2 (feat/steam-headless, dae3144), release build.
  • OS: Windows 11 Education 25H2 (build 26200), Ryzen 5 5600, 16 GB RAM.

Clone this wiki locally