Skip to content

SteamOS-compatible ARM64 userspace

What The Steam Frame's ARM64 SteamOS userspace (systemd 257.7, SteamOS services, gamescope, PipeWire, NetworkManager, the Steam client, SteamVR) with the PICO 4's adaptations, on Valve's kernel (kernel.md)
How Packages from Valve's Holo Core aarch64 preview and the Frame's hotfix repository plus the project's own, locked by SHA-256, installed into a reproducible image root on the headset; its file system is made straight in super, read-only, with data in userdata (installed-system.md)
Code userspace/packages.json, overpressure's build/build-userspace.sh, overpressure's build/build-system-image.sh; the image's definition (packages.txt, pacman.conf, packages.lock) and the project's packages in overpressure/packages, at the release userspace/packages.json pins
State Reaches running with no failed units on the headset; the XR stack (xr/README.md) and Valve's VR session (session.md) run in it

The recovery initramfs (recovery.md) is overpressure's recovery in recovery, where the system is installed and rescued. Flash storage stays read-only, except the installed system's data partition.

Audio is in audio.md, the network over USB and Wi-Fi in network.md.

Where the packages come from

The Frame's SteamOS is an Arch Linux (Holo) derivative. Two public Valve repositories serve its ARM64 packages; the project builds the rest:

Source Content Used for
Holo Core aarch64 preview, snapshot mash-20251118.3 Valve and Collabora's ARM64 Arch port: core, extra and a base system.rootfs.zst the build environment; resolves every dependency by default (glibc 2.42, pacman 7)
Steam Frame hotfix repository deckard-arch-hotfixes-release-0.3 about 400 of the Frame's own builds: systemd 257.7, gamescope 3.16.28, Mesa 26.3 (development), steamos-customizations-deckard, steamos-manager, the Steam client and SteamVR the Frame packages named in packages.txt
overpressure/packages the project's packages (below), in layers: common (any headset on the Frame's userspace), sm8250 (the XR2), phoenix (the PICO 4) the XR stack, frame pacing, patched gamescope and vrlink

The Frame repository holds only the Frame's hotfixes; its base is not public, and several of its libraries (ffmpeg, freerdp) need older libraries than the preview has. So the preview resolves everything, and packages.txt names each Frame package explicitly (deckard-arch-hotfixes-release-0.3/<name>). A line !name makes dependencies on name count as satisfied without installing it: sddm, which pico4-session.service replaces (session.md). The Steam client gets the libraries it needs but does not declare (session.md). The build environment takes the same Frame packages, so that the project's packages build against the image's versions.

Packages both repositories have. The Frame's image updates as a whole on its private base, so the Frame's builds of base packages assume that base. Where the Frame's build is the same version or newer, the image takes it; where it is older, core and extra's:

Package From Why
filesystem Frame SteamOS's: /etc/os-release says ID=steamos, /etc/steamos-release exists; no /lib64
pipewire, pipewire-audio, pipewire-pulse, libpipewire, alsa-card-profiles 1.6.8; wireplumber, libwireplumber 0.5.14 Frame the Frame's audio stack; overpressure-spa-alsa is built from the same version
bluez-libs 5.79 Frame the version of the Frame's bluez
wayland, libdrm, libxkbcommon, libxkbcommon-x11, rtkit, v4l-utils, linux-api-headers Frame newer; the Frame's wayland and libxkbcommon link libxml2.so.2, which extra's libxml2-legacy provides next to core's libxml2 2.15; v4l-utils' Qt tools (qv4l2, qvidcap) need the Frame's Qt and are not used
bash, gptfdisk, mkinitcpio-busybox Frame the Frame's rebuild of the same version
xorg-xwayland 24.1.9 extra the Frame's rebuild calls ei_device_text_keysym, which extra's libei 1.5 lacks: Xwayland would not start
ffmpeg 8.0 (Frame: 7.0) extra the Frame's needs libraries only its private base has (libjxl 0.10, libplacebo 338, x264, x265, libvpx 9, rav1e 0.7, rubberband 2)
podman 5.6 (5.5) extra the Frame's needs libgpgme 11
glib2 2.86 and the gsettings schemas 49 (2.84, 47) core the Frame's is older and also holds the tools of Holo's glib2-devel, which it conflicts with
gcc, gcc-libs 15.2 (15.1), qt6-base, qt6-translations 6.10 (6.8), protobuf, python-protobuf 33 (25.3), libinput 1.29 (1.26), libei 1.5 (1.4), wpa_supplicant 2.11 (2.10), openxr 1.1.53 (1.1.47), vulkan-icd-loader, vulkan-tools, spirv-tools 1.4.328 (1.4.309), libtool 2.6 (2.5), mkinitcpio 40 (39) core, extra the Frame's are older; core and extra's packages are built against the newer versions
e2fsprogs, zram-generator core, extra the same version, Holo's rebuild newer

