Re: Preserving uptime with kexec?



On Mon, 31 Jul 2006 08:59:13 EDT, Thomas Tuttle said:
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.

The reset of uptime is probably a Good Thing. Consider the case of
a kernel memory leak - you look in /proc/meminfo and find that you've managed
to lose 64 meg of memory to the leak. Where you start looking for the
leak will depend on whether it's 64 meg lost across 4 weeks since the
last boot, or the 30 minutes since the last boot.

(Speaking as somebody who's run into both classes of leaks...)


Attachment: pgpEAIAqEWCvb.pgp
Description: PGP signature



Relevant Pages

  • Re: Size-128 slab leak
    ... > I have an annoying slab leak on my kernel. ... I lose about> 50Megs of memory to the leak. ... walks the objects in the size-4096 slab, printing out the calling address of whoever allocated that object. ... *dbg_redzone1(cachep, objp) = RED_ACTIVE; *dbg_redzone2= RED_ACTIVE;} ...
    (Linux-Kernel)
  • Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
    ... and tomorrow I'll try to see if I can work out the leak; ... it turns out that the BUG I mentioned was reported against ... the SLES10 2.6.16-rc6 kernel. ... suggestion from last week of just shooting nopage in the head, ...
    (Linux-Kernel)
  • Re: Finding memory leak
    ... Could only find two instances one allocating 14 bytes and the other 4096. ... The kernel network code is way beyond my knowledge and I cannot determine ... it is very very likely that the leak ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
    ... annotations around the kernel which is very impractical to maintain. ... I would like to see your leak detector in the kernel so we can finally ... allocation is not considered a leak, in terms of comments added to the ...
    (Linux-Kernel)
  • Re: 2.6.8-1.521 memory leak? (was: [...] FC1/i386 vs FC2/x86_64: [...] memory consumption?)
    ... leak occurs when trying to rebuild 2.6.8-1.521 kernels or kernel ... > It turns out that memory gets consumed and not returned back to the ... > VmallocChunk: 536869323 kB ...
    (Fedora)