From owner-freebsd-current@FreeBSD.ORG Thu Sep 2 09:35:14 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D193510656C4; Thu, 2 Sep 2010 09:35:14 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from inbound01.jnb1.gp-online.net (inbound01.jnb1.gp-online.net [41.161.16.135]) by mx1.freebsd.org (Postfix) with ESMTP id 69F198FC1B; Thu, 2 Sep 2010 09:35:14 +0000 (UTC) Received: from [41.154.88.19] (helo=clue.co.za) by inbound01.jnb1.gp-online.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Or6CN-0005O7-JY; Thu, 02 Sep 2010 11:35:12 +0200 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1Or5xj-0000Oo-Nh; Thu, 02 Sep 2010 11:20:03 +0200 Message-Id: To: Brandon Gooch From: Ian FREISLICH In-Reply-To: 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> <4C7EA696.3030901@FreeBSD.org> X-Attribution: BOFH Date: Thu, 02 Sep 2010 11:20:03 +0200 Cc: Alexander Motin , FreeBSD-Current Subject: Re: One-shot-oriented event timers management X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 09:35:14 -0000 On Wed, Sep 1, 2010 at 2:16 PM, Alexander Motin wrote: > Brandon Gooch wrote: >> This latest patch causes an interrupt storm with the HPET timer on my >> system. The machine took about 8 minutes to boot and bring me to a >> login prompt. System interactivity (i.e. input from keyboard, output >> on console) was fine, but after checking the output of `systat vmstat >> -1`, I saw the interrupt rate on each HPET entry was over 120k! >> >> Can I provide any useful detail? Of course, test patches are always welcom e :) > > I was able to reproduce alike storm in some situations. > > Try new version: http://people.freebsd.org/~mav/timers_oneshot7.patch Interrupt rates are definitely reduced. [mini] /usr/home/ianf $ vmstat -i interrupt total rate irq1: atkbd0 1154 1 irq9: acpi0 10829 15 irq16: ath0 uhci3+ 16226 23 irq18: uhci2 16 0 irq19: uhci1+ 7090 10 irq20: hpet0 169288 240 irq23: uhci0 ehci0 64 0 irq256: hdac0 187 0 Total 204854 291 [mini] /usr/home/ianf $ sysctl dev.cpu |grep usage dev.cpu.0.cx_usage: 0.00% 0.04% 0.80% 99.15% last 1601us dev.cpu.1.cx_usage: 0.00% 0.00% 0.65% 99.34% last 2078us Ian -- Ian Freislich