Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9aebbb224b | ||
|
|
553ca9163d | ||
|
|
c02fed140f | ||
|
|
51940f49d0 | ||
|
|
c535252907 | ||
|
|
aaf349946f | ||
|
|
2da746c01c | ||
|
|
8b8e8e1405 | ||
|
|
3223fac2a0 |
@@ -74,3 +74,4 @@ tools/kconfig/.qconf.*
|
||||
# tools/capsule-reserved.txt (human-authored) and tools/patches/ (decision
|
||||
# record) are NOT ignored — those are tracked deliberately.
|
||||
/tools/capsule-claims.txt
|
||||
__pycache__/
|
||||
|
||||
+387
-6
File diff suppressed because it is too large
Load Diff
+4
-2
@@ -458,7 +458,8 @@ LOADER_SRCS_BASE := \
|
||||
$(KERNEL_SRC)/heartbeat.c \
|
||||
$(KERNEL_SRC)/homeblocks_sig.c \
|
||||
$(KERNEL_SRC)/artemis_sig.c \
|
||||
$(KERNEL_SRC)/log_region.c
|
||||
$(KERNEL_SRC)/log_region.c \
|
||||
$(KERNEL_SRC)/doe_region.c
|
||||
|
||||
LOADER_ASM := \
|
||||
$(KERNEL_SRC)/arch/$(ARCH)/boot.S \
|
||||
@@ -516,7 +517,8 @@ KERNEL_SRCS_BASE := \
|
||||
$(KERNEL_SRC)/heartbeat.c \
|
||||
$(KERNEL_SRC)/homeblocks_sig.c \
|
||||
$(KERNEL_SRC)/artemis_sig.c \
|
||||
$(KERNEL_SRC)/log_region.c
|
||||
$(KERNEL_SRC)/log_region.c \
|
||||
$(KERNEL_SRC)/doe_region.c
|
||||
|
||||
KERNEL_ASM := $(wildcard $(KERNEL_SRC)/arch/$(ARCH)/*.S)
|
||||
|
||||
|
||||
+18
-15
@@ -1,5 +1,5 @@
|
||||
# Capsule Block Manifest — Auto-generated
|
||||
<!-- Generated by mkcapsule --manifest 2026-09-16T19:45:24Z -->
|
||||
<!-- Generated by mkcapsule --manifest 2026-09-17T23:29:17Z -->
|
||||
<!-- DO NOT EDIT — re-run mkcapsule --manifest to refresh. -->
|
||||
<!-- Hand-written justifications and immutability notes live -->
|
||||
<!-- in MANIFEST.md alongside this auto-generated index. -->
|
||||
@@ -27,7 +27,8 @@
|
||||
| `init-l8-volatile.4th` | 4810, 4811, 4812, 4813 | `0x98caabbbd92abac4` | yes |
|
||||
| `init.4th` | 2049, 2050, 2057 | `0x1ef4939ed32ec1e6` | yes |
|
||||
| `lib.4th` | 4050 | `0x4b216635c359ef73` | yes |
|
||||
| `multiuser-doe.4th` | 5044, 5045, 5046, 5047, 5048, 5049, 5050, 5051, 5052, 5053, 5054, 5055 | `0x22140588ee7c39e6` | yes |
|
||||
| `multiuser-doe.4th` | 5044, 5045, 5046, 5047, 5048, 5049, 5050, 5051, 5052, 5053, 5054, 5055 | `0xb4f6f0c2c582a4d4` | yes |
|
||||
| `per-isa-doe.4th` | 5117, 5119 | `0x73f21c35b683e295` | yes |
|
||||
| `process.4th` | 4300, 4301 | `0x781afc1dbd0294f7` | yes |
|
||||
| `sdk.4th` | 5109, 5110, 5111, 5112, 5113, 5114, 5115 | `0x008fdbbb62c94a3a` | yes |
|
||||
| `turtle.4th` | 5100, 5101, 5102, 5103, 5104, 5105, 5106, 5107, 5108 | `0x4d470418ca543365` | yes |
|
||||
@@ -376,18 +377,18 @@
|
||||
| 5041 | `common:messaging.4th` | `0x201cfd6d39fcb22d` | ok |
|
||||
| 5042 | `common:messaging.4th` | `0x201cfd6d39fcb22d` | ok |
|
||||
| 5043 | `workload-calib1.4th` | `0x3b9f2d17b554fabc` | ok |
|
||||
| 5044 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5045 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5046 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5047 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5048 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5049 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5050 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5051 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5052 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5053 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5054 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5055 | `multiuser-doe.4th` | `0x22140588ee7c39e6` | ok |
|
||||
| 5044 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5045 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5046 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5047 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5048 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5049 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5050 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5051 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5052 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5053 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5054 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5055 | `multiuser-doe.4th` | `0xb4f6f0c2c582a4d4` | ok |
|
||||
| 5056 | `workload-5-lite.4th` | `0xea0303f38824f254` | ok |
|
||||
| 5057 | `workload-5-lite.4th` | `0xea0303f38824f254` | ok |
|
||||
| 5058 | `workload-1-lite.4th` | `0x44a7a7e3176dcc8d` | ok |
|
||||
@@ -409,10 +410,12 @@
|
||||
| 5114 | `sdk.4th` | `0x008fdbbb62c94a3a` | ok |
|
||||
| 5115 | `sdk.4th` | `0x008fdbbb62c94a3a` | ok |
|
||||
| 5116 | `hermes:init.4th` | `0x2df61924448a6812` | ok |
|
||||
| 5117 | `per-isa-doe.4th` | `0x73f21c35b683e295` | ok |
|
||||
| 5119 | `per-isa-doe.4th` | `0x73f21c35b683e295` | ok |
|
||||
|
||||
## Conflicts
|
||||
|
||||
None.
|
||||
|
||||
---
|
||||
*39 capsule(s) scanned. Re-run `mkcapsule --manifest <dir>` to refresh.*
|
||||
*40 capsule(s) scanned. Re-run `mkcapsule --manifest <dir>` to refresh.*
|
||||
|
||||
@@ -84,6 +84,10 @@ CREATE MU-RUN-MATRIX MU-MAX-RUNS CELLS ALLOT
|
||||
: MU-MATRIX@ ( idx -- val ) CELLS MU-RUN-MATRIX + @ ;
|
||||
VARIABLE MU-N-RUNS
|
||||
: MU-INIT-MATRIX ( -- ) MU-N-RUNS @ 0 DO I I MU-MATRIX! LOOP ;
|
||||
CREATE MU-ISA-TAG-BUF 16 ALLOT VARIABLE MU-ISA-TAG-LEN
|
||||
: MU-ISA-TAG! ( c-addr u -- )
|
||||
16 MIN DUP MU-ISA-TAG-LEN !
|
||||
MU-ISA-TAG-BUF SWAP CMOVE ;
|
||||
|
||||
Block 5050
|
||||
VARIABLE MU-SW-I VARIABLE MU-SW-J
|
||||
@@ -105,12 +109,16 @@ VARIABLE MU-RUN-ID VARIABLE MU-CFG
|
||||
VARIABLE MU-REP VARIABLE MU-NW
|
||||
VARIABLE MU-MODE VARIABLE MU-NREPS
|
||||
: MU-EMIT-TRIAL-MARKER ( -- )
|
||||
." MU-TRIAL run=" MU-RUN-ID @ .
|
||||
." MU-TRIAL isa=" MU-ISA-TAG-BUF MU-ISA-TAG-LEN @ TYPE
|
||||
." run=" MU-RUN-ID @ .
|
||||
." cfg=" MU-CFG @ .
|
||||
." rep=" MU-REP @ .
|
||||
." nw=" MU-NW @ .
|
||||
." mode=" MU-MODE @ .
|
||||
." fail=" MU-FAIL-COUNT @ . CR ;
|
||||
." fail=" MU-FAIL-COUNT @ . CR
|
||||
MU-RUN-ID @ MU-CFG @ MU-REP @ MU-NW @
|
||||
MU-MODE @ MU-FAIL-COUNT @
|
||||
MU-ISA-TAG-BUF MU-ISA-TAG-LEN @ DOE-PERSIST-TRIAL ;
|
||||
|
||||
Block 5052
|
||||
: MU-BIRTH-ALL ( -- )
|
||||
@@ -153,14 +161,15 @@ Block 5054
|
||||
MU-RUN-ID @ 1+ MU-RUN-ID ! ;
|
||||
|
||||
Block 5055
|
||||
: MU-EXEC-CAMPAIGN ( seed n-reps -- )
|
||||
: MU-EXEC-CAMPAIGN ( seed n-reps start-idx -- )
|
||||
>R
|
||||
DUP MU-NREPS !
|
||||
MU-N-CFG * MU-N-RUNS !
|
||||
SEED
|
||||
MU-INIT-MATRIX MU-SHUFFLE
|
||||
HB-ON
|
||||
0 MU-RUN-ID !
|
||||
MU-N-RUNS @ 0 DO
|
||||
R@ MU-RUN-ID !
|
||||
MU-N-RUNS @ R> DO
|
||||
I MU-CAMPAIGN-STEP
|
||||
LOOP
|
||||
HB-OFF
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
Block 5117
|
||||
( per-isa-doe.4th - per-ISA DoE driver. FABRIC-3 SXXXIV.4/ )
|
||||
( SXXXV.5/.7: 6-cell factorial from multiuser-doe.4th's own )
|
||||
( MU-EXEC-CAMPAIGN, unchanged. Adds: one fixed seed per ISA, )
|
||||
( N=3 reps/cell=18 trials/ISA (ratified 2026-09-17, not the )
|
||||
( N=2 SXXXV.5 recommended). Load multiuser-doe.4th FIRST. )
|
||||
20260917 CONSTANT AMD64-SEED
|
||||
20260918 CONSTANT AARCH64-SEED
|
||||
20260919 CONSTANT RISCV64-SEED
|
||||
18 CONSTANT PER-ISA-NREPS
|
||||
|
||||
Block 5119
|
||||
( Per-ISA entry points, single word, no args -- run ONE per )
|
||||
( boot (one-QEMU-at-a-time). Uses MU-ISA-TAG! (multiuser-doe. )
|
||||
( 4th) -- redefining MU-EMIT-TRIAL-MARKER here never worked, )
|
||||
( see FABRIC-3.md SXXXV.12 for why. )
|
||||
: RUN-AMD64-CAMPAIGN ( -- )
|
||||
S" amd64" MU-ISA-TAG!
|
||||
AMD64-SEED PER-ISA-NREPS
|
||||
S" amd64" DOE-RESUME-COUNT MU-EXEC-CAMPAIGN ;
|
||||
: RUN-AARCH64-CAMPAIGN ( -- )
|
||||
S" aarch64" MU-ISA-TAG!
|
||||
AARCH64-SEED PER-ISA-NREPS
|
||||
S" aarch64" DOE-RESUME-COUNT MU-EXEC-CAMPAIGN ;
|
||||
: RUN-RISCV64-CAMPAIGN ( -- )
|
||||
S" riscv64" MU-ISA-TAG!
|
||||
RISCV64-SEED PER-ISA-NREPS
|
||||
S" riscv64" DOE-RESUME-COUNT MU-EXEC-CAMPAIGN ;
|
||||
+28
-3
@@ -18,9 +18,21 @@ VM's `--disk-img=` flag instead.
|
||||
ratified building a brand-new blank image and re-minting Zuse + all
|
||||
thumbdrive identities fresh against it, since re-minting invalidates the
|
||||
prior identities regardless of whether a migration is attempted. Blank
|
||||
(all zero) at creation, same as every other fresh-format fixture below —
|
||||
not yet formatted or re-minted; that is a separate, later live-boot step.
|
||||
The superseded 30 MiB image is preserved, not deleted, as
|
||||
(all zero) at creation, same as every other fresh-format fixture below.
|
||||
**Formatted and re-minted live, same day**: booted amd64 with Zuse's
|
||||
(freshly bleached) thumbdrive attached at launch — `Artemis: blank disk --
|
||||
formatting` confirmed the fresh format, `Zuse: genesis minted onto
|
||||
attached thumbdrive` confirmed her genesis mint (root CA — her
|
||||
`zuse_pubkey` — written to this image's own devblock 0, per
|
||||
`capsule_zuse_boot.c`'s `genesis_marker_read()`/`install_and_activate()`),
|
||||
and the `zuse@Hera ok>` prompt confirmed her session authenticated. The
|
||||
other 8 identities (`bob`, `00`–`06`) were then minted one at a time via
|
||||
QMP-driven xHCI hotplug (`drive_add`/`device_add` per drive, `MINT` or a
|
||||
`MINT-NUM` helper word at the live console, `device_del`/`drive_del` to
|
||||
detach before the next) — all 9 `MINT: identity minted` confirmations
|
||||
present in `logs/20260917-114652/amd64/qemu-amd64-20260917-114652.log`,
|
||||
clean `BYE` shutdown, no leaked qemu/socat processes. The superseded
|
||||
30 MiB image is preserved, not deleted, as
|
||||
`artemis-30mb-pre-1gib-backup.img` (below).
|
||||
- `artemis-30mb-pre-1gib-backup.img` — the pre-2026-09-17 `artemis.img`
|
||||
(30 MiB), preserved rather than deleted when `artemis.img` was rebuilt
|
||||
@@ -123,6 +135,19 @@ carrying timestamp noise in git history.
|
||||
default via zeroed former padding, not corruption) rather than crashing
|
||||
or misreading adjacent fields.
|
||||
|
||||
- `thumbdrives/` — the 9 **real** identity thumbdrive images (`zuse-thumb-
|
||||
ident.img`, `bob-thumb-ident.img`, `00-thumb-ident.img`–`06-thumb-
|
||||
ident.img`), 64 MiB each, minted via the actual kernel `MINT` word (not
|
||||
blank placeholders). **Bleached and re-minted fresh, 2026-09-17**
|
||||
(FABRIC-3.md §XXXV.6/§XXXV.8): required alongside the `artemis.img`
|
||||
rebuild above, since Zuse's own genesis marker lives on `artemis.img`,
|
||||
not on any thumbdrive — with that marker gone, none of these 9 images'
|
||||
prior certs could authenticate against the new disk regardless of their
|
||||
own on-drive content, and `capsule_mint_identity()` refuses to mint over
|
||||
an already-recognized drive, so all 9 had to be blanked first. Same
|
||||
verification convention as the original 2026-09-06 mint
|
||||
(`project_thumbdrive_identities_minted_20260906.md`): nonzero-byte count
|
||||
in each image's first 6 devblocks confirms real identity data present.
|
||||
- `zuse.img` — 64MB raw image simulating the physical Zuse superuser
|
||||
thumbdrive for QEMU testing (FABRIC-2.md, Phase 8: `zuse.img` "bleach"
|
||||
mechanism, added 2026-08-26). **64MB is only this fixture's size, not a
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,285 @@
|
||||
#!/usr/bin/env Rscript
|
||||
# analyse_multiuser_doe.R
|
||||
# StarForth LithosAnanke — Multiuser/Multitasking DoE Analysis
|
||||
#
|
||||
# Analyses trial-summary records from the multiuser/multitasking campaign
|
||||
# (multiuser-doe.4th / per-isa-doe.4th, FABRIC-3.md §XXXIII/§XXXV) -- one
|
||||
# row per completed trial: concurrency level (nw: 2/4/8) x mode (0=uniform,
|
||||
# 1=heterogeneous), fail count, and trial-end fleet physics (fleet_k_q48,
|
||||
# fleet_conserved, switch_count_cumulative).
|
||||
#
|
||||
# Unlike analyse_multirep.R/analyse_bare_metal.R (which analyse dense
|
||||
# per-tick HB-ON streams from a fixed manifest of completed runs), this
|
||||
# script auto-discovers whatever CSV(s) are present and is designed to be
|
||||
# re-run repeatedly WHILE a campaign is still in progress -- it degrades
|
||||
# gracefully to a "no data yet" placeholder rather than erroring when a
|
||||
# campaign has produced 0 trials so far, and re-summarises from scratch
|
||||
# each run against however many trials currently exist. Input format is
|
||||
# extract_doe_region.py's own CSV schema, or (for smoke-testing this
|
||||
# pipeline before real campaign data exists) any CSV in this shape.
|
||||
|
||||
suppressPackageStartupMessages({
|
||||
library(ggplot2)
|
||||
library(svglite)
|
||||
library(dplyr)
|
||||
library(scales)
|
||||
})
|
||||
|
||||
# sys.frames()[[1]]$ofile is unreliable depending on how Rscript was
|
||||
# invoked (silently falls back to getwd(), which is wrong whenever this
|
||||
# is called from a different working directory -- e.g. an orchestration
|
||||
# script that cd's to the repo root first). commandArgs()'s "--file="
|
||||
# entry is the robust Rscript idiom and is what's used here.
|
||||
get_script_dir <- function() {
|
||||
raw_args <- commandArgs(trailingOnly = FALSE)
|
||||
file_arg <- grep("^--file=", raw_args, value = TRUE)
|
||||
if (length(file_arg) == 1) {
|
||||
return(dirname(normalizePath(sub("^--file=", "", file_arg))))
|
||||
}
|
||||
tryCatch(dirname(normalizePath(sys.frames()[[1]]$ofile)), error = function(e) getwd())
|
||||
}
|
||||
SCRIPT_DIR <- get_script_dir()
|
||||
BASE_DIR <- normalizePath(file.path(SCRIPT_DIR, ".."))
|
||||
OUT_CHARTS <- file.path(SCRIPT_DIR, "charts")
|
||||
OUT_TABLES <- file.path(SCRIPT_DIR, "tables")
|
||||
OUT_SECTION <- file.path(SCRIPT_DIR, "report", "sections", "multiuser_summary_autogen.tex")
|
||||
dir.create(OUT_CHARTS, showWarnings = FALSE, recursive = TRUE)
|
||||
dir.create(OUT_TABLES, showWarnings = FALSE, recursive = TRUE)
|
||||
dir.create(dirname(OUT_SECTION), showWarnings = FALSE, recursive = TRUE)
|
||||
|
||||
# LaTeX-escape a plain string for safe \newcommand/text use.
|
||||
tex_escape <- function(s) {
|
||||
s <- gsub("\\\\", "\\\\textbackslash{}", s)
|
||||
s <- gsub("([%&_#{}$])", "\\\\\\1", s)
|
||||
s
|
||||
}
|
||||
|
||||
write_tex_fragment <- function(lines) {
|
||||
writeLines(lines, OUT_SECTION)
|
||||
cat(sprintf(" Saved: %s\n", OUT_SECTION))
|
||||
}
|
||||
|
||||
# ── input: first CLI arg is a CSV path, or a directory to scan; default
|
||||
# is the extractor's own conventional output location ──────────────────
|
||||
args <- commandArgs(trailingOnly = TRUE)
|
||||
input_arg <- if (length(args) >= 1) args[1] else file.path(BASE_DIR, "runs", "multiuser-doe-trials.csv")
|
||||
|
||||
cat("══════════════════════════════════════════════════════════════════\n")
|
||||
cat(" StarForth LithosAnanke — Multiuser/Multitasking DoE Analysis\n")
|
||||
cat("══════════════════════════════════════════════════════════════════\n\n")
|
||||
|
||||
load_trials <- function(path) {
|
||||
if (dir.exists(path)) {
|
||||
files <- list.files(path, pattern = "\\.csv$", full.names = TRUE)
|
||||
if (length(files) == 0) return(NULL)
|
||||
dfs <- lapply(files, function(f) tryCatch(read.csv(f, stringsAsFactors = FALSE), error = function(e) NULL))
|
||||
dfs <- dfs[!sapply(dfs, is.null)]
|
||||
dfs <- dfs[sapply(dfs, function(d) all(c("cfg","nw","mode","fail_count") %in% names(d)))]
|
||||
if (length(dfs) == 0) return(NULL)
|
||||
bind_rows(dfs)
|
||||
} else if (file.exists(path)) {
|
||||
df <- read.csv(path, stringsAsFactors = FALSE)
|
||||
if (!all(c("cfg","nw","mode","fail_count") %in% names(df))) return(NULL)
|
||||
df
|
||||
} else {
|
||||
NULL
|
||||
}
|
||||
}
|
||||
|
||||
df <- load_trials(input_arg)
|
||||
n_trials <- if (is.null(df)) 0 else nrow(df)
|
||||
cat(sprintf(" Input: %s\n Trials found: %d\n\n", input_arg, n_trials))
|
||||
|
||||
Q48 <- 65536.0
|
||||
|
||||
write_placeholder <- function(reason) {
|
||||
cat(sprintf(" %s -- writing placeholder tables/charts so the report build\n", reason))
|
||||
cat(" still completes (this pipeline is meant to be re-run while the\n")
|
||||
cat(" campaign is still in progress).\n\n")
|
||||
|
||||
placeholder_tbl <- data.frame(status = reason, trials_so_far = n_trials)
|
||||
write.csv(placeholder_tbl, file.path(OUT_TABLES, "multiuser_status.csv"), row.names = FALSE)
|
||||
|
||||
p <- ggplot() +
|
||||
annotate("text", x = 0, y = 0, label = paste0(reason, "\n(", n_trials, " trials so far)"),
|
||||
size = 6, colour = "grey40") +
|
||||
theme_void()
|
||||
svglite(file.path(OUT_CHARTS, "multiuser_placeholder.svg"), width = 8, height = 4)
|
||||
print(p)
|
||||
dev.off()
|
||||
cat(" Saved: multiuser_placeholder.svg\n\n")
|
||||
}
|
||||
|
||||
if (n_trials == 0) {
|
||||
write_placeholder("No trials persisted yet")
|
||||
write_tex_fragment(c(
|
||||
"% Auto-generated by analyse_multiuser_doe.R -- do not edit by hand.",
|
||||
"No trial data has been persisted to the DoE region yet. This section",
|
||||
"will populate automatically the next time this report is built after",
|
||||
"the campaign has produced at least one completed trial."
|
||||
))
|
||||
quit(save = "no", status = 0)
|
||||
}
|
||||
|
||||
# ── normalise / label factors ────────────────────────────────────────────
|
||||
df$nw <- factor(df$nw, levels = c(2, 4, 8))
|
||||
df$mode <- factor(df$mode, levels = c(0, 1), labels = c("uniform", "heterogeneous"))
|
||||
df$cfg <- factor(df$cfg)
|
||||
if (!"isa" %in% names(df) || all(df$isa == "" | is.na(df$isa))) df$isa <- "amd64"
|
||||
df$isa <- factor(df$isa, levels = intersect(c("amd64","aarch64","riscv64"), unique(df$isa)))
|
||||
df$fleet_k <- df$fleet_k_q48 / Q48
|
||||
|
||||
# ── 1. Per-cfg summary ───────────────────────────────────────────────────
|
||||
cat("Computing per-cfg summary (concurrency x mode)...\n")
|
||||
cfg_tbl <- df %>%
|
||||
group_by(nw, mode) %>%
|
||||
summarise(
|
||||
n_trials = n(),
|
||||
n_fail = sum(fail_count > 0),
|
||||
fail_rate = mean(fail_count > 0),
|
||||
mean_fail_count = mean(fail_count),
|
||||
mean_fleet_k = mean(fleet_k, na.rm = TRUE),
|
||||
pct_conserved = mean(fleet_conserved == 1, na.rm = TRUE),
|
||||
mean_switch_cnt = mean(switch_count_cumulative, na.rm = TRUE),
|
||||
.groups = "drop"
|
||||
)
|
||||
write.csv(cfg_tbl, file.path(OUT_TABLES, "multiuser_cell_summary.csv"), row.names = FALSE)
|
||||
cat(" Saved: multiuser_cell_summary.csv\n")
|
||||
print(as.data.frame(cfg_tbl))
|
||||
cat("\n")
|
||||
|
||||
# ── 2. Per-ISA summary (only meaningful once >1 ISA present) ────────────
|
||||
if (nlevels(df$isa) > 1) {
|
||||
cat("Computing per-ISA summary...\n")
|
||||
isa_tbl <- df %>%
|
||||
group_by(isa) %>%
|
||||
summarise(
|
||||
n_trials = n(),
|
||||
fail_rate = mean(fail_count > 0),
|
||||
mean_fleet_k = mean(fleet_k, na.rm = TRUE),
|
||||
.groups = "drop"
|
||||
)
|
||||
write.csv(isa_tbl, file.path(OUT_TABLES, "multiuser_isa_summary.csv"), row.names = FALSE)
|
||||
cat(" Saved: multiuser_isa_summary.csv\n\n")
|
||||
}
|
||||
|
||||
# ── colour theme (house style, matches analyse_multirep.R) ──────────────
|
||||
theme_light_report <- function() {
|
||||
theme_minimal(base_size = 11) %+replace%
|
||||
theme(
|
||||
panel.grid.minor = element_blank(),
|
||||
panel.grid.major = element_line(colour = "grey90"),
|
||||
strip.text = element_text(face = "bold"),
|
||||
plot.title = element_text(face = "bold", size = 12),
|
||||
plot.subtitle = element_text(colour = "grey40", size = 9),
|
||||
legend.position = "bottom"
|
||||
)
|
||||
}
|
||||
|
||||
save_svg <- function(plot, name, w = 10, h = 6) {
|
||||
path <- file.path(OUT_CHARTS, paste0(name, ".svg"))
|
||||
svglite(path, width = w, height = h)
|
||||
print(plot)
|
||||
dev.off()
|
||||
cat(sprintf(" Saved: %s.svg\n", name))
|
||||
invisible(path)
|
||||
}
|
||||
|
||||
cat("Generating charts...\n\n")
|
||||
|
||||
# ── CHART MU-1: fail rate by concurrency x mode ──────────────────────────
|
||||
cat("[MU-1] Fail rate by concurrency x mode...\n")
|
||||
p_fail <- ggplot(cfg_tbl, aes(x = nw, y = fail_rate, fill = mode)) +
|
||||
geom_col(position = "dodge", alpha = 0.85) +
|
||||
geom_text(aes(label = sprintf("%d/%d", n_fail, n_trials)),
|
||||
position = position_dodge(width = 0.9), vjust = -0.4, size = 3) +
|
||||
scale_y_continuous(labels = percent_format(accuracy = 1), limits = c(0, NA)) +
|
||||
scale_fill_manual(values = c(uniform = "#4A90D9", heterogeneous = "#E07B39")) +
|
||||
labs(
|
||||
title = "Trial Fail Rate by Concurrency Level x Workload Mode",
|
||||
subtitle = paste0(n_trials, " trials"),
|
||||
x = "Concurrent workers",
|
||||
y = "Fraction of trials with fail_count > 0"
|
||||
) +
|
||||
theme_light_report()
|
||||
save_svg(p_fail, "multiuser_fail_rate", w = 8, h = 6)
|
||||
|
||||
# ── CHART MU-2: switch_count_cumulative distribution by concurrency ─────
|
||||
cat("[MU-2] Switch count by concurrency...\n")
|
||||
p_switch <- ggplot(df, aes(x = nw, y = switch_count_cumulative, fill = nw)) +
|
||||
geom_boxplot(alpha = 0.8, outlier.alpha = 0.4) +
|
||||
scale_fill_manual(values = c("2" = "#50C878", "4" = "#4A90D9", "8" = "#E07B39"), guide = "none") +
|
||||
labs(
|
||||
title = "Cumulative Preemptive Switch Count by Concurrency Level",
|
||||
subtitle = "Stage-3 switch signal count at trial end, by number of concurrent workers",
|
||||
x = "Concurrent workers",
|
||||
y = "switch_count_cumulative"
|
||||
) +
|
||||
theme_light_report()
|
||||
save_svg(p_switch, "multiuser_switch_count", w = 8, h = 6)
|
||||
|
||||
# ── CHART MU-3: fleet_k_q48 (conservation) across trials in run order ───
|
||||
cat("[MU-3] Fleet K conservation across trial sequence...\n")
|
||||
df_seq <- df %>% arrange(run_id)
|
||||
p_fleetk <- ggplot(df_seq, aes(x = run_id, y = fleet_k, colour = mode)) +
|
||||
geom_point(alpha = 0.6, size = 1.5) +
|
||||
geom_hline(yintercept = 1.0, colour = "grey50", linetype = "dashed") +
|
||||
scale_colour_manual(values = c(uniform = "#4A90D9", heterogeneous = "#E07B39")) +
|
||||
labs(
|
||||
title = "Fleet Heat Conservation (K) Across the Trial Sequence",
|
||||
subtitle = "Dashed line = Q48.16 conserved value (1.0); trial-end reads, shuffled run order",
|
||||
x = "Run id (shuffled trial index)",
|
||||
y = "fleet_k_q48 / 65536"
|
||||
) +
|
||||
theme_light_report()
|
||||
save_svg(p_fleetk, "multiuser_fleet_k_sequence", w = 10, h = 6)
|
||||
|
||||
# ── CHART MU-4: per-ISA panel (only when >1 ISA present) ─────────────────
|
||||
if (nlevels(df$isa) > 1) {
|
||||
cat("[MU-4] Per-ISA fail rate panel...\n")
|
||||
p_isa <- ggplot(df %>% group_by(isa, nw, mode) %>%
|
||||
summarise(fail_rate = mean(fail_count > 0), .groups = "drop"),
|
||||
aes(x = nw, y = fail_rate, fill = mode)) +
|
||||
geom_col(position = "dodge", alpha = 0.85) +
|
||||
scale_y_continuous(labels = percent_format(accuracy = 1), limits = c(0, NA)) +
|
||||
scale_fill_manual(values = c(uniform = "#4A90D9", heterogeneous = "#E07B39")) +
|
||||
facet_wrap(~ isa, ncol = 3) +
|
||||
labs(
|
||||
title = "Fail Rate by Concurrency x Mode, per ISA",
|
||||
x = "Concurrent workers",
|
||||
y = "Fraction of trials with fail_count > 0"
|
||||
) +
|
||||
theme_light_report()
|
||||
save_svg(p_isa, "multiuser_isa_panel", w = 12, h = 5)
|
||||
}
|
||||
|
||||
# ── summary ───────────────────────────────────────────────────────────────
|
||||
cat(sprintf("\n══════════════════════════════════════════════════════════════════\n"))
|
||||
cat(sprintf(" Multiuser DoE analysis complete. %d trials, %d cfg cells.\n",
|
||||
n_trials, nrow(cfg_tbl)))
|
||||
cat(sprintf("══════════════════════════════════════════════════════════════════\n\n"))
|
||||
|
||||
overall_fail_rate <- mean(df$fail_count > 0)
|
||||
overall_conserved <- mean(df$fleet_conserved == 1, na.rm = TRUE)
|
||||
cat(sprintf(" Overall fail rate: %.2f%%\n", overall_fail_rate * 100))
|
||||
cat(sprintf(" Fraction of trials conserved (fleet_conserved==1): %.2f%%\n", overall_conserved * 100))
|
||||
|
||||
# ── auto-generated LaTeX summary fragment (re-written every run) ────────
|
||||
isa_list <- paste(levels(df$isa), collapse = ", ")
|
||||
cell_lines <- apply(cfg_tbl, 1, function(r) {
|
||||
sprintf(" \\item %s workers, %s: %s trials, fail rate %.1f\\%%, mean fleet K = %.4f",
|
||||
r["nw"], tex_escape(as.character(r["mode"])), r["n_trials"],
|
||||
as.numeric(r["fail_rate"]) * 100, as.numeric(r["mean_fleet_k"]))
|
||||
})
|
||||
write_tex_fragment(c(
|
||||
"% Auto-generated by analyse_multiuser_doe.R -- do not edit by hand.",
|
||||
sprintf("This report reflects \\textbf{%d} completed trial(s) persisted via", n_trials),
|
||||
"\\texttt{DOE-PERSIST-TRIAL} as of the last extraction, spanning ISA(s)",
|
||||
sprintf("\\texttt{%s}. Overall fail rate across all trials so far is", tex_escape(isa_list)),
|
||||
sprintf("\\textbf{%.1f\\%%}; \\textbf{%.1f\\%%} of trials read", overall_fail_rate * 100, overall_conserved * 100),
|
||||
"\\texttt{fleet\\_conserved==1} at trial end.",
|
||||
"",
|
||||
"\\begin{itemize}",
|
||||
cell_lines,
|
||||
"\\end{itemize}"
|
||||
))
|
||||
@@ -0,0 +1,68 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='576.00pt' height='432.00pt' viewBox='0 0 576.00 432.00'>
|
||||
<g class='svglite'>
|
||||
<defs>
|
||||
<style type='text/css'><![CDATA[
|
||||
.svglite line, .svglite polyline, .svglite polygon, .svglite path, .svglite rect, .svglite circle {
|
||||
fill: none;
|
||||
stroke: #000000;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
stroke-miterlimit: 10.00;
|
||||
}
|
||||
.svglite text {
|
||||
white-space: pre;
|
||||
}
|
||||
.svglite g.glyphgroup path {
|
||||
fill: inherit;
|
||||
stroke: none;
|
||||
}
|
||||
]]></style>
|
||||
</defs>
|
||||
<rect width='100%' height='100%' style='stroke: none; fill: #FFFFFF;'/>
|
||||
<defs>
|
||||
<clipPath id='cpMC4wMHw1NzYuMDB8MC4wMHw0MzIuMDA='>
|
||||
<rect x='0.00' y='0.00' width='576.00' height='432.00' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpMC4wMHw1NzYuMDB8MC4wMHw0MzIuMDA=)'>
|
||||
<rect x='0.00' y='0.000000000000057' width='576.00' height='432.00' style='stroke-width: 1.07; stroke: none; fill: #FFFFFF;' />
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id='cpMzguNjR8NTcwLjUyfDI0LjI5fDM2MS45Mg=='>
|
||||
<rect x='38.64' y='24.29' width='531.88' height='337.63' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpMzguNjR8NTcwLjUyfDI0LjI5fDM2MS45Mg==)'>
|
||||
<polyline points='38.64,361.92 570.52,361.92 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='38.64,277.51 570.52,277.51 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='38.64,193.10 570.52,193.10 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='38.64,108.69 570.52,108.69 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='38.64,24.29 570.52,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='183.70,361.92 183.70,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='425.46,361.92 425.46,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<rect x='74.91' y='193.10' width='217.59' height='0.00' style='stroke-width: 1.07; stroke: none; stroke-linecap: butt; stroke-linejoin: miter; fill: #4A90D9; fill-opacity: 0.85;' />
|
||||
<rect x='316.67' y='193.10' width='217.59' height='0.00' style='stroke-width: 1.07; stroke: none; stroke-linecap: butt; stroke-linejoin: miter; fill: #E07B39; fill-opacity: 0.85;' />
|
||||
<text x='183.70' y='190.75' text-anchor='middle' style='font-size: 8.54px; font-family: "Liberation Sans";' textLength='11.88px' lengthAdjust='spacingAndGlyphs'>0/1</text>
|
||||
<text x='425.46' y='190.75' text-anchor='middle' style='font-size: 8.54px; font-family: "Liberation Sans";' textLength='11.88px' lengthAdjust='spacingAndGlyphs'>0/1</text>
|
||||
</g>
|
||||
<g clip-path='url(#cpMC4wMHw1NzYuMDB8MC4wMHw0MzIuMDA=)'>
|
||||
<text x='33.71' y='364.95' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='15.64px' lengthAdjust='spacingAndGlyphs'>-5%</text>
|
||||
<text x='33.71' y='280.54' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='15.64px' lengthAdjust='spacingAndGlyphs'>-2%</text>
|
||||
<text x='33.71' y='196.13' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='12.72px' lengthAdjust='spacingAndGlyphs'>0%</text>
|
||||
<text x='33.71' y='111.72' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='12.72px' lengthAdjust='spacingAndGlyphs'>3%</text>
|
||||
<text x='33.71' y='27.31' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='12.72px' lengthAdjust='spacingAndGlyphs'>5%</text>
|
||||
<text x='183.70' y='372.90' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='4.89px' lengthAdjust='spacingAndGlyphs'>2</text>
|
||||
<text x='425.46' y='372.90' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='4.89px' lengthAdjust='spacingAndGlyphs'>8</text>
|
||||
<text x='304.58' y='385.04' text-anchor='middle' style='font-size: 11.00px; font-family: "Liberation Sans";' textLength='96.00px' lengthAdjust='spacingAndGlyphs'>Concurrent workers</text>
|
||||
<text transform='translate(13.05,193.10) rotate(-90)' text-anchor='middle' style='font-size: 11.00px; font-family: "Liberation Sans";' textLength='169.77px' lengthAdjust='spacingAndGlyphs'>Fraction of trials with fail_count > 0</text>
|
||||
<text x='218.58' y='416.18' style='font-size: 11.00px; font-family: "Liberation Sans";' textLength='27.53px' lengthAdjust='spacingAndGlyphs'>mode</text>
|
||||
<rect x='252.30' y='404.47' width='15.86' height='15.86' style='stroke-width: 1.07; stroke: none; stroke-linecap: butt; stroke-linejoin: miter; fill: #4A90D9; fill-opacity: 0.85;' />
|
||||
<rect x='309.85' y='404.47' width='15.86' height='15.86' style='stroke-width: 1.07; stroke: none; stroke-linecap: butt; stroke-linejoin: miter; fill: #E07B39; fill-opacity: 0.85;' />
|
||||
<text x='274.35' y='415.43' style='font-size: 8.80px; font-family: "Liberation Sans";' textLength='29.31px' lengthAdjust='spacingAndGlyphs'>uniform</text>
|
||||
<text x='331.91' y='415.43' style='font-size: 8.80px; font-family: "Liberation Sans";' textLength='58.67px' lengthAdjust='spacingAndGlyphs'>heterogeneous</text>
|
||||
<text x='304.58' y='23.35' text-anchor='middle' style='font-size: 9.00px;fill: #666666; font-family: "Liberation Sans";' textLength='26.50px' lengthAdjust='spacingAndGlyphs'>2 trials</text>
|
||||
<text x='304.58' y='14.98' text-anchor='middle' style='font-size: 12.00px; font-weight: bold; font-family: "Liberation Sans";' textLength='309.09px' lengthAdjust='spacingAndGlyphs'>Trial Fail Rate by Concurrency Level x Workload Mode</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.7 KiB |
@@ -0,0 +1,73 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='720.00pt' height='432.00pt' viewBox='0 0 720.00 432.00'>
|
||||
<g class='svglite'>
|
||||
<defs>
|
||||
<style type='text/css'><![CDATA[
|
||||
.svglite line, .svglite polyline, .svglite polygon, .svglite path, .svglite rect, .svglite circle {
|
||||
fill: none;
|
||||
stroke: #000000;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
stroke-miterlimit: 10.00;
|
||||
}
|
||||
.svglite text {
|
||||
white-space: pre;
|
||||
}
|
||||
.svglite g.glyphgroup path {
|
||||
fill: inherit;
|
||||
stroke: none;
|
||||
}
|
||||
]]></style>
|
||||
</defs>
|
||||
<rect width='100%' height='100%' style='stroke: none; fill: #FFFFFF;'/>
|
||||
<defs>
|
||||
<clipPath id='cpMC4wMHw3MjAuMDB8MC4wMHw0MzIuMDA='>
|
||||
<rect x='0.00' y='0.00' width='720.00' height='432.00' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpMC4wMHw3MjAuMDB8MC4wMHw0MzIuMDA=)'>
|
||||
<rect x='0.00' y='0.000000000000057' width='720.00' height='432.00' style='stroke-width: 1.07; stroke: none; fill: #FFFFFF;' />
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id='cpNDUuMDB8NzE0LjUyfDI0LjI5fDM2MS45Mg=='>
|
||||
<rect x='45.00' y='24.29' width='669.52' height='337.63' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpNDUuMDB8NzE0LjUyfDI0LjI5fDM2MS45Mg==)'>
|
||||
<polyline points='45.00,361.92 714.52,361.92 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='45.00,277.51 714.52,277.51 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='45.00,193.10 714.52,193.10 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='45.00,108.69 714.52,108.69 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='45.00,24.29 714.52,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='75.43,361.92 75.43,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='227.60,361.92 227.60,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='379.76,361.92 379.76,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='531.92,361.92 531.92,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='684.09,361.92 684.09,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<circle cx='75.43' cy='193.10' r='1.95' style='stroke-width: 0.71; stroke: #4A90D9; stroke-opacity: 0.60; fill: #4A90D9; fill-opacity: 0.60;' />
|
||||
<circle cx='684.09' cy='193.10' r='1.95' style='stroke-width: 0.71; stroke: #E07B39; stroke-opacity: 0.60; fill: #E07B39; fill-opacity: 0.60;' />
|
||||
<line x1='45.00' y1='193.10' x2='714.52' y2='193.10' style='stroke-width: 1.07; stroke: #7F7F7F; stroke-dasharray: 5.69,5.69; stroke-linecap: butt;' />
|
||||
</g>
|
||||
<g clip-path='url(#cpMC4wMHw3MjAuMDB8MC4wMHw0MzIuMDA=)'>
|
||||
<text x='40.07' y='364.95' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='22.00px' lengthAdjust='spacingAndGlyphs'>0.950</text>
|
||||
<text x='40.07' y='280.54' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='22.00px' lengthAdjust='spacingAndGlyphs'>0.975</text>
|
||||
<text x='40.07' y='196.13' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='22.00px' lengthAdjust='spacingAndGlyphs'>1.000</text>
|
||||
<text x='40.07' y='111.72' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='22.00px' lengthAdjust='spacingAndGlyphs'>1.025</text>
|
||||
<text x='40.07' y='27.31' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='22.00px' lengthAdjust='spacingAndGlyphs'>1.050</text>
|
||||
<text x='75.43' y='372.90' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='17.11px' lengthAdjust='spacingAndGlyphs'>0.00</text>
|
||||
<text x='227.60' y='372.90' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='17.11px' lengthAdjust='spacingAndGlyphs'>0.25</text>
|
||||
<text x='379.76' y='372.90' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='17.11px' lengthAdjust='spacingAndGlyphs'>0.50</text>
|
||||
<text x='531.92' y='372.90' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='17.11px' lengthAdjust='spacingAndGlyphs'>0.75</text>
|
||||
<text x='684.09' y='372.90' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='17.11px' lengthAdjust='spacingAndGlyphs'>1.00</text>
|
||||
<text x='379.76' y='385.04' text-anchor='middle' style='font-size: 11.00px; font-family: "Liberation Sans";' textLength='130.70px' lengthAdjust='spacingAndGlyphs'>Run id (shuffled trial index)</text>
|
||||
<text transform='translate(13.05,193.10) rotate(-90)' text-anchor='middle' style='font-size: 11.00px; font-family: "Liberation Sans";' textLength='96.75px' lengthAdjust='spacingAndGlyphs'>fleet_k_q48 / 65536</text>
|
||||
<text x='293.76' y='416.18' style='font-size: 11.00px; font-family: "Liberation Sans";' textLength='27.53px' lengthAdjust='spacingAndGlyphs'>mode</text>
|
||||
<circle cx='335.41' cy='412.40' r='1.95' style='stroke-width: 0.71; stroke: #4A90D9; stroke-opacity: 0.60; fill: #4A90D9; fill-opacity: 0.60;' />
|
||||
<circle cx='392.97' cy='412.40' r='1.95' style='stroke-width: 0.71; stroke: #E07B39; stroke-opacity: 0.60; fill: #E07B39; fill-opacity: 0.60;' />
|
||||
<text x='349.53' y='415.43' style='font-size: 8.80px; font-family: "Liberation Sans";' textLength='29.31px' lengthAdjust='spacingAndGlyphs'>uniform</text>
|
||||
<text x='407.09' y='415.43' style='font-size: 8.80px; font-family: "Liberation Sans";' textLength='58.67px' lengthAdjust='spacingAndGlyphs'>heterogeneous</text>
|
||||
<text x='379.76' y='23.35' text-anchor='middle' style='font-size: 9.00px;fill: #666666; font-family: "Liberation Sans";' textLength='314.09px' lengthAdjust='spacingAndGlyphs'>Dashed line = Q48.16 conserved value (1.0); trial-end reads, shuffled run order</text>
|
||||
<text x='379.76' y='14.98' text-anchor='middle' style='font-size: 12.00px; font-weight: bold; font-family: "Liberation Sans";' textLength='310.25px' lengthAdjust='spacingAndGlyphs'>Fleet Heat Conservation (K) Across the Trial Sequence</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.3 KiB |
@@ -0,0 +1,67 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='576.00pt' height='432.00pt' viewBox='0 0 576.00 432.00'>
|
||||
<g class='svglite'>
|
||||
<defs>
|
||||
<style type='text/css'><![CDATA[
|
||||
.svglite line, .svglite polyline, .svglite polygon, .svglite path, .svglite rect, .svglite circle {
|
||||
fill: none;
|
||||
stroke: #000000;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
stroke-miterlimit: 10.00;
|
||||
}
|
||||
.svglite text {
|
||||
white-space: pre;
|
||||
}
|
||||
.svglite g.glyphgroup path {
|
||||
fill: inherit;
|
||||
stroke: none;
|
||||
}
|
||||
]]></style>
|
||||
</defs>
|
||||
<rect width='100%' height='100%' style='stroke: none; fill: #FFFFFF;'/>
|
||||
<defs>
|
||||
<clipPath id='cpMC4wMHw1NzYuMDB8MC4wMHw0MzIuMDA='>
|
||||
<rect x='0.00' y='0.00' width='576.00' height='432.00' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpMC4wMHw1NzYuMDB8MC4wMHw0MzIuMDA=)'>
|
||||
<rect x='0.00' y='0.000000000000057' width='576.00' height='432.00' style='stroke-width: 1.07; stroke: none; fill: #FFFFFF;' />
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id='cpNDcuOTJ8NTcwLjUyfDI0LjI5fDQwMS4xMg=='>
|
||||
<rect x='47.92' y='24.29' width='522.60' height='376.83' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpNDcuOTJ8NTcwLjUyfDI0LjI5fDQwMS4xMg==)'>
|
||||
<polyline points='47.92,401.12 570.52,401.12 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='47.92,306.91 570.52,306.91 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='47.92,212.70 570.52,212.70 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='47.92,118.49 570.52,118.49 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='47.92,24.29 570.52,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='190.45,401.12 190.45,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<polyline points='427.99,401.12 427.99,24.29 ' style='stroke-width: 1.07; stroke: #E5E5E5; stroke-linecap: butt;' />
|
||||
<line x1='190.45' y1='212.70' x2='190.45' y2='212.70' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<line x1='190.45' y1='212.70' x2='190.45' y2='212.70' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polygon points='101.37,212.70 101.37,212.70 279.53,212.70 279.53,212.70 101.37,212.70 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt; stroke-linejoin: miter; fill: #50C878; fill-opacity: 0.80;' />
|
||||
<line x1='101.37' y1='212.70' x2='279.53' y2='212.70' style='stroke-width: 2.13; stroke: #333333; stroke-linecap: butt; stroke-linejoin: miter;' />
|
||||
<line x1='427.99' y1='212.70' x2='427.99' y2='212.70' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<line x1='427.99' y1='212.70' x2='427.99' y2='212.70' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polygon points='338.91,212.70 338.91,212.70 517.07,212.70 517.07,212.70 338.91,212.70 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt; stroke-linejoin: miter; fill: #E07B39; fill-opacity: 0.80;' />
|
||||
<line x1='338.91' y1='212.70' x2='517.07' y2='212.70' style='stroke-width: 2.13; stroke: #333333; stroke-linecap: butt; stroke-linejoin: miter;' />
|
||||
</g>
|
||||
<g clip-path='url(#cpMC4wMHw1NzYuMDB8MC4wMHw0MzIuMDA=)'>
|
||||
<text x='42.99' y='404.14' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='24.92px' lengthAdjust='spacingAndGlyphs'>-0.050</text>
|
||||
<text x='42.99' y='309.94' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='24.92px' lengthAdjust='spacingAndGlyphs'>-0.025</text>
|
||||
<text x='42.99' y='215.73' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='22.00px' lengthAdjust='spacingAndGlyphs'>0.000</text>
|
||||
<text x='42.99' y='121.52' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='22.00px' lengthAdjust='spacingAndGlyphs'>0.025</text>
|
||||
<text x='42.99' y='27.31' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='22.00px' lengthAdjust='spacingAndGlyphs'>0.050</text>
|
||||
<text x='190.45' y='412.10' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='4.89px' lengthAdjust='spacingAndGlyphs'>2</text>
|
||||
<text x='427.99' y='412.10' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Liberation Sans";' textLength='4.89px' lengthAdjust='spacingAndGlyphs'>8</text>
|
||||
<text x='309.22' y='424.24' text-anchor='middle' style='font-size: 11.00px; font-family: "Liberation Sans";' textLength='96.00px' lengthAdjust='spacingAndGlyphs'>Concurrent workers</text>
|
||||
<text transform='translate(13.05,212.70) rotate(-90)' text-anchor='middle' style='font-size: 11.00px; font-family: "Liberation Sans";' textLength='122.34px' lengthAdjust='spacingAndGlyphs'>switch_count_cumulative</text>
|
||||
<text x='309.22' y='23.35' text-anchor='middle' style='font-size: 9.00px;fill: #666666; font-family: "Liberation Sans";' textLength='290.50px' lengthAdjust='spacingAndGlyphs'>Stage-3 switch signal count at trial end, by number of concurrent workers</text>
|
||||
<text x='309.22' y='14.98' text-anchor='middle' style='font-size: 12.00px; font-weight: bold; font-family: "Liberation Sans";' textLength='341.33px' lengthAdjust='spacingAndGlyphs'>Cumulative Preemptive Switch Count by Concurrency Level</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,148 @@
|
||||
\documentclass[10pt,a4paper]{article}
|
||||
|
||||
%% ── Packages ──────────────────────────────────────────────────────────────────
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[margin=2.5cm]{geometry}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{subcaption}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{xcolor}
|
||||
\usepackage{microtype}
|
||||
\usepackage{parskip}
|
||||
\usepackage{enumitem}
|
||||
\usepackage[hidelinks,colorlinks=true,linkcolor=black,citecolor=black,urlcolor=blue]{hyperref}
|
||||
\usepackage{lmodern}
|
||||
|
||||
%% ── Colour palette (matches bare_metal_doe_report.tex) ─────────────────────────
|
||||
\definecolor{sfblue}{RGB}{31,119,180}
|
||||
\definecolor{sforange}{RGB}{255,127,14}
|
||||
\definecolor{sfgreen}{RGB}{44,160,44}
|
||||
\definecolor{sfgray}{RGB}{80,80,80}
|
||||
|
||||
%% ── Figure path ───────────────────────────────────────────────────────────────
|
||||
\graphicspath{{figures/}}
|
||||
|
||||
%% ── Title metadata ────────────────────────────────────────────────────────────
|
||||
\title{%
|
||||
\textbf{LithosAnanke Multiuser/Multitasking Design of Experiments}\\[0.4em]
|
||||
\large Concurrent Worker VM Load Across Three Instruction-Set Architectures
|
||||
}
|
||||
\author{%
|
||||
R.\,A. James (Captain Bob)\\[0.2em]
|
||||
\small StarForth Project \quad\texttt{robert.allan.james@gmail.com}
|
||||
}
|
||||
\date{%
|
||||
Generated automatically by \texttt{scripts/build\_multiuser\_doe\_report.sh}\\[0.2em]
|
||||
\textnormal{(Patent Pending --- Provisional Filed December 2025)}
|
||||
}
|
||||
|
||||
%% ═════════════════════════════════════════════════════════════════════════════
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
\thispagestyle{empty}
|
||||
|
||||
%% ── Abstract ──────────────────────────────────────────────────────────────────
|
||||
\begin{abstract}
|
||||
\noindent
|
||||
This report analyses the multiuser/multitasking Design of Experiments
|
||||
(FABRIC-3.md \S{}XXXIII/\S{}XXXV): a 6-cell factorial over concurrency level
|
||||
(2, 4, or 8 simultaneously live worker VMs, each birthed and touched twice
|
||||
by the Mama VM Hera) crossed with workload mode (uniform -- every worker
|
||||
runs the same workload; heterogeneous -- worker $n$ runs workload
|
||||
$n \bmod 10$), run per instruction-set architecture with a fixed seed.
|
||||
Trial outcomes -- concurrency, mode, fail count, and trial-end fleet
|
||||
physics (cumulative preemptive switch count, fleet heat conservation) --
|
||||
persist to a dedicated block-backed region on \texttt{disk/artemis.img}
|
||||
(\texttt{DOE-PERSIST-TRIAL}, \S{}XXXV.10) rather than depending on a live
|
||||
serial-log tail, so this report can be rebuilt at any point during a
|
||||
multi-day campaign, including while it is still running, from whatever
|
||||
trials have completed so far.
|
||||
\end{abstract}
|
||||
|
||||
\section{Current campaign status}
|
||||
|
||||
\input{sections/multiuser_summary_autogen.tex}
|
||||
|
||||
\IfFileExists{figures/multiuser_placeholder.pdf}{%
|
||||
\begin{figure}[h]
|
||||
\centering
|
||||
\includegraphics[width=0.6\textwidth]{multiuser_placeholder.pdf}
|
||||
\end{figure}
|
||||
}{}
|
||||
|
||||
\IfFileExists{figures/multiuser_fail_rate.pdf}{%
|
||||
\section{Fail rate by concurrency and workload mode}
|
||||
|
||||
\begin{figure}[h]
|
||||
\centering
|
||||
\includegraphics[width=0.75\textwidth]{multiuser_fail_rate.pdf}
|
||||
\caption{Fraction of trials with \texttt{fail\_count > 0}, by concurrency
|
||||
level (2/4/8 workers) and workload mode. Labels give (failed/total) trials
|
||||
per cell.}
|
||||
\end{figure}
|
||||
}{}
|
||||
|
||||
\IfFileExists{figures/multiuser_switch_count.pdf}{%
|
||||
\clearpage
|
||||
\section{Preemptive switch load}
|
||||
|
||||
\begin{figure}[h]
|
||||
\centering
|
||||
\includegraphics[width=0.75\textwidth]{multiuser_switch_count.pdf}
|
||||
\caption{Distribution of cumulative Stage-3 preemptive switch count at
|
||||
trial end, by concurrency level. Higher concurrency is expected to drive
|
||||
more switch events per trial.}
|
||||
\end{figure}
|
||||
}{}
|
||||
|
||||
\IfFileExists{figures/multiuser_fleet_k_sequence.pdf}{%
|
||||
\section{Fleet heat conservation across the trial sequence}
|
||||
|
||||
\begin{figure}[h]
|
||||
\centering
|
||||
\includegraphics[width=\textwidth]{multiuser_fleet_k_sequence.pdf}
|
||||
\caption{Trial-end fleet heat (\texttt{fleet\_k\_q48}, decoded from
|
||||
Q48.16) across the shuffled trial run order. The dashed line marks the
|
||||
conserved value (1.0); persistent drift away from it across the
|
||||
sequence would indicate a real conservation violation rather than
|
||||
per-trial noise.}
|
||||
\end{figure}
|
||||
}{}
|
||||
|
||||
\IfFileExists{figures/multiuser_isa_panel.pdf}{%
|
||||
\clearpage
|
||||
\section{Per-ISA comparison}
|
||||
\begin{figure}[h]
|
||||
\centering
|
||||
\includegraphics[width=\textwidth]{multiuser_isa_panel.pdf}
|
||||
\caption{Fail rate by concurrency and mode, faceted by ISA -- populated
|
||||
once more than one architecture's trials have been persisted.}
|
||||
\end{figure}
|
||||
}{}
|
||||
|
||||
\section{Methodology notes}
|
||||
|
||||
\begin{itemize}
|
||||
\item \textbf{Persistence, not a serial-log dependency.} Earlier attempts
|
||||
at this campaign relied entirely on a live QEMU serial-log tail and
|
||||
were lost when the process was interrupted (FABRIC-3.md \S{}XXXV.10).
|
||||
Every number in this report comes from \texttt{disk/artemis.img}'s
|
||||
own on-disk DoE region, read directly by
|
||||
\texttt{scripts/extract\_doe\_region.py} with no live QEMU process
|
||||
required.
|
||||
\item \textbf{Rebuildable mid-campaign.} This report's build script
|
||||
(\texttt{scripts/build\_multiuser\_doe\_report.sh}) can be re-run at
|
||||
any point -- including while a multi-day campaign is still executing
|
||||
-- and will reflect however many trials have completed at that moment.
|
||||
\item \textbf{Trial-summary, not per-tick.} Unlike the per-tick
|
||||
\texttt{HB-ON} serial stream (which remains the authoritative live
|
||||
instrumentation during a run), the persisted region stores one summary
|
||||
record per completed trial (\S{}XXXV.4) -- sized to comfortably fit
|
||||
the device budget for the full campaign, not a raw tick mirror.
|
||||
\end{itemize}
|
||||
|
||||
\end{document}
|
||||
@@ -0,0 +1,11 @@
|
||||
% Auto-generated by analyse_multiuser_doe.R -- do not edit by hand.
|
||||
This report reflects \textbf{2} completed trial(s) persisted via
|
||||
\texttt{DOE-PERSIST-TRIAL} as of the last extraction, spanning ISA(s)
|
||||
\texttt{amd64}. Overall fail rate across all trials so far is
|
||||
\textbf{0.0\%}; \textbf{100.0\%} of trials read
|
||||
\texttt{fleet\_conserved==1} at trial end.
|
||||
|
||||
\begin{itemize}
|
||||
\item 2 workers, uniform: 1 trials, fail rate 0.0\%, mean fleet K = 1.0000
|
||||
\item 8 workers, heterogeneous: 1 trials, fail rate 0.0\%, mean fleet K = 1.0000
|
||||
\end{itemize}
|
||||
@@ -0,0 +1,3 @@
|
||||
"nw","mode","n_trials","n_fail","fail_rate","mean_fail_count","mean_fleet_k","pct_conserved","mean_switch_cnt"
|
||||
"2","uniform",1,0,0,0,1,1,0
|
||||
"8","heterogeneous",1,0,0,0,1,1,0
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user