From owner-freebsd-arch@FreeBSD.ORG Mon Jun 7 08:27:07 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8640106564A; Mon, 7 Jun 2010 08:27:07 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0B7148FC15; Mon, 7 Jun 2010 08:27:06 +0000 (UTC) Received: by fxm20 with SMTP id 20so2199060fxm.13 for ; Mon, 07 Jun 2010 01:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=hokCZQiAoVDrD2azQzl4La/7kMOlQq6yn3iUEi7aL+8=; b=ZDnV1/dSvERpFZsV14TCndIaJCW3aaI/aXpx9oJ2TAeQQtB2Y9yQyALID9706ec2jk S68lB/dMSk/wyoYKDtN8WtqA6uadfHb8qjD3leRh2sVAZE/MQcCXDrBSQ05EBFQhBwQM 2VvezoZTkPty7blbRQBd/zsbv//XEl0RYb8QQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=Adz84OhPeE8X1q5ntwefzaDpruyEWhviNzTdXgOiuY7SHVVWbN0yuRw7/W/onO+hsx zxeQUTasMPJzcXwbMJIjHi9FIS73kghrQkJt0ScMM6KohL6+XEaEXY5fzDG7MQbuAttz W/9WArpqO2KE7D0akuH8bOtxAT29/6OB/Ewlw= Received: by 10.223.26.206 with SMTP id f14mr14743331fac.96.1275899225958; Mon, 07 Jun 2010 01:27:05 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 2sm19184799fav.13.2010.06.07.01.27.04 (version=SSLv3 cipher=RC4-MD5); Mon, 07 Jun 2010 01:27:05 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C0CAD43.20102@FreeBSD.org> Date: Mon, 07 Jun 2010 11:26:43 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Ed Schouten References: <4C0C1AE4.8050807@FreeBSD.org> <20100607081356.GY56080@hoeg.nl> In-Reply-To: <20100607081356.GY56080@hoeg.nl> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current , freebsd-arch@freebsd.org Subject: Re: RFC: New event timers infrastructure X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2010 08:27:07 -0000 Ed Schouten wrote: > * Alexander Motin wrote: >> Most of x86 systems now has at least 4 types of event timers: i8254, >> RTC, LAPIC and HPET. Respective code in kernel is very tangled, heavily >> hardcoded and absolutely not scalable. I have reimplemented it, trying >> to solve these issues. > > Just out of curiosity, how does this work relate to things like having a > tickless kernel? It is almost mandatory prerequisite. We can't do any fancy timer stuff without unified timer API. Tsuyoshi Ozawa in his Dynamic Ticks work also got to the same conclusion, but he was much less aggressive in rewriting legacy code. -- Alexander Motin