From owner-cvs-src@FreeBSD.ORG Fri Oct 21 19:39:02 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 5125A16A420; Fri, 21 Oct 2005 19:39:02 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9BA343D46; Fri, 21 Oct 2005 19:39:01 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from [192.168.4.250] (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.13.4/8.13.4) with ESMTP id j9LJcx6N088064; Fri, 21 Oct 2005 12:39:00 -0700 (PDT) (envelope-from marcel@xcllnt.net) In-Reply-To: <31627.1129921923@critter.freebsd.dk> References: <31627.1129921923@critter.freebsd.dk> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <01DFB595-5279-4D3A-BEDA-5F0285E9519B@xcllnt.net> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Fri, 21 Oct 2005 12:38:59 -0700 To: Poul-Henning Kamp X-Mailer: Apple Mail (2.734) Cc: src-committers@FreeBSD.org, Andre Oppermann , Bruce Evans , cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, Andre Oppermann 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 19:39:02 -0000 On Oct 21, 2005, at 12:12 PM, Poul-Henning Kamp wrote: > In message <3F6E14D5-73B2-448A-9440-32DFFBF4E9C4@xcllnt.net>, > Marcel Moolenaar > writes: > > >> Thus the question of "since when" can be answered as: the first >> time it became operational after being non-operational. >> > > Bad definition: it literally means it should start counting from > the first boot of the operating system. No I meant that uptime is defined in terms of the most recent activation time, where activation is the switch from non-operational to operational. The use of "first" was confusing as it would imply there can be more, which there can't be. Bad wording... > I think we need the definition to consider if (process- ?)state is > retained while the system is unconcious or not. I'm not sure. I think that might be what makes the definition complex. The use of operational vs. non-operational in absolute sense seems to avoid a lot of complexities without being unnatural. Sure, the DDB case is weird, but we can all agree that no new processes can be forked while in DDB (due to the fact that no process is running). This, the running of processes, is also part of the operational state of an operating system. Even suspend and hibernation are covered quite naturally. We only have to let go of boot or reboot as the beginning of the operational state... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net