From owner-freebsd-current@FreeBSD.ORG Thu Sep 2 10:20:48 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 13D98106575A for ; Thu, 2 Sep 2010 10:20:48 +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 881758FC14 for ; Thu, 2 Sep 2010 10:20:46 +0000 (UTC) Received: by bwz20 with SMTP id 20so521173bwz.13 for ; Thu, 02 Sep 2010 03:20:45 -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=8gJuo/uyqg2CPPvsohs00IBq+KlFveXspCYsra3zTLk=; b=Xbx20Kr9JjPvz2yg7NvteTqNyHUNrsPaqApDIrwlCW4Ei5qboRC0570k/k2FzboPXO K1DhcAji4oA1uhE7ehdGYWciQHN0M88/ZLsVmGxsxM8unRH4LRh/qfwpThUMXl5qPLnA DQFRUmqLc3aFnKptMxXGexjGOSfAu6sk9lptE= 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=fpUrkgLeOdRLkRMPwdysvaR9a5m1rguHAuHURz5R6Q/5DrywS0JVsPX1GFLK0GYuxo J0V9SZedry6TezewQchBH9pw+F3YTu4dbxtoxr49/h3sekOLxFpIIy1O6izQks8oUea0 Fdj640yL7kiOG4tLuXj8A5slFmr0fHl6ZRBhg= Received: by 10.204.177.79 with SMTP id bh15mr6534600bkb.121.1283422845206; Thu, 02 Sep 2010 03:20:45 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 11sm282819bkj.23.2010.09.02.03.20.43 (version=SSLv3 cipher=RC4-MD5); Thu, 02 Sep 2010 03:20:44 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C7F7A6D.4070207@FreeBSD.org> Date: Thu, 02 Sep 2010 13:20:29 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Ian FREISLICH 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> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: Brandon Gooch , 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 10:20:48 -0000 Ian FREISLICH wrote: > 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 Nice. But 240 still quite a lot. Have you applied tm6292_idle.patch and was this system idle at the moment? > [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 It is the first time I see in practice system reporting 4 different ACPI C-states. What is this system? What CPU is there? Could you show me full `sysctl dev.cpu` output? -- Alexander Motin