From owner-cvs-src@FreeBSD.ORG Fri Oct 21 17:19:57 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45C5A16A41F; Fri, 21 Oct 2005 17:19:57 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id C21EF43D45; Fri, 21 Oct 2005 17:19:56 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 73E74BC50; Fri, 21 Oct 2005 17:19:55 +0000 (UTC) To: Andre Oppermann From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 21 Oct 2005 19:14:25 +0200." <435921F1.5E9050AD@networx.ch> Date: Fri, 21 Oct 2005 19:19:54 +0200 Message-ID: <31104.1129915194@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, Andre Oppermann , cvs-all@FreeBSD.org, Bruce Evans Subject: Re: Timekeeping [Was: Re: cvs commit: src/usr.bin/vmstat vmstat.c src/usr.bin/w w.c] X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 17:19:57 -0000 In message <435921F1.5E9050AD@networx.ch>, Andre Oppermann writes: >> >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. Uhm, yes. Only... How do we measure the time our clock does _not_ tick ? We need to use another clock for that. The RTC comes to mind, but it's precision leaves a lot to be desired. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.