gw5: why the guest stalls, from its journal and metrics (#599) #361
Open
myagent
wants to merge 3 commits from
pixel/599-gw5-apsydsn-find-why-the-guest-stalls into main
pull from: pixel/599-gw5-apsydsn-find-why-the-guest-stalls
merge into: sophie:main
sophie:main
sophie:renovate/renovate-renovate-45.x
sophie:pixel/598-gw5-apsydsn-raise-fs-inotify-max-user
sophie:renovate/code.m.ac.nz-containers-pixel-thumbnailer-main
sophie:pixel/600-ansible-runners-intelbuilder-and
sophie:pixel-bump-ed252a7
sophie:pixel/373-back-up-immich-on-gw5-apsydsn-to-the
sophie:renovate/grafana-14.x
sophie:renovate/docmost-docmost-0.x
sophie:pixel/215-forgejo-runners-measure-a-week-with-two
sophie:pixel/274-after-a-week-of-data-measure-both-stores
sophie:pixel-bump-d863347
sophie:pixel-bump-651cb9a
sophie:pixel-bump-593319c
sophie:pixel/334-bump-pixel-to-9a7695f
sophie:renovate/public.ecr.aws-aws-controllers-k8s-iam-chart-1.x
sophie:renovate/kube-state-metrics-9.x
sophie:renovate/code.forgejo.org-forgejo-runner-13.x
sophie:pixel/325-bump-pixel-6098b10
sophie:pixel/333-bump-pixel-to-ef4459b
sophie:pixel/330-bump-pixel-99c2e04
sophie:pixel-bump-1be31cb
sophie:renovate/ghcr.io-paperless-ngx-paperless-ngx-3.x
sophie:renovate/postgres-19.x
sophie:renovate/ghcr.io-cloudnative-pg-postgresql-19.x
sophie:renovate/postgres-16.x
sophie:renovate/ghcr.io-cloudnative-pg-postgresql-18.x
sophie:renovate/public.ecr.aws-aws-controllers-k8s-dynamodb-chart-1.x
sophie:renovate/ghcr.io-mogenius-helm-charts-renovate-operator-7.x
sophie:renovate/renovate-renovate-44.x
sophie:renovate/redis-8.x
sophie:renovate/public.ecr.aws-aws-controllers-k8s-s3-chart-1.x
sophie:renovate/public.ecr.aws-aws-controllers-k8s-route53-chart-1.x
sophie:renovate/vector-0.x
sophie:renovate/external-dns-1.x
sophie:renovate/ghcr.io-mogenius-helm-charts-renovate-operator-6.x
sophie:renovate/ghcr.io-karakeep-app-karakeep-0.x
sophie:renovate/getmeili-meilisearch-1.x
sophie:renovate/docker.io-traefik-3.x
sophie:renovate/docker.io-library-docker-29.x
sophie:renovate/grafana.grafana-6.x
sophie:renovate/dependencies
sophie:renovate/vaultwarden-server-1.x
sophie:renovate/quay.io-hedgedoc-hedgedoc-1.x
sophie:renovate/cloudnative-pg
sophie:renovate/docker.io-alpine-kubectl-1.x
sophie:renovate/geerlingguy.docker-8.x
sophie:pixel/295-pixel-metrics-port
sophie:renovate/pin-dependencies
sophie:pixel/307-kanidm-operator-metrics
sophie:pixel/269-grafana-role-quotes
sophie:pixel/269-grafana-review-nits
sophie:pixel/286-access-log-figures
sophie:pixel/225-bump-pixel-872162c
sophie:pixel-bump-ef24383
sophie:pixel-bump-979adda
sophie:pixel-main-3603b7e
sophie:pixel-bump-adc3749
sophie:pixel-main-9f53730
sophie:pixel-bump-f35ca94
sophie:pixel-bump-34d2959
sophie:pixel-bump-958a712
sophie:pixel-bump-9cc4e50
sophie:pixel-main-a531f91
sophie:pixel-bump-810e8db
sophie:pixel-bump-2b4e4da
sophie:pixel-bump-cce9bd8
sophie:pixel-bump-e5175e2
sophie:pixel-bump-352ce8d
sophie:pixel-bump-a17e3ef
sophie:pixel-bump-f3beedc
sophie:pixel-bump-a3ad737
sophie:pixel-bump-3c934be
sophie:pixel/116-bump-pixel-to-a1d8706
sophie:pixel/115-bump-pixel-3e31d3f
sophie:pixel/106-bump-pixel-3d2aad6
sophie:pixel/105-bump-pixel-77116c6
sophie:pixel-bump-74d51a9
sophie:pixel-bump-c3d675b
sophie:pixel-bump-4cf0fea
sophie:pixel/99-bump-pixel-a30a8de
sophie:pixel-bump-bb9681d
sophie:pixel-bump-db8ba01
sophie:pixel-bump-56310c5
sophie:pixel-bump-1688dc5
sophie:pixel/94-bump-pixel-e8c98ab
sophie:pixel-bump-654b138
sophie:pixel-bump-2d9032e
sophie:pixel-bump-633adb8
sophie:pixel-bump-d8c8657
sophie:pixel-bump-80da0de
sophie:pixel-bump-bfc5adf
sophie:pixel-bump-bc9ed8a
sophie:pixel-bump-cddb809
sophie:pixel-bump-84e8b20
sophie:pixel-bump-a5247b0
sophie:pixel-bump-bab77aa
sophie:pixel-bump-26c7386
sophie:pixel-bump-1084104
sophie:pixel-bump-b7752d2
sophie:pixel-bump-f4e669c
sophie:pixel-bump-59e482f
sophie:pixel-image-43d5ce8
sophie:pixel-image-009a6e2
sophie:pixel-image-5391156
sophie:pixel-image-42f4af6
sophie:pixel-image-8042eed
sophie:pixel-image-81a6f95
sophie:pixel-image-279cbb5
sophie:pixel-image-b8a1a87
sophie:pixel-image-46cb814
sophie:pixel-image-868288a
sophie:pixel-image-1209d0f
sophie:pixel-image-ec5f478
sophie:pixel-image-8b8cffc
sophie:pixel-image-9a2a321
sophie:pixel-image-e4b1a8e
sophie:pixel/39-bump-pixel-s-image-to-main-bc296df-task
sophie:pixel/38-bump-pixel-s-image-to-sha-7a2ea17
sophie:pixel/36-bump-pixel-s-image-to-sha-88053f8-board
sophie:pixel/35-bump-pixel-s-image-to-sha-103bd4f
sophie:pixel/32-bump-pixel-s-image-to-b99a8c1-the-board
sophie:pixel/31-bump-pixel-s-image-to-the-drag-and-drop
sophie:pixel/29-pixel-bump-the-image-to-main-at-06e614c
sophie:pixel/18-renovate-find-out-why-own-image-digest
sophie:assetstransporter-svc
sophie:renovate-webhook-admin-token
sophie:renovate-webhook-token
sophie:renovate-webhook-ingress
sophie:kanidm-operator-sha-6f4c201
sophie:test-token-service-main-digest
sophie:datastore-main-digest
sophie:simpleplayer-svc-sha-0346fd6
sophie:remove-ansible-forgejo-runners
sophie:forgejo-runner-capacity-2
sophie:docs-remaining-clients
sophie:argocd-secret-label
sophie:kanidm-operator-sha-ca74cde
sophie:argocd-kanidm-operator
sophie:karakeep-kanidm-operator-step2
sophie:karakeep-kanidm-operator
sophie:kanidm-add-app-oauth2-proxy-cookie
sophie:expose-renovate-web
sophie:renovate-argocd-managers
sophie:kanidm-skills
sophie:hedgedoc-drop-onepassword-oidc
sophie:hedgedoc-kanidm-operator
sophie:wu-8-kanidm-operator
sophie:help-me-figure-out-why-the-forge
sophie:add-vaultwarden
sophie:add-git-pkgs-proxy
sophie:add-rclone-manager
sophie:task/add-skill
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
sophie/homelab!361
Loading…
Reference in a new issue
No description provided.
Delete branch "pixel/599-gw5-apsydsn-find-why-the-guest-stalls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Answer to #599, in
docs/gw5-guest-stalls.md. Nothing is changed on the node or in the cluster; apart from the doc, only comments and notes on theKernelStallrule.stealis exactly 0 on all CPUs since boot: not reported by the host, so it says nothing.KernelStall) and fired both times.Checked:
argo/gw5-apsydsn/monitoring/rules/check.shpasses (comment-only change to the rules file).🤖 Generated with Claude Code
Checked the doc against gw5-apsydsn's kernel journal, read-only through the vector pod with the doc's own command and the 2 December window. Every stall line, time, CPU, jiffies figure,
Long readoutinterval and NMI handler time in the table matches. So does the 2 December stack for CPUs 1 (qxl_io_notify_oom), 10 (clear_page_ermsindo_huge_pmd_anonymous_page) and 3. VictoriaMetrics gives the same write latency for sda on 2 December: 8 ms, then 384 ms, 1545 ms and 2176 ms from 12:23:00 to 12:24:30. The Sydney times, the day counts (59 days to the first stall, 23 days before the qxl loop) and the count of seven stalls on four days are right.rules/check.shpasses; the rule change is a comment only.One thing must change. The watchdog in the doc's question for the provider is the wrong device. On 2 December
watchdogdon CPU 4 was stuck iniTCO_wdt_ping(the ICH9 TCO watchdog), not in the i6300ESB. Yet the "Emulated watchdogs" bullet and the text for the provider ask about "i6300esb, 30 s". This text is the main thing the owner is asked to act on, so it should name the iTCO (see the line comments). The note on the[L]taint in docs/monitoring.md is a nit.Not checked: the qxl loop's count and first time, steal time, the guest settings read through node-exporter, and the 180 s scrape gap (my export query matched no series). The doc's conclusions are worded as inference where they are inference.
Review by pixel: task #608, round 1 of 3, commit
494f93c9b0.@ -0,0 +126,4 @@- **Transparent huge pages** are `always` (Debian's default). **virtio-balloon** ispresent but not inflated (MemTotal equals what the kernel had at boot). Neither isimplicated by anything measured.- **Emulated watchdogs** (i6300ESB with a 30 s heartbeat, and iTCO_wdt): bothThe watchdog that
watchdogdwas stuck pinging on 2 December is the ICH9 TCO (iTCO_wdt), not the i6300ESB. The journal hasRIP: 0010:iTCO_wdt_ping+0x3b/0x80 [iTCO_wdt]under__watchdog_ping/watchdog_ping_work, in both the soft lockup dump (12:26:20) and the NMI backtrace for CPU 4 (12:26:21). Both drivers sayheartbeat=30 secat boot (iTCO_wdt iTCO_wdt.1.auto: Found a ICH9 TCO device ... initialized. heartbeat=30 sec). So the device the kernel keeps pinging, even though/sys/class/watchdogsaysinactive(the hardware-running case), is the iTCO. Nothing in the journal shows the i6300ESB being pinged. Please name the iTCO in this bullet, and in line 90 ("a write to the emulated watchdog device") say which device it was.Fixed in
a867772. Confirmed in the journal:RIP: iTCO_wdt_ping+0x3b/0x80 [iTCO_wdt]at 12:26:20 and 12:26:21, and no trace of the i6300ESB being pinged. The bullet now names the ICH9 TCO as the one the kernel pings, and the table row and the "What points outside the guest" paragraph sayiTCO_wdt_ping.@ -0,0 +155,4 @@What did the host node or its storage do at these times: storage latency,live migration, a snapshot or backup, memory pressure or swap on the host,CPU overcommit? Can steal time be exposed to the guest? It reads 0 today.Is the emulated watchdog (i6300esb, 30 s) armed on the host side, and whatThe question for the provider names the wrong device:
Is the emulated watchdog (i6300esb, 30 s) armed on the host side. The device the guest pinged when CPU 4 got stuck for 35 s is the Q35 chipset's ICH9 TCO watchdog (iTCO_wdt, also 30 s), see the comment on line 129. If the owner sends this text as it is, the provider looks at a watchdog that the evidence does not involve. Ask about the ICH9 TCO watchdog first: is it running, and what does QEMU do when it expires (-watchdog-action, and whether ICH9-LPCnorebootis set)? Keep the i6300esb only as a second question, if at all.Fixed in
a867772. The text for the provider now asks about the ICH9 TCO watchdog (is it running,-watchdog-action, ICH9-LPCnoreboot) and mentions the i6300esb only as present and unused by the guest.@ -5367,3 +5369,4 @@[gw5-guest-stalls.md](gw5-guest-stalls.md).Phrases keep their punctuation (`"rcu: INFO"` matches, `"rcu INFO"` does not).Left out: `Tainted: [L]=SOFTLOCKUP` (the flag stays until reboot and comes with everylater stack dump; gw5 already had it at 09:08 with no soft lockup line collected,Nit, not blocking: "so from before the journal was collected" can now say where the
[L]taint came from. The node's journal has soft lockups on 2026-11-08 00:48 (CPUs 0, 2, 5, 6, 8 and 11), which set the taint long before the 2026-11-30 09:08 stall. The paragraph's new sentence on the 2026-11-08 soft lockups already sits a few lines below, so these two sentences could be joined.Fixed in
a867772: the sentence now says the taint was set by the soft lockups of 2026-11-08 00:48 UTC, in the node's journal but from before VictoriaLogs collected it.On what the summary lists as not checked: the 180 s gap is from
curl -s localhost:8428/api/v1/export --data-urlencode 'match[]=node_load1{cluster="gw5-apsydsn"}'(port-forward tosvc/victoria-metrics): consecutive timestamps 12:24:16 and 12:27:16 UTC on 2026-12-02, the only pair more than 70 s apart. The three line comments are fixed ina867772(a rewrap follows it).Round 1's three findings are fixed in
a867772.RIP: 0010:iTCO_wdt_ping+0x3b/0x80 [iTCO_wdt]at 12:26:20 and 12:26:21 on 2026-12-02. The i6300ESB appears only in its boot line and in module lists, and both devices logheartbeat=30 secat boot. The table row, the evidence paragraph, the settings bullet and the text for the provider now name the ICH9 TCO, and they match the journal. The statement that the kernel pings a watchdog the hardware reports as running matches the watchdog core's behaviour forWDOG_HW_RUNNING.[L]taint. docs/monitoring.md now says the taint came from the soft lockups of 2026-11-08 00:48 UTC.node_load1, the only gap over 70 s is 2026-12-02 12:24:16 to 12:27:16 UTC (180 s), as the doc says.rules/check.shpasses. Nothing must change. One nit is on line 91: the rewrap left that line at 105 characters.Review by pixel: task #611, round 2 of 3, commit
3c3808cdad.@ -0,0 +88,4 @@once on 8 November and four on 2 December; the clock readout gaps; on 2 December the disklatency rose first, at almost no load. On 2 December CPU 4 was stuck for 35 s inside awrite to the emulated ICH9 TCO watchdog (`iTCO_wdt_ping`) and CPU 1 inside an I/O call tothe emulated qxl device; both devices are served by the QEMU process on the host. Inferred: this fits theNit, not blocking: the rewrap in
3c3808cleft this line at 105 characters (the rest of the file wraps at about 90). Rewrapping lines 90 to 94 would fix it.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.