From owner-freebsd-arch@FreeBSD.ORG Wed Sep 17 15:43:10 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08908106566B; Wed, 17 Sep 2008 15:43:10 +0000 (UTC) (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 BF0B28FC19; Wed, 17 Sep 2008 15:43:09 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 4CCD5170E4; Wed, 17 Sep 2008 15:43:08 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m8HFh74C047837; Wed, 17 Sep 2008 15:43:07 GMT (envelope-from phk@critter.freebsd.dk) To: John Hein From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 17 Sep 2008 09:34:10 CST." <18641.9074.499346.988999@gromit.timing.com> Date: Wed, 17 Sep 2008 15:43:07 +0000 Message-ID: <47836.1221666187@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: arch@freebsd.org, Brooks Davis Subject: Re: 64 bit time_t 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: Wed, 17 Sep 2008 15:43:10 -0000 In message <18641.9074.499346.988999@gromit.timing.com>, John Hein writes: >So for systems where we don't care about compatibility (where a >product is built from scratch and we don't have to worry about 3rd >party binary libs/programs), the problems mentioned by brooks & phk >disappear. > >No one wants to play the performance or atomic access card? I know of only the kernel variable "time_second" where that would be a concern, and since we have 64bit atomic writes, I consider that a non-concern. At any rate, even if you write it with two 32bit writes, you will only have one chance for a race every 136 years. Next time you have the chance is: critter phk> bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 2^31-1 2147483647 critter phk> date -r 2147483647 Tue Jan 19 03:14:07 UTC 2038 -- 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.