Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762050Ab0HMSp5 (ORCPT ); Fri, 13 Aug 2010 14:45:57 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:51131 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753184Ab0HMSp4 (ORCPT ); Fri, 13 Aug 2010 14:45:56 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=fy6CAhmcP6a3UmKwAZ3Tfj/hTFhFgnoCegOQLT5nLtgs8q1h0rbzjr6ma0OM+u62jR B1mTXHlrzyQwefCpok0QWEU0J90FK+K1YEeIr3Ik1pPHgOibj8a3g5thz+eqP8qqeSdA 8TslVPXCgo9PCWzAarwR7LXa4SGi7ZmjuhEME= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 13 Aug 2010 11:45:54 -0700 X-Google-Sender-Auth: FU-NeeY7ueJiP91xGJmESCuQ2kU Message-ID: Subject: Re: Proposal: Use hi-res clock for file timestamps From: john stultz To: "Patrick J. LoPresti" Cc: linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 25 On Fri, Aug 13, 2010 at 11:25 AM, Patrick J. LoPresti wrote: > 3) On the 99.99% of Linux systems that are post-1990 x86, it is not > slow at all, and the performance difference will be utterly > undetectable in the real world. Your stats are off here. The only fast clocksource on x86 is the TSC, and its busted on many, many systems. The cpu vendors have only recently taken it seriously and resolved the majority of problems (however, issues still remain on large numa systems, but its much better then the story was 3-7 years ago). On those TSC broken systems that use the hpet or acpi_pm, a getnstimeofday call can take 0.5-1.3us, so the penalty can be quite severe. And even with the TSC, expect some performance impact, as reading hardware and doing the multiply is more costly then just fetching a value from memory. thanks -john -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/