Valve also publishes the Frame's whole OS image as a RAUC bundle with a casync chunk store (steamdeck-atomupd.steamos.cloud/meta/holo/steamos/aarch64/vr/stable.json). It is not used: a 10 GB btrfs image whose license restricts modification. Packages let the build select what the PICO needs.

Neither repository signs packages or databases. Integrity rests on HTTPS, the pinned SHA-256 of the bootstrap rootfs, the package lock and the build manifest. Do not redistribute the output: it contains Valve's packages, including proprietary ones.

Package lock

packages.lock names every upstream package of the image by SHA-256. A build stops on a package that differs or is not listed, so an image holds what was tested, although the Frame's hotfix repository moves on and nothing is signed. SteamVR is one of these packages, so it updates only with the image. build-userspace.sh --update-lock writes a new lock to OUTPUT_DIR/packages.lock instead of checking it.

Rebuilding a release. The Holo repositories are a fixed snapshot, but the hotfix repository keeps only each package's current file. A release rebuilds only while every locked hotfix package is still published, or from a build root whose package cache (BUILD_ROOT/packages/environment/var/cache/pico4-pkgs) and databases still hold them. Otherwise a clean build fails the lock until the lock moves to what Valve publishes (releasing.md). There is no mirror: Valve's packages may not be redistributed.

What updates by itself. The system image is read-only and Valve's updater is not installed (atomupd-manager is a stand-in that refuses updates, session.md); no timer installs packages (archlinux-keyring-wkd-sync only refreshes pacman's keys). What moves lives in the data partition:

What Where How it updates
Steam client ~/.local/share/Steam (package/, linuxarm64/, steamrtarm64/, steamui) unpacked from the image's deckard-steam-rel on the first start, then the client's own updater, at each start and in a background loop, from the Frame's ARM64 client beta that package/beta names
Games, Proton (ARM64), Steam Linux Runtime 4.0 (Arm64), Lepton ~/.local/share/Steam/steamapps Steam
SteamVR, Mesa, PipeWire, systemd, the kernel, every other package the system image (/opt/steamvr is the runtime openvrpaths.vrpath names) only with a new image

Holding the client at a tested version is open: whether an older client keeps working against Steam's servers is not known. The image reports this repository's version (headset.json) and commit, and overpressure's version, in /usr/share/pico4/version (version=, a preview's with its commit's time, commit=, overpressure=, kernel= the kernel's tag, packages= the packages' release).

systemd stays at 257.x

The build takes systemd, systemd-libs and systemd-sysvcompat 257.7 from the Frame repository and fails if the installed systemd is not 257.x. The headset's /etc/pacman.conf is the build's without the project's local repositories and with IgnorePkg = systemd systemd-libs systemd-sysvcompat systemd-resolvconf, so an upgrade cannot pull 258.

pacman's database

