From owner-freebsd-arch@FreeBSD.ORG Fri May 4 22:50:01 2007 Return-Path: X-Original-To: arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0D1E216A402; Fri, 4 May 2007 22:50:01 +0000 (UTC) (envelope-from dds@aueb.gr) Received: from mx-out-05.forthnet.gr (mx-out.forthnet.gr [193.92.150.103]) by mx1.freebsd.org (Postfix) with ESMTP id 788C613C457; Fri, 4 May 2007 22:50:00 +0000 (UTC) (envelope-from dds@aueb.gr) Received: from mx-av-04.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-05.forthnet.gr (8.13.8/8.13.8) with ESMTP id l44Mnwt0003750; Sat, 5 May 2007 01:49:58 +0300 Received: from MX-IN-01.forthnet.gr (mx-in-01.forthnet.gr [193.92.150.23]) by mx-av-04.forthnet.gr (8.14.1/8.14.1) with ESMTP id l44MnvCZ030980; Sat, 5 May 2007 01:49:57 +0300 Received: from [192.168.136.22] (ppp124-213.adsl.forthnet.gr [193.92.231.213]) by MX-IN-01.forthnet.gr (8.14.1/8.14.1) with ESMTP id l44Mnupt028970; Sat, 5 May 2007 01:49:56 +0300 Authentication-Results: MX-IN-01.forthnet.gr from=dds@aueb.gr; sender-id=neutral; spf=neutral Message-ID: <463BB88F.4020804@aueb.gr> Date: Sat, 05 May 2007 01:49:51 +0300 From: Diomidis Spinellis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1 MIME-Version: 1.0 To: Poul-Henning Kamp References: <19235.1178303887@critter.freebsd.dk> In-Reply-To: <19235.1178303887@critter.freebsd.dk> Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit Cc: arch@FreeBSD.org, Robert Watson , re@FreeBSD.org Subject: Re: Accounting changes X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2007 22:50:01 -0000 Poul-Henning Kamp wrote: > In message <463B581E.6070804@aueb.gr>, Diomidis Spinellis writes: > >> On modern processors the various time values were 0, because many >> commands took less than 1/64s to execute [bde]. Now time values are >> stored with microsecond precision as float numbers.(I've written code >> that allows the kernel to write them without any floating point >> operations.) > > Why on earth introduce another time format ? > > Please use a standard time format please. If we use struct timeval for the three time values the structure size increases considerably (especially on an amd64). Here are some numbers: i386 Old size=48 New size=64 New size with timeval=76 amd64 Old size=56 New size=72 New size timeval=112 On a busy system this increase can be more than 10GB / month. Is there some other standard time format I've missed? Diomidis