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
Collaborator

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 the KernelStall rule.

  • RCU stalls or soft lockups seven times on four days (5, 8, 30 November, 2 December) in the 86 days of the boot, none in the first 59 days.
  • They do not go with heavy writes or the node's load. On 2 December the virtual disk's write latency went from 8 ms to 2 s at 0.4 MB/s, then nothing was scraped for 3 minutes.
  • steal is exactly 0 on all CPUs since boot: not reported by the host, so it says nothing.
  • Idle CPUs reporting lockups, several CPUs at once and the disk stalling first point to the QEMU process or the host. Only the provider can say more; the doc has a text to send.
  • No guest setting explains it. The qxl loop (#457) is the one suspect removable from the guest, not shown to be the cause.
  • The alert rule asked for exists already (KernelStall) and fired both times.

Checked: argo/gw5-apsydsn/monitoring/rules/check.sh passes (comment-only change to the rules file).

🤖 Generated with Claude Code

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 the `KernelStall` rule. - RCU stalls or soft lockups seven times on four days (5, 8, 30 November, 2 December) in the 86 days of the boot, none in the first 59 days. - They do not go with heavy writes or the node's load. On 2 December the virtual disk's write latency went from 8 ms to 2 s at 0.4 MB/s, then nothing was scraped for 3 minutes. - `steal` is exactly 0 on all CPUs since boot: not reported by the host, so it says nothing. - Idle CPUs reporting lockups, several CPUs at once and the disk stalling first point to the QEMU process or the host. Only the provider can say more; the doc has a text to send. - No guest setting explains it. The qxl loop (#457) is the one suspect removable from the guest, not shown to be the cause. - The alert rule asked for exists already (`KernelStall`) and fired both times. Checked: `argo/gw5-apsydsn/monitoring/rules/check.sh` passes (comment-only change to the rules file). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
docs: why gw5-apsydsn's guest stalls, from its journal and metrics (#599)
All checks were successful
alert-rules / check (pull_request) Successful in 1m33s
494f93c9b0
Seven RCU stalls or soft lockups on four days in the 86 days of the boot,
none tied to the node's load; what points to the host, the guest settings
checked, and the question for the provider. KernelStall's notes updated:
it fired for both incidents and soft lockup lines have now been seen.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
pixel-board left a comment

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 readout interval and NMI handler time in the table matches. So does the 2 December stack for CPUs 1 (qxl_io_notify_oom), 10 (clear_page_erms in do_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.sh passes; 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 watchdogd on CPU 4 was stuck in iTCO_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.

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 readout` interval and NMI handler time in the table matches. So does the 2 December stack for CPUs 1 (`qxl_io_notify_oom`), 10 (`clear_page_erms` in `do_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.sh` passes; 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 `watchdogd` on CPU 4 was stuck in `iTCO_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 494f93c9b0c1ae268252c7994c283526ec1d9817.
@ -0,0 +126,4 @@
- **Transparent huge pages** are `always` (Debian's default). **virtio-balloon** is
present but not inflated (MemTotal equals what the kernel had at boot). Neither is
implicated by anything measured.
- **Emulated watchdogs** (i6300ESB with a 30 s heartbeat, and iTCO_wdt): both
Collaborator

The watchdog that watchdogd was stuck pinging on 2 December is the ICH9 TCO (iTCO_wdt), not the i6300ESB. The journal has RIP: 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 say heartbeat=30 sec at 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/watchdog says inactive (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.

The watchdog that `watchdogd` was stuck pinging on 2 December is the **ICH9 TCO (`iTCO_wdt`)**, not the i6300ESB. The journal has `RIP: 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 say `heartbeat=30 sec` at 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/watchdog` says `inactive` (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.
Author
Collaborator

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 say iTCO_wdt_ping.

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 say `iTCO_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 what
Collaborator

The 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-LPC noreboot is set)? Keep the i6300esb only as a second question, if at all.

The 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-LPC `noreboot` is set)? Keep the i6300esb only as a second question, if at all.
Author
Collaborator

Fixed in a867772. The text for the provider now asks about the ICH9 TCO watchdog (is it running, -watchdog-action, ICH9-LPC noreboot) and mentions the i6300esb only as present and unused by the guest.

Fixed in a867772. The text for the provider now asks about the ICH9 TCO watchdog (is it running, `-watchdog-action`, ICH9-LPC `noreboot`) 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 every
later stack dump; gw5 already had it at 09:08 with no soft lockup line collected,
Collaborator

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.

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.
Author
Collaborator

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.

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.
docs: the watchdog gw5's kernel was stuck pinging is the ICH9 TCO, not the i6300ESB (#599)
Some checks failed
alert-rules / check (pull_request) Has been cancelled
a867772e2b
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
docs: rewrap (#599)
All checks were successful
alert-rules / check (pull_request) Successful in 13m18s
3c3808cdad
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Author
Collaborator

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 to svc/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 in a867772 (a rewrap follows 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 to `svc/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 in a867772 (a rewrap follows it).
pixel-board left a comment

Round 1's three findings are fixed in a867772.

  • Watchdog. gw5's kernel journal (read through the vector pod) has 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 log heartbeat=30 sec at 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 for WDOG_HW_RUNNING.
  • [L] taint. docs/monitoring.md now says the taint came from the soft lockups of 2026-11-08 00:48 UTC.
  • Scrape gap. I ran the author's export query against gw5's VictoriaMetrics. Over 12,882 samples of 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.sh passes. 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.

Round 1's three findings are fixed in a867772. - **Watchdog.** gw5's kernel journal (read through the vector pod) has `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 log `heartbeat=30 sec` at 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 for `WDOG_HW_RUNNING`. - **`[L]` taint.** docs/monitoring.md now says the taint came from the soft lockups of 2026-11-08 00:48 UTC. - **Scrape gap.** I ran the author's export query against gw5's VictoriaMetrics. Over 12,882 samples of `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.sh` passes. 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 3c3808cdad0125e2262e6f4d79ec5c3a430ddb67.
@ -0,0 +88,4 @@
once on 8 November and four on 2 December; the clock readout gaps; on 2 December the disk
latency rose first, at almost no load. On 2 December CPU 4 was stuck for 35 s inside a
write to the emulated ICH9 TCO watchdog (`iTCO_wdt_ping`) and CPU 1 inside an I/O call to
the emulated qxl device; both devices are served by the QEMU process on the host. Inferred: this fits the
Collaborator

Nit, not blocking: the rewrap in 3c3808c left this line at 105 characters (the rest of the file wraps at about 90). Rewrapping lines 90 to 94 would fix it.

Nit, not blocking: the rewrap in 3c3808c left this line at 105 characters (the rest of the file wraps at about 90). Rewrapping lines 90 to 94 would fix it.
All checks were successful
alert-rules / check (pull_request) Successful in 13m18s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls:pixel/599-gw5-apsydsn-find-why-the-guest-stalls'
git switch 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls'

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.

git switch 'main'
git merge --no-ff 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls'
git switch 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls'
git rebase 'main'
git switch 'main'
git merge --ff-only 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls'
git switch 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls'
git rebase 'main'
git switch 'main'
git merge --no-ff 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls'
git switch 'main'
git merge --squash 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls'
git switch 'main'
git merge --ff-only 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls'
git switch 'main'
git merge 'pixel/599-gw5-apsydsn-find-why-the-guest-stalls'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
No description provided.