From owner-freebsd-current@FreeBSD.ORG Wed Jan 21 13:39:20 2009 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 D9BC610656F7 for ; Wed, 21 Jan 2009 13:39:20 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63902.mail.re1.yahoo.com (web63902.mail.re1.yahoo.com [69.147.97.117]) by mx1.freebsd.org (Postfix) with SMTP id 75F178FC17 for ; Wed, 21 Jan 2009 13:39:20 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 14749 invoked by uid 60001); 21 Jan 2009 13:39:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=mJHa//ufdDdjzk6ElTTGTpTi3e0W7v9w8CfI5YROdn5zj2V8HteAL/C7Q6GpcMZdgBO0wvMhvk8wqPlYwHA/mZSxceJudxOtvRdyYk6Tcpic7o686pVUI00MtJoz3gu46kJjAGsMI/0oCYiOby4Q0ZEtKptLJ3TCuHoX3rYfSVA=; X-YMail-OSG: XY2HdV8VM1km6vUhnESmmooVztOeazU2QpepIsxEexVosRYPUHN8kZyi89ePBDjT94Eyk4iPrsNvZb9U5u7dZHfHJ_mB4WoIPJGiNBxtOzMq4z864SYDVNJoDblZE5CDnKFO_5NTIsBTWhqmyBhFLX6G39_eECQczfMC_m7Nxmolq21wRiU7JFYXa_cCjUk- Received: from [98.242.222.229] by web63902.mail.re1.yahoo.com via HTTP; Wed, 21 Jan 2009 05:39:19 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Wed, 21 Jan 2009 05:39:19 -0800 (PST) From: Barney Cordoba To: freebsd-current@freebsd.org, Ivan Voras In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <423770.14655.qm@web63902.mail.re1.yahoo.com> Cc: Subject: Re: Binding timer interrupt to a cpu core X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: barney_cordoba@yahoo.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2009 13:39:22 -0000 --- On Wed, 1/21/09, Ivan Voras wrote: > From: Ivan Voras > Subject: Re: Binding timer interrupt to a cpu core > To: freebsd-current@freebsd.org > Date: Wednesday, January 21, 2009, 6:39 AM > Barney Cordoba wrote: > > Is there a way in 7.1 to bind a timer software > interrupt? I see cpuset for userland threads, but its not > clear how to do it within the kernel. > > Each CPU already has its own timer ticking: > > 3 users Load 0.00 0.00 0.00 Jan > 21 12:36 > > Mem:KB REAL VIRTUAL VN > PAGER SWAP > PAGER > Tot Share Tot Share Free in > out in > out > Act 2152484 21140 2945416 46804 169412 count > All 2267140 25916 7497096 71436 pages > Proc: > Interrupts > r p d s w Csw Trp Sys Int Sof Flt 19 > cow 3204 total > 6 170 476 213 119 4 147 203 101 > zfod > atkbd0 1 > > ozfod > ata0 irq14 > 0.1%Sys 0.1%Intr 0.0%User 0.0%Nice 99.8%Idle > %ozfod 1 > ciss0 uhci > | | | | | | | | | | | > daefr > uhci4 22 > 118 > prcfr 400 > cpu0: time > 51 dtbuf 173 > totfr 3 > bce0 256 > Namei Name-cache Dir-cache 100000 desvn > react 400 > cpu5: time > Calls hits % hits % 83412 numvn > pdwak 400 > cpu7: time > 33 28 85 1 3 24999 frevn > pdpgs 400 > cpu6: time > > intrn 400 > cpu3: time > Disks da0 pass0 478268 > wire 400 > cpu4: time > KB/t 18.00 0.00 2240976 > act 400 > cpu2: time > tps 2 0 1131116 > inact 400 > cpu1: time > MB/s 0.04 0.00 129228 > cache > %busy 0 0 40184 > free > > > Interrupts can be bound to CPUs but only by using APIs > within the kernel > (there's no userland utility for it). I'm asking HOW, to do it within the kernel. When I said timer, I meant software interrupts created with timeout() Barney