pacman's database lists the image's packages, so it is part of the image, as on SteamOS: the headset's /etc/pacman.conf names DBPath = /usr/lib/holo/pacmandb/, and the build moves the database there at its end (its own pacman runs keep the default path, which --root places in the build root). It is read-only with the system, and an upgrade replaces it with the image, so pacman -Q always lists exactly the running image's packages. What pacman writes besides stays on the data partition: its cache (/var/cache/pacman/pkg, which SteamOS's offload binds put under /home), its log (/var/log/pacman.log) and its keys (/etc/pacman.d/gnupg, in the /etc overlay). Systems before this kept a copy at /var/lib/pacman on the data partition; preinit removes it.

A writable system

As on SteamOS, the system is read-only until its owner makes it writable with sudo steamos-readonly disable (sudo takes the owner's password, security.md), and pacman installs packages into it then. The next upgrade writes a fresh image, read-only again, and whatever was installed meanwhile is gone with its database entries (pacman's database), as after a SteamOS update. Valve's steamos-readonly handles a btrfs root only; the image's is overpressure-base's (steamos-readonly), with SteamOS's commands, messages, exit codes and /.ROOTFS_RW marker:

Command What it does
steamos-readonly disable super and the root writable, now and at every boot until enable; the file system grows to the whole partition (online)
steamos-readonly enable synced, then the root and super read-only again (a file still open for writing keeps it writable until the next start)
steamos-readonly status enabled (read-only, exit status 0) or disabled (exit status 1)
steamos-readonly toggle the other one, then the status

SteamOS keeps the setting in its btrfs root's ro property; here it is a file in the image, /.overpressure-writable, which preinit and the storage policy read at every boot, so a fresh image starts read-only. Only super changes: boot, recovery, misc and every other partition stay read-only in both states. The image has a journal for it. What a package writes to /etc goes into the /etc overlay's upper layer and to /var onto the data partition, as on SteamOS, so it stays after the upgrade has removed the package.

Valve's Mesa

The system's Mesa is Valve's deckard-mesa-linux-aarch64 (kernel.md): Turnip on msm and OpenGL through zink.

Project packages

The packages are overpressure/packages': each recipe there holds its code, patches and installed files, and a code package's tests run in its build. userspace/packages.json pins a release of that repository by tag, commit and the hash of its SHA256SUMS. The build takes the release's packages, built on arm64 in that repository's CI and each checked against its SHA256SUMS; --packages DIR takes a checkout and builds here the recipes that differ from the pinned commit's, --build-packages builds every recipe here. A change to a package is a change there, a new tag and a new pin here.

Package Content Details
pico4-graphics-tests the native Vulkan test graphics.md
sm8250-hexagonrpc hexagonrpcd with the project's patches, for the DSPs xr/imu.md
pico4-monado Monado 25.1.0 with the PICO 4 driver and pico4-cam xr/README.md
pico4-basalt Basalt for Monado's VIT interface, built for armv8.2-a xr/head-tracking.md
pico4-swapchain-usage the stock path's frame pacing and compressed scanout in SteamVR's compositor session.md
overpressure-gamescope the Frame's gamescope 3.16.28 with a fix for a crash when a game starts, and the laser's click as the left button for windows that are not Steam's desktop.md
pico4-vrlink vrlink support for Steam Link session.md
pico4-power fan control, the battery guard and the power key, as on PICO OS; its preset enables their services cooling.md, installed-system.md
overpressure-spa-alsa PipeWire's ALSA plugin at Valve's 1.6.8 with the capture fix of Audio, installed over pipewire-audio's by its pacman hook audio.md
overpressure-gtk2 GTK 2 for the Steam client session.md
overpressure-mangohud MangoHud's mangoapp, the client's performance overlay session.md
overpressure-libdisplay-info libdisplay-info 0.1 for Valve's Mesa kernel.md

External sources are pinned by commit or hash; patches lie next to each PKGBUILD, the project's own sources in src/.

How the installed system starts

kernel    Valve's kernel from boot, no ramdisk: root=PARTLABEL=super ro, devtmpfs on /dev,
          init=/usr/libexec/overpressure/preinit
preinit   proc, sys, /run; the boot indication; devnode sweep (every block device read-only);
          userdata writable, at /data; /etc overlay, /var /home /root binds; machine-id;
          exec systemd (charger mode: --unit=pico4-charger.target)
systemd   257.7: udev devnode rules, read-only sweep, overpressure-usb-link (USB NCM 172.16.42.1,
          ACM), systemd-networkd (DHCP for the PC), sm8250-wlan-probe, sshd

preinit runs as PID 1 until it executes systemd; installed-system.md has its steps; it is overpressure's (runtime.md), with the PICO 4's hooks from pico4-base (charger mode; PICO OS's firmware partitions, the head tracker's root and the boot indication). A failure before systemd reboots into recovery. systemd's device monitor listens to udev only when /dev is a devtmpfs or udev already runs; the stock kernel has no devtmpfs, so the system runs only on Valve's kernel.

Apps the owner adds come from Flathub through Discover in Desktop mode, as on SteamOS (desktop.md), or as containers through Podman; the system image stays read-only.

What the system keeps:

  • Storage. preinit's devnode sweep, overpressure-storage-ro.service and the udev helper keep every physical disk and partition read-only (overpressure.rw=1 disables this, as in the recovery). The exception is the data partition (userdata, file system pico4-data, booted with overpressure.root=installed), which preinit makes writable: switched read-only under the mounted file system, its writeback fails and data is lost. pico4-userspace-check requires it writable. steamos-readonly disable leaves super writable too, until enable or the next upgrade (a writable system). No fstab entries; the GPT auto-generator is disabled; systemd-repart and systemd-boot-update are masked.
  • Recovery. overpressure-recovery-watch.service runs the runtime's recovery-watch and recovery-policy.sh and survives isolation; with overpressure.autoreboot=0 and no test run it sets no deadline. Emergency and rescue mode log the failed units and reboot to fastboot after 30 s (overpressure.emergency_delay). A crashed PID 1 reboots (CrashAction=reboot); stop timeouts are 15 s. systemd arms the SoC's watchdog (30 s; its bark panics, so a stopped PID 1 restarts the headset after about 33 s). The third boot in a row that never reached the graphical target goes to overpressure's recovery (boot attempts).
  • Kernel panics. panic=5; the firmware refuses the warm reset, and the tree's PS_HOLD reset restarts the headset, about 40 s from a forced panic to SSH.
  • Logs. systemd-pstore.service is masked, so pstore logs stay for overpressure's recovery to export. preinit and the system's scripts log to /run/overpressure/boot.log. journald keeps the journal as the Frame does, persistent on the data partition, up to 1 GiB (Valve's persistent-store.conf and system-max-use.conf, steamos-customizations-deckard), so earlier boots' journals stay for the support bundle; the image's 50-pico4.conf only forwards warnings to the kernel log. pico4-userspace-netdiag writes USB link samples 20, 60 and 150 s after boot to pstore (pmsg).
  • Access. sshd takes the keys dev install wrote to the data partition, on USB and Wi-Fi; its host keys come from the first boot and stay in the /etc overlay (security.md).

Flavours

The install asks which system the headset gets, a flavour (overpressure's flavours), listed in headset.json:

Flavour What it is State
SteamOS (steamos) this page: Valve's SteamOS userspace with the PICO 4's adaptations the default
overpressure OS (overpressure-os) Linux with open-source VR in place of Steam and SteamVR (its issue) shown, not available yet

Every flavour shares the kernel, overpressure's recovery and the PICO 4's packages for its hardware. A flavour's image definition is overpressure/packages' headsets/phoenix/<flavour>/ (a release before flavours has SteamOS's in headsets/phoenix/), its part of the build overpressure's build/flavours/<flavour>.sh, and the PICO 4's own part userspace/flavours/steamos.sh (SteamVR's controller remapping and Steam Link's layer); userspace/build.sh is every flavour's. The installed system records its flavour (flavour= in /usr/share/pico4/version); an upgrade builds the same one, and another one means installing again.

Adaptations in the image

  • Session user. steamos (UID 1000), which the Frame's tmpfiles rules and steamos-customizations-deckard require; groups wheel, video, render, input, audio. Neither root nor steamos has a password. Hostname pico4-steamos.
  • /home. SteamOS's home.mount mounts the Frame's /dev/disk/by-partsets/shared/home and without it fails basic.target after 90 s. The image replaces it with a self-bind of /home on the data partition, which keeps the offload bind mounts (steamos-offload.target) working; their source directories are created in the image.
  • USB. overpressure-usb-link.service sets up the same gadget as overpressure's recovery (installed-system.md); /tmp/usb_gadget_block makes the Frame's Type-C plug handler leave it alone. systemd-networkd configures the USB link, NetworkManager every other interface.
  • Masked units. systemd-firstboot (would wait for console input), systemd-pstore, systemd-boot-update, systemd-repart, steamos-dump-info (needs the Frame's EEPROM and EFI boot configuration), serial-getty@ttyMSM0, and the Frame's USB gadget units (usb-gadget.target, usb-ncm-gadget@, usb-ncm-dnsmasq@), which would take the controller from overpressure-usb-link. The session's masks are in session.md.
  • Enabled. sshd, systemd-networkd, NetworkManager, systemd-timesyncd, bluetooth, pico4-session.service, Monado's socket, the sensor and audio targets, and the project's units for recovery, storage, logs, the USB link and USB internet, fan, battery guard, splash, power key, persist, zram swap, clock, kernel-thread priorities, IMU readiness, panel and Venus probes, Bluetooth firmware and address, Wi-Fi probe and address, and the video codec links. The default target is graphical.target.
  • Battery. The PM8150B charger and fuel gauge appear as power supplies battery (capacity, status, voltage, current, temp), usb, pc_port, dc and bms; UPower (D-Bus activated) reads them. status says "Charging" whenever the charger is on; on a PC's 500 mA port the running headset still drains the battery (negative current), which UPower reports as discharging. driver_monado passes the battery supply to SteamVR as the headset's level and charging state every 5 s.

Build

The headset builds it itself (installed-system.md), in a build host that runs the same script. In the build container, as root (Linux-root steps), it checks the packages and writes the manifest (make userspace runs the same with the defaults):

overpressure container run -- bash overpressure/build/build-userspace.sh devices/phoenix \
    /var/tmp/pico4-userspace-build out/userspace

build-userspace.sh BUILD_ROOT OUTPUT_DIR [OPTIONS]. The image holds no file of PICO OS's, only links to where they are on the headset (installed-system.md):

Option Effect
--refresh downloads current package databases and reinstalls the base root; builds the project's packages here against them
--update-lock writes OUTPUT_DIR/packages.lock instead of checking the lock
--packages DIR takes a checkout of overpressure/packages instead of the pinned commit: its recipes that differ from the pinned commit's are built here, the others come from the release
--build-packages builds every recipe here instead of taking the release's packages

How it works:

  • The script snapshots its inputs and overpressure/packages at the pinned commit (fetched once into cache/packages/COMMIT) into BUILD_ROOT (absolute, on a Linux file system), so the trees can be edited during a build.
  • The build environment and the project packages are overpressure/packages' build/packages.sh: the Holo preview's SHA-256-pinned base rootfs, entered with chroot, with what the recipes build against, each package pinned by the lock or the Holo snapshot. On non-arm64 hosts its programs run under QEMU through the aarch64 binfmt handler, which the build container registers when the engine has none; on x86-64 the container's clang and lld (LLVM 20) compile natively with the build environment as sysroot (no LTO).
  • The project packages are the pinned release's, downloaded once into cache/packages-release/TAG, with a --packages checkout's changed recipes built here. Built here (those, or all with --build-packages and --refresh), they rebuild only when their recipe folder changes. Each layer becomes a local pacman repository overpressure-LAYER. Package databases are downloaded only by the first build and with --refresh; a new base root otherwise keeps the last finished one's (overpressure's databases.sh). A base root whose download stopped keeps none, and a kept set that lacks a database of pacman.conf's repositories is downloaded again, so a stopped build can always be run again.
  • The base root (packages.txt) is kept between builds; each build assembles the image root as an overlay on it with the project packages, among them the adaptation layer's (overpressure-base, sm8250-base, pico4-base, -power, -audio, -xr, -session, -checks), whose presets enable their units, and the session user.
  • overpressure/elfdeps.py checks natively, as ldd -r would, that the programs and libraries of the Frame and project packages and of the packages that depend on them find their libraries, with symbol versions, and that every symbol they need is defined in what the program loads (a build against a newer library can call a function the installed one lacks, as the Frame's Xwayland does). Libraries are checked through the programs that load them, since their symbols can come from the program (bash's loadable builtins, libthread_db, speech-dispatcher's modules).

The outputs are the image root in BUILD_ROOT (the overlay's upper layer over the base root) and OUTPUT_DIR/pico4-userspace.manifest.json: version, Git commit and date, the installed size, the overpressure/packages release (tag and commit) or local checkout it was built from, the SHA-256 of every repository database, package, GPU firmware and sensor-data file, and the installed package versions; the hardware runner selects its checks from it. Its SHA-256 names the build: the image carries it in /usr/share/pico4/userspace-build.sha256. Keep the output private. Build hosts and timings are in development.md.

Reproducible builds

Two clean builds of a commit (a new BUILD_ROOT, the same assets and lock) give the same image root, and the same build gives the same file system in super. Every time the build records is this repository's commit date (its Git in a clone, headset.json's date in a release zip), as SOURCE_DATE_EPOCH (set it to override):

What would differ How the build fixes it
project packages' build dates and file times makepkg takes SOURCE_DATE_EPOCH; with the same compiler the packages are identical
fontconfig caches, the Java keystore of ca-certificates the chroots and pacman's hooks get SOURCE_DATE_EPOCH, which fc-cache and p11-kit's trust take
pacman's install dates written as SOURCE_DATE_EPOCH into the database's local/*/desc
the project repositories' databases (repo-add records when it ran) not in the image: the headset's pacman.conf has none of them
ldconfig's aux-cache (inode numbers, change times) removed; it only speeds up the next ldconfig run
file times, access and change times build-system-image.sh sets every access and change time to SOURCE_DATE_EPOCH and clamps later modification times to it
the file system's UUID and hash seed build-system-image.sh derives both from the build's identity, its manifest's SHA-256

A build that reuses project packages from an earlier commit (an old BUILD_ROOT) keeps those packages' build dates, so its image differs from a clean build's in them.

Run

The headset builds the system and makes it the read-only file system in super, with data in userdata (installed-system.md):

overpressure dev recovery
overpressure dev install
overpressure dev check
overpressure dev installed    # reconnects after a reboot

pico4-userspace-check [--wait SECONDS] [--no-vulkan] prints JSON, exit status 0 when it passed. It waits up to 180 s for the boot to settle, then checks:

  • systemd 257 as PID 1, state running, no failed units;
  • /dev the kernel's devtmpfs with a node for every kernel device, and a populated udev database;
  • the root read-only from super, /data on userdata the only writable partition (with steamos-readonly disable, the root and super writable too);
  • D-Bus, logind's seat0 and sshd;
  • the USB link as overpressure-usb-link recorded it (interface, MAC, address);
  • the session user logged in with its session target active, Monado's socket listening, the XR device nodes accessible to the session user (session.md);
  • steamos-customizations-deckard, steamos-manager, gamescope, PipeWire and deckard-mesa-linux-aarch64 installed;
  • with msm's render node present, the Turnip Vulkan test (graphics.md);
  • the fan service (cooling.md).

devices.phoenix.tooling.userspace.validate_check validates the JSON on the host. After a failure the device-side deadlines return overpressure's recovery to fastboot, and overpressure dev reboot starts it again (hardware-testing.md). hwtest flash-run and cycle verify the recovery and the way back on the stock kernel (hardware-testing.md).

The headset's own data

Each headset's factory data stays in its persist partition (ext4), where PICO OS keeps it. sm8250-persist.service mounts it read-only at /mnt/vendor/persist before local-fs.target (ro,noload: no journal replay, the block device stays read-only), and the image links to it instead of shipping a copy:

In the image Links to Read by
/usr/share/qcom/pico4/sensors/registry/ persist/sensors/registry/registry/ (registry and factory calibration of every sensor) hexagonrpcd for the sensor DSP
/usr/share/qcom/pico4/sensors/sns_reg_version persist/sensors/registry/sns_reg_version hexagonrpcd
/usr/share/qcom/pico4/calibration/pvr/ persist/pvr/ (camera, IMU and lens calibration, gyro bias tables) Monado's driver, PICO OS's tracker
(read directly) persist/wlan_mac.bin pico4-wlan-address (Wi-Fi)
(read directly) persist/falcon/sn pico4-fan's auto profile (the production batch, cooling.md)
(read directly) persist/time/ats_2 (the wall clock's offset to the PMIC's RTC, ms) pico4-clock: the clock at boot is RTC + offset, as PICO OS keeps it, before timesyncd; only forward
(read directly) persist/pico_bt_mac pico4-bt-address (Bluetooth)

The files belong to Android's system user, uid 1000, which is steamos here, so the driver in vrserver reads them. Nothing is written: the sensors process rewrites its registry at every start (each group to temp.json, renamed over the group), and sm8250-hexagonrpc' hexagonrpcd takes those writes and drops them, so the IMU comes in about 1 s and the DSP runs from the registry in persist.

Memory

The headset has 7.6 GiB of RAM, shared with the GPU. Valve's idle VR session leaves about 4.2 GB available: Steam's UI processes (steamwebhelper, vrwebhelper, steam) hold about 1.4 GB, GPU memory about 0.7 GB, the page cache about 2.7 GB.

  • Swap on zram, as big as the RAM, with zstd. The Frame's holo-zram-swap configures zram0 at half the RAM with lzo-rle, and PICO OS does the same (init.qcom.post_boot.sh: half the RAM, at most 4 GiB). But the Frame has 16 GB, and PICO OS runs only Android apps, not PC games under Proton and FEX. 50-pico4-zram.conf sizes it to the RAM with zstd; zswap stays off. zram takes RAM only for what it holds, compressed. zram-generator is masked because its swap unit has no priority; pico4-zram-swap.service runs its --setup-device zram0 and swapon at PICO OS's priority 32758. GPU memory cannot be swapped.
  • PICO OS's reclaim and overcommit. 50-pico4-memory.conf: vm.swappiness 100, vm.watermark_scale_factor 90, vm.watermark_boost_factor 0, vm.overcommit_memory 1 (as PICO OS's init.rc: allocations never fail; when memory and swap run out the OOM killer takes the highest score). With the default overcommit an allocation of the tracker can fail and crash libSlam. pico4-slamd runs at oom_score_adj −1000, as Android's init runs its core services. systemd-oomd is not enabled, as on the Frame.
  • A game larger than the free memory. POOLS under Proton and FEX takes about 3 GB of GPU memory and 1.5 GB of its own. Without swap the headset froze for minutes (head tracking lost, compositor and gamescope crashed) until the OOM killer killed the game. With swap it runs: 1.5 GB went to zram, at most 2.3 % memory pressure, no kill.
  • A game larger than the RAM: H3VR. It takes about 3 GB of GPU memory and 3 GB of its own, about 11 GB with the session. With the Frame's half-the-RAM zram the swap filled about 3 minutes after the start, and the headset froze for about 110 s (head tracking lost, SteamVR's server crashed) until the OOM killer killed the game. With zram as big as the RAM it reaches its menu and keeps running, at about 6 fps: 4.1 GB of memory and 3.4 GB of swap at its peak, memory pressure at most 25 %, no kill. The GPU is at its highest clock and the game's cores are about 60 % idle, so the game itself is GPU-bound there; it swaps about 0.4 MB/s once it runs. zstd held the swapped data at 2.7 : 1 against lzo-rle's 2.0 : 1, about 0.7 GB more RAM free. PC games this large are better streamed from a PC.
  • A game larger than memory and swap. A process filling memory with incompressible data at oom_score_adj 900 (Steam's games' value) in a VR session is killed 8–10 s after its start. No process waits longer than 4.3 s; gamescope, Xwayland, SteamVR's server and compositor and the head tracker keep running; the tracker may report tracking lost and relocalises.
swapon --show                              # /dev/zram0, partition, about 7.3G, prio 32758
zramctl                                    # zstd, the data it holds and its compressed size
cat /proc/pressure/memory                  # memory pressure (PSI)

Verified results

Current results are in kernel.md.