|
|
Subscribe / Log in / New account

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

From:  One Thousand Gnomes <gnomes-AT-lxorguk.ukuu.org.uk>
To:  David Howells <dhowells-AT-redhat.com>
Subject:  Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available
Date:  Mon, 21 Nov 2016 14:30:13 +0000
Message-ID:  <20161121143013.79373b5e@lxorguk.ukuu.org.uk>
Cc:  Dave Chinner <david-AT-fromorbit.com>, Andreas Dilger <adilger-AT-dilger.ca>, linux-fsdevel-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org

> > 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



to post comments


Copyright © 2016, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds