gmux - v0.1.0
    Preparing search index...

    Interface MachineStats

    counters the host keeps while a machine runs

    interface MachineStats {
        abandonedStacks: number;
        consoleDrainBytes: number;
        consoleDrainPeak: number;
        consoleDrains: number;
        consolePutBytes: number;
        consolePuts: number;
        consoleRaises: number;
        consoleReads: number;
        dataUnzeroedExecs: number;
        dataZeroedBytes: number;
        deferredPages: number;
        digestBytes: number;
        digests: number;
        dlMisses: string[];
        execHits: number;
        execMismatches: number;
        execMisses: number;
        execRefused: { file: number; full: number; long: number; unknown: number };
        fileRemovals: number;
        fileRestoreErrors: string[];
        filesRestored: number;
        fileSyncBytes: number;
        fileSyncs: number;
        fileSyncsSkipped: number;
        filledPages: number;
        flagReads: number;
        forks: number;
        freePages: number;
        fuelYields: number;
        guardedExecs: number;
        hostSleeps: number;
        idles: number;
        inflateBytes: number;
        inflates: number;
        instances: number;
        interpretedStarts: string[];
        mmuMisses: number;
        netBackpressure: number;
        netBorrowed: number;
        netBytesIn: number;
        netBytesOut: number;
        netEvents: number;
        netOpens: number;
        netSends: number;
        pageFaults: number;
        prefilled: number;
        pumpSteps: number;
        recycledStarts: number;
        recycleRefused: {
            asyncify: number;
            checkpointed: number;
            clone: number;
            full: number;
            parked: number;
            unwinding: number;
        };
        recycleReturns: number;
        reentries: number;
        relaxes: number;
        restoreHooks: number;
        routeBuilds: number;
        runners: number;
        sharedEntries: number;
        signals: number;
        stackSegments: number;
        statxChains: number;
        statxFills: number;
        statxFineFills: number;
        statxHits: number;
        statxMismatches: number;
        statxMisses: number;
        switches: number;
        syncWalks: number;
        syscalls: Record<number, number>;
        touchedPages: number;
        unknownExecutables: string[];
        userCopies: number;
        userCopyBytes: number;
        userExecs: number;
        userStringBytes: number;
        userStrings: number;
        userTouches: number;
        writeHooks: number;
    }
    Index
    abandonedStacks: number

    parked stacks of released tasks, unwound so they can be collected

    consoleDrainBytes: number
    consoleDrainPeak: number
    consoleDrains: number

    drains of the console ring that found bytes (each one a write call), the bytes, and the most one took

    consolePutBytes: number
    consolePuts: number

    the console driver's calls into the host (each one a write call), and the bytes they carried

    consoleRaises: number

    input interrupts raised to the console

    consoleReads: number

    the console driver's reads from the host

    dataUnzeroedExecs: number

    execs whose data mapping the kernel left unzeroed (kernel patch 0044), and the bytes the host zeroed in them

    dataZeroedBytes: number
    deferredPages: number

    pages a lazy restore left out

    digestBytes: number
    digests: number

    whole digests a program had the host finish (MachineOptions.digest), and the bytes they took

    dlMisses: string[]

    side modules a process asked dlopen for that the registry did not hold: library hash for executable hash

    execHits: number

    with execCache: execs that took their stub's facts from the memo, and execs that had to compute them

    execMismatches: number

    with execCache: 'verify': memo answers the full computation contradicted

    execMisses: number
    execRefused: { file: number; full: number; long: number; unknown: number }

    misses left out of the memo, by reason: a full file, a stub over the length limit, the memo at its entry limit, an executable the registry refused

    fileRemovals: number

    files a sync found gone since they were synced, handed to fileSync as removed

    fileRestoreErrors: string[]

    restoreFiles the kernel refused, with its error

    filesRestored: number

    restoreFiles written back

    fileSyncBytes: number

    the bytes those handed over

    fileSyncs: number

    regular files handed to fileSync by an fsync, a synchronous write, an msync or a sync

    fileSyncsSkipped: number

    syncs of a file with no path to name it by (deleted, or not a regular file), passed through

    filledPages: number

    deferred pages brought in since

    flagReads: number
    forks: number

    forks through __gmux_fork

    freePages: number

    free pages the last checkpoint zeroed instead of saving (kernel patch 0020)

    fuelYields: number

    fuel yields: a user loop giving up the host thread

    guardedExecs: number

    instances of the guarded build (a non-root exec), which are never pooled; part of userExecs

    hostSleeps: number

    sleep calls the pump made: yields every yieldEvery steps and waits for a timer

    idles: number

    idle waits: a cpu with nothing to run parked on its interrupt word

    inflateBytes: number
    inflates: number

    whole deflate streams the host decoded for a program (MachineOptions.inflate), and the bytes it handed back

    instances: number

    wasm instances created, kernel and user

    interpretedStarts: string[]

    executables started on the interpreted tier because an earlier run recorded a miss

    mmuMisses: number

    software-TLB misses in programs built with scripts/wasm/mmu-pass.ts

    netBackpressure: number
    netBorrowed: number

    bytes handed to a reader as the machine's own memory, not copied

    netBytesIn: number
    netBytesOut: number
    netEvents: number
    netOpens: number

    streams opened to the machine's listeners, and the events the relay thread took

    netSends: number

    the relay's sends to the host, the bytes it took from the host, the bytes the guest sent, and the sends the host could not take

    pageFaults: number

    misses that parked a task until the host brought its page in

    prefilled: number

    instances made ahead while the pump idled (prefillInstances)

    pumpSteps: number

    pump steps: one pass of the pump's loop, whether it ran a task or waited

    recycledStarts: number

    execs that took a finished process's instance instead of instantiating

    recycleRefused: {
        asyncify: number;
        checkpointed: number;
        clone: number;
        full: number;
        parked: number;
        unwinding: number;
    }

    finished processes' instances left out of the pool, by reason

    recycleReturns: number

    finished processes' instances kept for the next exec of their program

    reentries: number

    restored programs whose frames resumed again in their own instance (reenterAfterRestore)

    relaxes: number

    cpu_relax calls: a spinning cpu giving up the host thread

    restoreHooks: number

    restores the kernel was told of: crng rekeyed, stall detectors reset (kernel patch 0023)

    routeBuilds: number

    router instances built (userEnv): one per process memory under a shared kernel

    runners: number

    runners created: cpus and kernel tasks

    sharedEntries: number

    processes that joined a shared program instance instead of instantiating

    signals: number

    signal handlers run

    stackSegments: number

    stack segments mapped for split stacks

    statxChains: number
    statxFills: number
    statxFineFills: number

    the fills held on inode counters (kernel patch 0029) and the kernel walks (0036) they cost

    statxHits: number

    statx answered from the host's cache, asked of the kernel for want of an answer, and stored

    statxMismatches: number

    with syscallCache: 'verify': answers the cache held that the kernel then contradicted

    statxMisses: number
    switches: number

    task switches the kernel asked for

    syncWalks: number

    sync and syncfs calls, each a walk of the root filesystem

    syscalls: Record<number, number>

    with countSyscalls: calls by syscall number

    touchedPages: number

    of those, pages the kernel reached for another process first (kernel patch 0021)

    unknownExecutables: string[]

    executables the registry did not hold, by hash and size

    userCopies: number

    host crossings into a fork child's own memory, and the bytes they moved

    userCopyBytes: number
    userExecs: number

    entries into user programs: execs and new threads

    userStringBytes: number
    userStrings: number

    strings read from it in one crossing each (the kernel's strncpy_from_user and strnlen_user), and the bytes copied

    userTouches: number

    the kernel's reaches into another process's pages (wasm_user_touch)

    writeHooks: number

    write-class calls the hook took, and the F_GETFL reads it made for them