From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 14:28:08 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 6C01B1065697; Wed, 1 Sep 2010 14:28:08 +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 C3CBA8FC0C; Wed, 1 Sep 2010 14:28:07 +0000 (UTC) Received: by fxm4 with SMTP id 4so5533884fxm.13 for ; Wed, 01 Sep 2010 07:28: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=MXdQB02v2WarFXyqJ+for8/mDbHOOXSujNc03TfSAY0=; b=gOqqWb6H4LvAlsORt4Brwse2XxmhezNSd8yt/xV2TED5onVvqvjoSu4o4wATPJRSQp 1700U2dElBc+BaDUyj+jFawjZCxiuLcRNWVy3dV3+otHoyrYObUWFTW2NRekky7anotD yImAcyJaRT+nkPvfEW6Zae7ZhM3/CNN93hNFc= 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=oKMXXXccfZYG4Pw4tJnhCA2K53H+ahf6tZH0FGnJxA6xePFGwjShRmg+X2fByvMZAx Y9k54p6YLZGqW6y+JJvXHWWTUTlDuvDrbE374i8c55vk5D88uYAwBGFgEMH8Ez69SvEx 6nUsJ5mOSGXnuVitu9Oeb1PRFQhYIM55H9fLY= Received: by 10.223.112.10 with SMTP id u10mr7037714fap.50.1283351286611; Wed, 01 Sep 2010 07:28:06 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id b11sm4610776faq.30.2010.09.01.07.28.04 (version=SSLv3 cipher=RC4-MD5); Wed, 01 Sep 2010 07:28:05 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C7E62E7.8070309@FreeBSD.org> Date: Wed, 01 Sep 2010 17:27:51 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Alexander Leidinger References: <4C7A5C28.1090904@FreeBSD.org> <20100901161834.198574t14uxayygw@webmail.leidinger.net> In-Reply-To: <20100901161834.198574t14uxayygw@webmail.leidinger.net> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 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 14:28:08 -0000 Alexander Leidinger wrote: > Quoting Alexander Motin (from Sun, 29 Aug 2010 > 16:10:00 +0300): > >> I have actively tested this code for a few days on my amd64 Core2Duo >> laptop and i386 Core-i5 desktop system. With C2/C3 states enabled >> systems experience only about 100-150 interrupts per second, having HZ >> set to 1000. These events mostly caused by several event-greedy >> processes in our tree. I have traced and hacked several most aggressive >> ones in this patch: http://people.freebsd.org/~mav/tm6292_idle.patch . >> It allowed me to reduce down to as low as 50 interrupts per system, >> including IPIs! > > It looks like you are comming to a point where Powertop would be > helpful. There's a dtracified version of it available at the opensolaris > site (it would at least need some additional dtrace probes in our kernel). > > http://hub.opensolaris.org/bin/view/Project+tesla/Powertop Thank you for the link. I was thinking about it, but worried that it could be too Linux-specific. Nice to here there is closer alternative. I'll look on it. PS: Until it is ported, I've found that `top -m io -o vcsw` could also be useful. The only thing it can't show is in-kernel callout(9) calls. User and kernel processes wakeups still nicely visible there. -- Alexander Motin