Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe15.iad.POSTED!00000000!not-for-mail From: Stefan Monnier Newsgroups: comp.os.linux.development.system,comp.unix.programmer Subject: Re: Getting time of last reboot on Linux Message-ID: References: <4c0afddf-5e6e-41f5-b8d2-b65afcc4ee29@z1g2000vbx.googlegroups.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:WGwzWfqa5yId7uPezsS8E/YOvxo= MIME-Version: 1.0 Content-Type: text/plain Lines: 16 X-Complaints-To: abuse@UsenetServer.com NNTP-Posting-Date: Mon, 09 Jan 2012 14:18:38 UTC Date: Mon, 09 Jan 2012 09:18:28 -0500 Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.development.system:378 comp.unix.programmer:1964 > I would expect that it would be near 100% on systems where there > is no real-time-clock kept alive when the system is powered off, > and the system has to resort to a mod time on the root superblock > from shutdown. Scheduled shutdowns (systems not expected to run > anywhere close to 24/7 for power-saving, security, noise, or other > reasons) or shutdowns for hardware reconfiguration are likely to > take more than 10 minutes. I'll assume that the system is robust > enough not to have a lot of panic/immediate reboot cycles. FWIW, it *is* 100% on many/most home routers I know, since they don't have any RTC, and they don't try to do anything fancy with the root superblock (they try to touch the flash as rarely as possible) nor do they even shutdown usually (they're just power cycled instead). Stefan