From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp107.prem.mail.ac4.yahoo.com (smtp107.prem.mail.ac4.yahoo.com [76.13.13.46]) by ozlabs.org (Postfix) with SMTP id B4AB5B70F2 for ; Tue, 28 Sep 2010 01:37:42 +1000 (EST) Date: Mon, 27 Sep 2010 10:37:35 -0500 (CDT) From: Christoph Lameter To: Christian Riesch Subject: Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support In-Reply-To: <4C9BC7CE.8020400@riesch.at> Message-ID: References: <1285268380.2587.11.camel@localhost.localdomain> <1285273684.2587.92.camel@localhost.localdomain> <20100923223417.4ed62e5b@lxorguk.ukuu.org.uk> <4C9BC7CE.8020400@riesch.at> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Rodolfo Giometti , Arnd Bergmann , Peter Zijlstra , john stultz , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, David Miller , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-api@vger.kernel.org, Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, Richard Cochran , Alan Cox , Krzysztof Halasa List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 23 Sep 2010, Christian Riesch wrote: > > > It implies clock tuning in userspace for a potential sub microsecond > > > accurate clock. The clock accuracy will be limited by user space > > > latencies and noise. You wont be able to discipline the system clock > > > accurately. > > > > Noise matters, latency doesn't. > > Well put! That's why we need hardware support for PTP timestamping to reduce > the noise, but get along well with the clock servo that is steering the PHC in > user space. Even if I buy into the catch phrase above: User space is subject to noise that the in kernel code is not. If you do the tuning over long intervals then it hopefully averages out but it still causes jitter effects that affects the degree of accuracy (or sync) that you can reach. And the noise varies with the load on the system.