Summary: | uptime, w, /proc/uptime; report wrong uptime | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Johnny Withers <johnny> |
Component: | [OLD] Core system | Assignee: | x86-kernel (DEPRECATED) <x86-kernel> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Possible reason |
Description
Johnny Withers
2003-03-17 14:07:40 UTC
Created attachment 9674 [details]
Possible reason
Have you changed the Jiffies setting in your kernel config? By default the
linux clock will wrap around every 490 days I believe. If you change the
Jiffies from the default 100 Hz to, say, 10 Hz the kernel clock will wrap at 49
days so after 49 days the uptime will reset to 0.
[ PS the attached file is empty - I wasn't sure how to get around Bugzilla
wanting me to attach a patch... ]
I have no idea what Jiffies are. I greped my kernel.conf file (in /etc) for any word like this, nothing came up. Where should I go and check this? Kernel Jiffies can be found under: make menuconfig; Processor type and features->Set jiffies for i386 (HZ) (Multiple of 20); Mine is set to the default value of 100. This is all that is listed under "Processor type and features" [*] Low latency scheduling [ ] Control low latency with sysctl (Pentium-III/Celeron(Coppermine)) Processor family [*] Machine Check Exception < > Toshiba Laptop support < > Dell laptop support < > /dev/cpu/microcode - Intel IA32 CPU microcode support < > /dev/cpu/*/msr - Model-specific register support <M> /dev/cpu/*/cpuid - CPU information support (off) High Memory Support (3GB) User address space size [ ] Math emulation [*] MTRR (Memory Type Range Register) support [*] Symmetric multi-processing support [*] Preemptible Kernel [ ] Multiquad NUMA system [ ] Unsynced TSC support From /usr/src/linux/include/linux/version.h: #define UTS_RELEASE "2.4.20-gentoo-r1" #define LINUX_VERSION_CODE 132116 this won't be fixed until 64-bit jiffies are added and i'm unsure if i'll include a backport from 2.5 anytime soon, if ever. Jay |