From owner-freebsd-chat@FreeBSD.ORG Sun Mar 25 20:15:03 2007 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 786DB16A402 for ; Sun, 25 Mar 2007 20:15:03 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 0D02813C448 for ; Sun, 25 Mar 2007 20:15:02 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so2455470nfc for ; Sun, 25 Mar 2007 13:15:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=A9Cp8MrJGM8HuLTAEkCpg+r9LnFste9k3iUAU19zMj6vGjzkKcCPFmnKWEPE0ZeOyiVvUk9l5Pod6vavq0n5xdIMdYn/L4bysAnTCxl+dAxhNgR0SxC9WqPaE0o4wesyqkgIMVNTaCZTrCHtWmq3oHDr3LSpOlSsUwRbP5GO1os= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=sZzhjLaQQIC5f8EJ0kN+1dCeAj/NpIFBnEb+j02t2NtcSirbfR4x0VwVIY6rXfva0YA1l0VOLcDTtevHoi8EILq/cDEIHSMyIb4259S9UPOfLnp1Ub9JjjT3UFsIILEuiSPlDJbeL/ci1esx6DaTbIF48Xb14pEhRaFky2sHzfU= Received: by 10.82.178.11 with SMTP id a11mr12062510buf.1174853701743; Sun, 25 Mar 2007 13:15:01 -0700 (PDT) Received: from ?192.168.123.111? ( [81.182.8.157]) by mx.google.com with ESMTP id y6sm18464995mug.2007.03.25.13.14.58; Sun, 25 Mar 2007 13:15:00 -0700 (PDT) Message-ID: <4606D88E.4080503@gmail.com> Date: Sun, 25 Mar 2007 22:16:14 +0200 From: deeptech71@gmail.com User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-chat@freebsd.org References: <200703251900.l2PJ0Z8w058298@lurza.secnetix.de> In-Reply-To: <200703251900.l2PJ0Z8w058298@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 64bit timestamp X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2007 20:15:03 -0000 Oliver Fromme wrote: > What's your problem? In your first mail you seemed to be > complaining that there isn't sufficient range and accuracy > in the time stamps. I explained to you that there is > indeed more accuracy than you thought, and now you complain > that there's too much of it? I am in not complaining. Just wanted to talk about something, it's what freebsd-chat is for. I raised a topic, we started talking about it. Let me rework my comment, to get the more real meaning of it: IMO, that is redunant. (Don't you think so?) > To answer your question: Modern hardware is already fast > enough that sub-microsecond accuracy is required. Also > keep in mind that it is undesirable to change the on-disk- > format of a file system every year. When the UFS2 format > was designed, it should be sufficient at least for the > needs of ten years in the future, possibly even more. > So the provision for nanosecond accuracy is not far off. Don't know if I'm right, but in the hardware used nowadays, the time can change every several hundred nanoseconds. That is, can represent every microsecond with, say, 0.75 accuracy, for tens of microseconds that's 0.975, 0.9975 for hundreds, and 0.99975 for milliseconds. > Ideally, two consecutive, non-parallel operations should > give two different timestamps. That applies to creating or > touching a file or other kind of resource, or even just > calling the gettimeofday() function from within the same > thread, or whatever. In reality that isn't the case today > for FreeBSD for other reasons, but the timestamp accuracy > of UFS2 would certainly be sufficient for that. Actually, my intend wasn't to use it in filesystems, but server-client apps, such as games, where 32bit integer timers must be restarted every 3 weeks Giorgos Keramidas wrote: > On 2007-03-25 01:36, deeptech71@gmail.com wrote: >> Oliver Fromme wrote: >>> FreeBSD's UFS2 already uses 96bit timestamps, where 64 bits are used >>> for seconds and 32 bits are used for nanoseconds. Is that sufficient >>> for you? >> What the hell for? > > ``Just because it can.'' Good. :] 2x64bit for x64? > Seriously now, please show some more respect to Oliver and the time he > spent to research and write up a very informative reply. It's not very > nice to post an original email like the one you posted, posing a > relatively unintelligible question, and then reply ``what the hell > for?'' to Oliver's email. At least *he* tried to find out something by > reading the source, he wrote a reply with details pointers to places > where you can find out more for yourself, and was enough of a gentleman > to *avoid* using potentially offensive words. > > Let's be a little more cordial to the ones who help us, shall we? And I appreciate your hard work trying to help me. Perhaps my comment was somewhat offensive. I appologize.