Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932231AbcKUOab (ORCPT ); Mon, 21 Nov 2016 09:30:31 -0500 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:45406 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753159AbcKUOa3 (ORCPT ); Mon, 21 Nov 2016 09:30:29 -0500 Date: Mon, 21 Nov 2016 14:30:13 +0000 From: One Thousand Gnomes To: David Howells Cc: Dave Chinner , Andreas Dilger , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available Message-ID: <20161121143013.79373b5e@lxorguk.ukuu.org.uk> In-Reply-To: <11317.1479509642@warthog.procyon.org.uk> References: <20161118220744.GC31101@dastard> <147938969703.13574.10295364502230379833.stgit@warthog.procyon.org.uk> <147938970382.13574.11581172952175034619.stgit@warthog.procyon.org.uk> <20161117234047.GE28177@dastard> <11317.1479509642@warthog.procyon.org.uk> Organization: Intel Corporation X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 869 Lines: 29 > > increase in timestamp resoultion of at least another 10e-3 is > > likely.... > > Is it, though? To be useful, surely you have to be able to jam quite a few > instructions into a 1ns block, including memory accesses. > > Rather than providing: > > struct timestamp { > __s64 seconds; > __s64 femtoseconds; > }; > > which would require 64-bit divisions to get nanosecond timestamps that we do > actually use, I would lean towards: > > struct timestamp { > __s64 seconds; > __s32 nanoseconds; > __s32 femtoseconds; > }; Which gets silly. The nanosecond world is defined by the speed of light. Short of someone finding a way to change that digital computing as we know it today is going to be living in the nanoseconds world. You hit the point of 'can't measure the difference' before you hit the point of 'can usefully order things using' Alan