From owner-freebsd-hackers@FreeBSD.ORG Fri May 29 17:34:12 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3AB3E9A8 for ; Fri, 29 May 2015 17:34:12 +0000 (UTC) (envelope-from phk@freebsd.org) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 007B21BB0 for ; Fri, 29 May 2015 17:34:11 +0000 (UTC) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 69F213BB88; Fri, 29 May 2015 17:34:08 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.9/8.14.9) with ESMTP id t4THY7YM085620; Fri, 29 May 2015 17:34:08 GMT (envelope-from phk@freebsd.org) To: Sebastian Huber cc: freebsd-hackers@freebsd.org Subject: Re: Problem with timecounters and memory model In-reply-to: <55686D31.1060408@embedded-brains.de> From: "Poul-Henning Kamp" References: <55686300.3080100@embedded-brains.de> <85086.1432906578@critter.freebsd.dk> <55686C0F.9000101@embedded-brains.de> <85121.1432906871@critter.freebsd.dk> <55686D31.1060408@embedded-brains.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <85618.1432920847.1@critter.freebsd.dk> Date: Fri, 29 May 2015 17:34:07 +0000 Message-ID: <85619.1432920847@critter.freebsd.dk> X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2015 17:34:12 -0000 -------- In message <55686D31.1060408@embedded-brains.de>, Sebastian Huber writes: >> How often do you "wind" the timecounter ? > >More often than necessary. About 1000 times a second with only one=20 >timehand (this is a hack to support legacy systems). The test case is: If you only have one timehand, I can't see how it can work without locks ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.