Optionalasyncifythe kernel command line; boot without nohz_full (see the technical report)
Optionalconsolewhether the kernel queues console output in a ring the host drains (kernel patch 0038): one
write for everything queued since the last pump step instead of one per kernel put. Default
true; a kernel without the ring puts directly
Optionalcountroutes every syscall through the host hook, which counts it by number in stats.syscalls; a
function is also called for each (before it for the calls that may not return, else after). Exact
counts, but every call pays a host crossing, so a run under it is not timed
Optionaldigesta host digest for a program's whole md5, sha1, sha224, sha256, sha384, sha512 or blake2b512
stream (katybug's digest recognizer, __gmux_digest): node:crypto's createHash fits. Without
it a program hashes with its own code. A machine with a digest open cannot checkpoint: a host
digest has no state to save
Optionaldirectwith syscallCache, fills the cache from a plain import after the kernel's answer instead of
routing a miss through the Suspending hook. The router then calls the kernel without a tail
call, so a machine that unwinds its stacks cannot use it: combined with asyncify it throws
Optionaldlwasm side modules a process asked for that the registry did not hold, by executable hash. Pass the same map to the next machine to carry the record across runs
Optionalexeckeeps what an exec's stub bytes alone decide, its registry key and the data size it maps, so a
repeat exec of the same stub neither hashes nor parses it again. The registry, the caller's euid
and the recorded dlopen misses are read on every exec. 'verify' also computes everything each
time and counts memo answers it contradicts in stats.execMismatches
Optionalfilecalled when a program fsyncs or fdatasyncs a regular file, with the file as the kernel reads
it; the program's call returns once this resolves, so resolve once the bytes are durable.
Without it (and without restoreFiles) programs call the kernel directly
Optionalfuelloop iterations a user program runs between host yields
Optionalguardedbuilds of the registry's programs that check every load and store against the kernel's page owner table (scripts/wasm/guard-pass.ts), by the same hash. A task whose effective uid is not 0 runs these, and one with no guarded build for its program cannot run it
Optionalinflatea host decoder for the whole raw deflate stream of a program's gzip member (katybug's
inflate recognizer, __gmux_digest ops 8 to 13). Without it a program decodes with its own
code. The machine keeps the decoded bytes (at most MAX_INFLATE_BYTES a task, and
maximumInflateBytes in all) until the program has taken them, and a machine with a stream
open cannot checkpoint
the initramfs the kernel unpacks as its root filesystem (kernel/initramfs.bin)
Optionalinterpretthe interpreted tier: the module that runs exe with its recorded libs interpreted, or
undefined when it cannot take them. Absent, a recorded miss is refused again
Optionalloghost diagnostics: faults, crashes, and with trace every switch
Optionalmaximumthe most host bytes all open inflate streams of every task may hold together (default 64 MiB, a Free isolate's half). A stream holds whole 1 MiB pieces, so one that has decoded 40 bytes counts 1 MiB; the decoded length is never more than what the streams hold
Optionalmaximumthe most 64 KiB pages the machine's memory may grow to (default 2048); the kernel takes it all as RAM
Optionalmemorya memory to boot or restore into instead of a new one, zeroed first; its maximum must equal maximumPages. An evicted machine's memory stays charged to its isolate, so a successor in the same isolate reuses it rather than allocating a second. A memory larger than the machine starts with is declined: the kernel takes everything past its start size as RAM, so this serves restores (a snapshot is full size) and not boots after one
Optionalnowthe host clock in nanoseconds since the Unix epoch (default Date.now())
Optionaloutboundthe host's end of the machine's outbound connects (kernel patch 0047); without it every connect to an address outside the machine is refused, and a checkpoint resets every stream it holds
Optionalpagecalled on a software-TLB miss for a page of a program built with scripts/wasm/mmu-pass.ts; a promise parks the task until the page is in place (a lazy restore faulting pages in). With canWait false the program runs outside WebAssembly.promising (its start function, relocations and constructors), so the page must be in place before this returns
Optionalphasea phase's entry and exit (interrupt, unwind, parked), for a host that times them
Optionalprefillinstances of each recyclable share build made ahead while the pump has nothing to run, up to
this many idle per build (and no more than recycleInstances), so an exec after a pause finds
one ready. Default 0 (off). Costs about 120 KiB of JS heap per idle instance and, before
_start, a region of the machine's memory the size of the largest share build's data. A
restored machine makes none, and a checkpoint saves none
Optionalrecyclethe most idle instances kept for each share build (scripts/wasm/share.ts) that no process is
using: a finished process's instance goes back and is reset for the next exec of its program
(globals, relocations, TLS base, pristine data). 0 turns it off; the default is 8. Needs
sharedKernel; nothing pooled is saved by a checkpoint. An asyncified or evacuable share build
is pooled too, once its process has ended with no asyncify state or unwinding flag left
Optionalreentermilliseconds after Machine.restore at which each restored evacuable program, at its next fuel
yield, spills its frames and resumes them in its own instance. A running wasm frame keeps the
code it was entered with, so frames a restore rebuilt in freshly compiled code continue in what
V8 has optimized since. Once per program; nothing is copied
precompiled user programs keyed by the hex SHA-256 of their bytes
Optionalrestorefor Machine.restore: files synced after the snapshot was taken, written into the machine at
the first syscall any program makes, before that syscall runs
Optionalruntimethe host runtime modules, compiled (scripts/build-router.sh): the syscall router and the statx
hit path, required with fileSync, restoreFiles, syscallCache or countSyscalls, and the
scheduler core, whose idle table and deadline minimum then run in C over the machine's memory
in pages reserved before the kernel boots (without it the same decisions run in TypeScript). A
snapshot taken without the core's region restores on the TypeScript scheduler, which picks the
same task
the hex SHA-256 of an executable without an exec stub, to find it in registry
Optionalsharedone vmlinux instance for every task, switching the task's mutable globals at each park and resume; needs a vmlinux that exports them (scripts/export-globals.ts)
Optionalsharea program made shareable by scripts/wasm/share.ts runs every process on one instance, its
bases, stack pointer and globals swapped at each switch (needs sharedKernel; no checkpoints)
Optionalstephow far the kernel's clock moves per scheduling decision when the host clock does not
Optionalsyscallanswers a repeated statx of an absolute path from the host while the kernel's path-query generation (kernel patch 0022) and the task's view are what they were, without entering the kernel. 'verify' asks the kernel every time and counts answers the cache would have got wrong
Optionaltracelog every task switch and release through log
the kernel, compiled (kernel/vmlinux.wasm)
Optionalwriteconsole output, as the kernel writes it
Optionalyieldpump steps between macrotask yields, so a frozen host clock can advance
the kernel and user modules are asyncified at their park imports (scripts/build-async.sh), so
checkpoint()can turn every parked stack into bytes andMachine.restore()can rewind it