Date: Fri, 21 Oct 2005 19:14:25 +0200 From: Andre Oppermann <oppermann@networx.ch> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, Andre Oppermann <andre@freebsd.org>, cvs-all@FreeBSD.org, Bruce Evans <bde@zeta.org.au> Subject: Re: Timekeeping [Was: Re: cvs commit: src/usr.bin/vmstat vmstat.c src/usr.bin/w w.c] Message-ID: <435921F1.5E9050AD@networx.ch> References: <31030.1129914607@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote: > > In message <435913FE.774C683D@freebsd.org>, Andre Oppermann writes: > > >> Again, if you have been sitting in DDB, what exactly is the definition > >> of "uptime" ? > > > >IMO it's this: > > > > Uptime is the time the operating was available to present it's common > > services to userland. That excludes any suspend and ddb times. Single > > user mode however counts because the OS was servicing userland even if > > there was only one user. Uptime is represented in SI seconds. > > I can live with this definition. > > So now we just need to be able to reliably measure the "not-uptime". Umm... Whenever the onesec tick is not incrementing the uptime (and monotonic) counter. Which conviniently already is the case when OS is suspended or in DDB. -- Andre
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?435921F1.5E9050AD>