From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754950AbcKUUnl (ORCPT ); Mon, 21 Nov 2016 15:43:41 -0500 Received: from ipmail05.adl6.internode.on.net ([150.101.137.143]:17364 "EHLO ipmail05.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754174AbcKUUnj (ORCPT ); Mon, 21 Nov 2016 15:43:39 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2A7HwDwWzNYELuKLHldHAEBBAEBCgEBgzgBAQEBAR+BWIJ7g3mcOwEBBoEcjCWGO4QThhsEAgKCA0QQAQIBAQEBAQEBBgEBAQEBAQEBN0WEaQEBBDocIxAIAxgJJQ8FJQMHGhOIbK5yi04BAQgCJR6FVIUkhC8GhVceBZpNiVGHG5AyjV+ECzWBExMMhVUqNIYWgjsBAQE Date: Tue, 22 Nov 2016 07:43:35 +1100 From: Dave Chinner To: One Thousand Gnomes Cc: David Howells , 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: <20161121204335.GH31101@dastard> 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> <20161121143013.79373b5e@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161121143013.79373b5e@lxorguk.ukuu.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 21, 2016 at 02:30:13PM +0000, One Thousand Gnomes wrote: > > > 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' We already have clock rates that are fractions of a nanosecond per cycle. We have pmem storage here right now that is accessed at the speed of the CPU - actual nanosecond resolution timestamp capability is a reality at the bleeding edge of storage technology right now. It doesn't take much vision to extend the current hardare capabilities with coherent hardware accelerators (e.g. as has been added to the Power platform) writing directly into pmem storage and providing higher resolution timestamps than the CPU can generate. Call me silly if you want - I don't care - but let's not ignore the emerging storage technology trends that are there for everyone to see... Cheers, Dave. -- Dave Chinner david@fromorbit.com