Record the browsers the CPUs option was tried in

This commit is contained in:
Pooya Parsa
2026-11-17 12:32:22 +00:00
parent 21fc21c81a
commit df2402856d
2 changed files with 9 additions and 7 deletions

View File

@@ -379,11 +379,11 @@ qemu's TCG keeps writing new code, which kwemu interprets or recompiles.
mode's kernel worker (CPU 0 must be able to block, so not on a
page's main thread), and the page has a CPUs option (`?smp=N`, off
by default) that loads the SMP bundle only then and falls back to
one CPU. Run only in headless Chromium (2 and 4 CPUs: boot, a
terminal window, glimmer, the JIT on every CPU, parallel loops
scaling). Not tried: Firefox (whether it has `Atomics.waitAsync`;
the option is disabled where it is missing), Safari, phones, a
hidden tab (worker throttling), long sessions. The page offers it
one CPU. Run in headless Chromium (2 and 4 CPUs: boot, a terminal
window, glimmer, the JIT on every CPU, parallel loops scaling) and
by hand on a deployed build in desktop Chrome, Firefox and on iOS.
Not tried: desktop Safari, Android, a hidden tab (worker
throttling), long sessions. The page offers it
only once a release bundle carries the SMP patch (Packaging, below).
- Packaging: one bundle carries the UP kernel and a patch to the SMP
one (`kernel/tools/bundle.mjs --smp`; js.md, CPU threads; web.md for

View File

@@ -265,8 +265,10 @@ other options.
reloaded on one CPU; a UP session resumed from a `?smp=2` load ("Resume
on 1 CPU") and was deleted by "Boot on 2 CPUs"; a page from the newest
release (no patch) showed the option disabled and booted UP. Also the
Vite dev server (nested worker from source). Firefox, Safari and
phones: not tried.
Vite dev server (nested worker from source).
- Checked by hand on a deployed build (2026-11-17): several CPUs work in
desktop Chrome, in Firefox and on iOS. Desktop Safari and Android: not
tried.
## Suspend and resume