From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 16:13:45 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0F3E10656A4; Wed, 1 Sep 2010 16:13:45 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id C74D48FC0A; Wed, 1 Sep 2010 16:13:37 +0000 (UTC) Received: by bwz20 with SMTP id 20so6505783bwz.13 for ; Wed, 01 Sep 2010 09:13:36 -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=ybo8wmegBqlhF0OJFdOI/LhSsJBuB6A+8uRDyzS2AIw=; b=VX7ABb4PiNDP9j55AvwxelhupTEW2d/u1qgN+nwZLFsfViV7XCK7v6xYOIwmXweEg4 M6hQ+kpw7yv1tseLl/aX8lqlvgJ94z619Eidb0Nyl2Mv42xnMeZNAY/2Z3Rgm8qVJazG q6cCVf+YsRmmCZAfZtZww3M+5jjUXqDO3Za94= 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=RpfBuUCCDvQlvuNwR6ic7q+nxvfYM4kVjkTooHPWUPKlTcdbE50aswg/z7mEpFm+tO EjVn4G7QsZ2iyAeaKpH0h7Nsap0lj4WXReFSC83msFB4hsCJ/CDyNUx3cmmqEgWXWdZt pZUj1SwM+g5ADyv+OGXM+awVMZXzzT7hrOy5o= Received: by 10.204.63.9 with SMTP id z9mr5806830bkh.66.1283357616658; Wed, 01 Sep 2010 09:13:36 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id s34sm7409643bkk.1.2010.09.01.09.13.35 (version=SSLv3 cipher=RC4-MD5); Wed, 01 Sep 2010 09:13:35 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C7E7BA7.5090206@FreeBSD.org> Date: Wed, 01 Sep 2010 19:13:27 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: gljennjohn@googlemail.com References: <4C7A5C28.1090904@FreeBSD.org> <20100830110932.23425932@ernst.jennejohn.org> <4C7B82EA.2040104@FreeBSD.org> <20100830121148.11926306@ernst.jennejohn.org> <20100831102918.4f5404cc@ernst.jennejohn.org> <4C7CC1DE.1080907@FreeBSD.org> <4C7E2E8A.3030709@FreeBSD.org> <20100901141541.3e36c868@ernst.jennejohn.org> <20100901180926.4b04e2cc@ernst.jennejohn.org> In-Reply-To: <20100901180926.4b04e2cc@ernst.jennejohn.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, FreeBSD-Current Subject: Re: One-shot-oriented event timers management X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 16:13:45 -0000 Gary Jennejohn wrote: > On Wed, 1 Sep 2010 14:15:41 +0200 > Gary Jennejohn wrote: > >> On Wed, 01 Sep 2010 13:44:26 +0300 >> Alexander Motin wrote: >>> Updated patch: http://people.freebsd.org/~mav/timers_oneshot6.patch >>> >>> Patch also includes some optimizations to reduce lock contention. >>> >>> Thanks for testing. >>> >> OK, I'll give it a try, althought your previous patch seems to be working >> quite well. > > This has changed the behavior of the HPET timers somewhat. > > With patch5 I was seeing approximately equal interrupt counts from > hpet0 and hpet1. > > Now the majority of interrupts are on hpet0 by a factor of 6 to 10. > > Not a show stopper, just thought I'd mention it. > > One difference is that I didn't apply tm6292_idle.patch this time. That could be the reason. This patch removes up to few hundreds events per second. -- Alexander Motin