Preserving uptime with kexec?



Like many people, I like to brag about how great my uptime is. But like
many other people, I like to keep my kernel up-to-date with the latest
and greatest from kernel.org. I recently discovered the magic of kexec,
which allows me to switch kernels without rebooting for real.
Unfortunately, kexec resets my uptime when it runs.

Would anyone be interested in fixing this, and/or would anyone be
interested in *me* writing a patch for it? I don't know if it violates
some contract where uptime is counted from the kernel boot, but it seems
like, for consistency's sake, it should count from the last hardware
boot.

--Thomas Tuttle

Attachment: pgpX8jWbLtbSG.pgp
Description: PGP signature



Relevant Pages

  • [PATCH] Info dump on Oops or panic()
    ... panics. ... I accidentally built my testing kernel without the IDE drivers. ... and informed me that my uptime was 0.38 seconds. ... * Dump out uptime info on oops / panic. ...
    (Linux-Kernel)
  • netgraph/ng_eiface double panic & turnstile/sio lock order reversal in 5.2-BETA
    ... page fault while in kernel mode ... Uptime: 2m3s ... panic: msleep ... <ACPI PCI bus> on pcib0 ...
    (freebsd-current)
  • Re: uptime increases during suspend
    ... But I and others have to support all kernels and all operating ... Uptime has been used this way for years ... is the kernel clock tick rate. ... The HZ value used in the kernel may vary according to hacker desire. ...
    (Linux-Kernel)
  • Re: [PATCH] [revised -- version 2] Info dump on Oops or panic()
    ... Two sample notifiers have ... I accidentally built my testing kernel without the IDE drivers. ... and informed me that my uptime was 0.38 seconds. ... + * Dump out uptime info on oops / panic. ...
    (Linux-Kernel)
  • Re: kernel is always too big....
    ... >> One doesn't get any remarkable uptime this way, but then I had one CPU melt ... > 108528-01 kernel and was bragging about his uptime. ... Honestly, as you can see from my above list, there is a constant rebooting, cause ...
    (comp.os.linux.setup)