From owner-freebsd-current@FreeBSD.ORG Mon Mar 30 16:34:34 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 5BA851065675 for ; Mon, 30 Mar 2009 16:34:34 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63905.mail.re1.yahoo.com (web63905.mail.re1.yahoo.com [69.147.97.120]) by mx1.freebsd.org (Postfix) with SMTP id F19CA8FC1C for ; Mon, 30 Mar 2009 16:34:33 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 93414 invoked by uid 60001); 30 Mar 2009 16:34:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238430873; bh=/40JYUMqagZQ2Kli8eDQK3ugTjSdCPIT5T/KG5OTUso=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=dmH75fNTCIgWGO2L6uCvW2FHZRA3iT9OzO+dDUY9Jt+uXryBkvwybomsuENQUHRVh8iUBHkXmqaaIOIF2dVLpBV9YfANHzc+jxIDHvfq11mfQTWo+2ctZZ+bHqvcITJVidVVG4vZGAvrqOnjpRwgkFQqzLawx24S0NKLROUSGbs= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=VtdhAxSBpv+ARxTSmKZMh8yz4eWmYdxSaQMoanx8c4PkCIuJ4gn1pU9HEx49iCurGpmgaWXDtm7BkJW6S/tYOQyiaOHf18JGb9ZToMorQUjQ9E3TlnbXnTwSMQkZh0T8Vn3Q/gVx1ttsieRRURM8rrt8fo7rWF4AY5H/iZdB8gw=; Message-ID: <285609.93285.qm@web63905.mail.re1.yahoo.com> X-YMail-OSG: gij5o1UVM1lzRG8gVAaaUNxp3xadsgQUJN.nojqhcngdwy62Pj3h5xaSsIR6G95wkoa0XOBXRu1Ns7wzPmjAiBNJwJzAcmIXl32ucZGYct7Qm3FZcSIQTNJcVnOFiPtR9xpH46saIBlwQABiW4cDkoe4m97TXfJTsQRPgzsBqIFMqQiGmLiARAkkfDFK386GbpFfHlfWL9MecYgqwk99lVDllZSUpfkQ_Yy0FvM2I5VtY_jM0s_ixSmr_DCABk6lb2vpHeGo0YhGQhEWmdp6UF0- Received: from [98.242.222.229] by web63905.mail.re1.yahoo.com via HTTP; Mon, 30 Mar 2009 09:34:33 PDT X-Mailer: YahooMailWebService/0.7.289.1 Date: Mon, 30 Mar 2009 09:34:33 -0700 (PDT) From: Barney Cordoba To: freebsd-current@FreeBSD.org, John Baldwin In-Reply-To: <200903301100.57757.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: cpuset affinity control from within the kernel 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: Mon, 30 Mar 2009 16:34:34 -0000 --- On Mon, 3/30/09, John Baldwin wrote: > From: John Baldwin > Subject: Re: cpuset affinity control from within the kernel > To: freebsd-current@FreeBSD.org, barney_cordoba@yahoo.com > Date: Monday, March 30, 2009, 11:00 AM > On Sunday 29 March 2009 3:59:40 pm Barney Cordoba wrote: > > > > What tools are available for taskqueues, interrupts, > etc from within the > kernel? > > You can use BUS_BIND_INTR() for interrupts. You can use > 'sched_bind() / > sched_unbind()' in thread contexts. For example, to > pin taskqueue threads > (you should only do this for a private taskqueue you create > though) you can > simply enqueue a task to the thread that does a > 'sched_bind()'. > > -- > John Baldwin There doesn't seem to be a man page for those functions. Are there some docs somewhere? Can I bind to a set of cores as can be done with cpuset? Barney