From owner-freebsd-arch@FreeBSD.ORG Sat Oct 18 14:17:36 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47AC316A4B3 for ; Sat, 18 Oct 2003 14:17:36 -0700 (PDT) Received: from VARK.homeunix.com (adsl-68-124-23-137.dsl.pltn13.pacbell.net [68.124.23.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86EF843F75 for ; Sat, 18 Oct 2003 14:17:34 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.9/8.12.9) with ESMTP id h9ILHX2O023815; Sat, 18 Oct 2003 14:17:33 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.9/8.12.9/Submit) id h9ILHXFX023814; Sat, 18 Oct 2003 14:17:33 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Sat, 18 Oct 2003 14:17:33 -0700 From: David Schultz To: Nate Lawson Message-ID: <20031018211733.GA14976@VARK.homeunix.com> Mail-Followup-To: Nate Lawson , arch@FreeBSD.ORG References: <20031018130119.T47207@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031018130119.T47207@root.org> cc: arch@FreeBSD.ORG Subject: Re: Variable timer tick rate? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2003 21:17:36 -0000 On Sat, Oct 18, 2003, Nate Lawson wrote: > This is an interesting approach. If there are no upcoming timeouts, > decrease the tick rate. Of course, you have to amortize the cost of > resetting the timer over the period of no ticks. > > http://kerneltrap.org/node/view/1006 For the last couple of years, Solaris has had a 'cyclic' system that automatically schedules the next clock interrupt to match the next timeout. This allows for arbitrarily high or low resolution timers. Even if we presently have subsystems that poll every tick, high-resolution timers would be a neat thing to have, and it should be possible to implement on all supported architectures except pre-PPro i386's that don't have TSCs.