From owner-freebsd-hackers Wed Aug 19 22:22:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA20558 for freebsd-hackers-outgoing; Wed, 19 Aug 1998 22:22:19 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA20553 for ; Wed, 19 Aug 1998 22:22:17 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id WAA23261; Wed, 19 Aug 1998 22:21:39 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp04.primenet.com, id smtpd023245; Wed Aug 19 22:21:35 1998 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id WAA14742; Wed, 19 Aug 1998 22:21:31 -0700 (MST) From: Terry Lambert Message-Id: <199808200521.WAA14742@usr02.primenet.com> Subject: Re: proposal to not change time_t To: ac199@hwcn.org Date: Thu, 20 Aug 1998 05:21:31 +0000 (GMT) Cc: drosih@rpi.edu, joelh@gnu.org, hackers@FreeBSD.ORG In-Reply-To: from "Tim Vanderhoek" at Aug 20, 98 00:33:39 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is there any way the filesystem could force times to be separated > by at least one unit (255ths, 1024ths, whatever), and then only > resort to using duplicate times when it is forced to by benchmark > programs that touch 1024 files per second just for kicks? > > This would, I'm sure, be rather difficult to write actual code > for (and fs coders just abound), but... Trivial, actually... if( oldsecond == current second) { savesecond = currentsecond saveunique = ++unique; } else { savesecond = currentsecond saveunique = unique = 0; } A 16 bit value for saveunique for content modification time should suffice, but there is sufficient spare for all thre timestamps (64 bit, 1 second resolution) should that be deemed necessary. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message