Thread (6 messages) 6 messages, 4 authors, 2025-10-09

Re: [PATCH v3 19/30] liveupdate: luo_sysfs: add sysfs state monitoring

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-10-09 14:50:48
Also in: linux-doc, linux-fsdevel, linux-mm, lkml

On Thu, Oct 09, 2025 at 08:01:13AM -0400, Pasha Tatashin wrote:
quoted
quoted
Because the window of kernel live update is short, it is difficult to statistics
how many times the kernel is live updated.

Is it possible to add a variable to statistics the times that the kernel is live
updated?
The kernel doesn't do the live update on its own. The process is driven
and sequenced by userspace. So if you want to keep statistics, you
should do it from your userspace (luod maybe?). I don't see any need for
this in the kernel.
One use case I can think of is including information in kdump or the
backtrace warning/panic messages about how many times this machine has
been live-updated. In the past, I've seen bugs (related to memory
corruption) that occurred only after several kexecs, not on the first
one. 
That seems like a reasonable point, to do something like a taint where
this is recorded, visible and logged during an oops.

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help