From owner-freebsd-smp@FreeBSD.ORG Tue Oct 26 17:26:03 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7163716A4CE; Tue, 26 Oct 2004 17:26:03 +0000 (GMT) Received: from ms-dienst.rz.rwth-aachen.de (ms-1.rz.RWTH-Aachen.DE [134.130.3.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id D187C43D1F; Tue, 26 Oct 2004 17:26:02 +0000 (GMT) (envelope-from chris@unixpages.org) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0I6700474CFC50@ms-dienst.rz.rwth-aachen.de>; Tue, 26 Oct 2004 19:26:01 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Tue, 26 Oct 2004 19:26:00 +0200 (MEST) Received: from haakonia.hitnet.rwth-aachen.de (haakonia.hitnet.RWTH-Aachen.DE [137.226.181.92])i9QHPxYi020657; Tue, 26 Oct 2004 19:25:59 +0200 (MEST) Received: from gondor.middleearth (gondor.middleearth [192.168.1.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))(Postfix) with ESMTP id 8A40E2846D; Tue, 26 Oct 2004 19:25:54 +0200 (CEST) Received: by gondor.middleearth (Postfix, from userid 1001) id 33B732281E; Tue, 26 Oct 2004 19:25:54 +0200 (CEST) Date: Tue, 26 Oct 2004 19:25:54 +0200 From: Christian Brueffer In-reply-to: <84dead7204101909093c3a6f27@mail.gmail.com> To: Joseph Koshy Message-id: <20041026172553.GD64034@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary=lMM8JwqTlfDpEaS6; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.3-BETA7 X-PGP-Key: http://people.freebsd.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <84dead7204101320022bd6602e@mail.gmail.com> <200410141441.56479.jhb@FreeBSD.org> <84dead7204101909093c3a6f27@mail.gmail.com> cc: freebsd-smp@freebsd.org Subject: Re: Moving a kthread between CPUs? X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 17:26:03 -0000 --lMM8JwqTlfDpEaS6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 19, 2004 at 09:39:14PM +0530, Joseph Koshy wrote: > > In 5.x there's a sched_bind() interface that can be used to pin a threa= d to an > > arbitrary CPU. >=20 > sched_bind() could work. Thanks. >=20 > A quick grep didn't reveal any uses of sched_{bind,unbind} inside the > kernel though ... It's used in src/sys/kern/sched_ule.c and src/sys/kern/sched_4bsd.c. - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --lMM8JwqTlfDpEaS6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBfoihbHYXjKDtmC0RAqEUAKCj9DjnpbbGMVrEvA/ZYd2kiqHx1wCffyAL ytfEUrjByzu79CZRFsG8Pt0= =+gNB -----END PGP SIGNATURE----- --lMM8JwqTlfDpEaS6-- From owner-freebsd-smp@FreeBSD.ORG Tue Oct 26 21:15:47 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2195F16A541 for ; Tue, 26 Oct 2004 21:15:47 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE4C843D2D for ; Tue, 26 Oct 2004 21:15:46 +0000 (GMT) (envelope-from john@baldwin.cx) Received: (qmail 29830 invoked from network); 26 Oct 2004 21:15:46 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 26 Oct 2004 21:15:46 -0000 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i9QLFdpH009566; Tue, 26 Oct 2004 17:15:39 -0400 (EDT) (envelope-from john@baldwin.cx) Received: from zion.baldwin.cx (localhost [127.0.0.1]) by zion.baldwin.cx (8.12.10/8.12.10) with ESMTP id i9QLFd8h015292; Tue, 26 Oct 2004 17:15:39 -0400 (EDT) (envelope-from john@zion.baldwin.cx) Received: from localhost (localhost [[UNIX: localhost]]) by zion.baldwin.cx (8.12.10/8.12.10/Submit) id i9QLFdWJ015291; Tue, 26 Oct 2004 17:15:39 -0400 (EDT) (envelope-from john) From: John Baldwin To: Christian Brueffer Date: Tue, 26 Oct 2004 17:01:35 -0400 User-Agent: KMail/1.6 References: <84dead7204101320022bd6602e@mail.gmail.com> <84dead7204101909093c3a6f27@mail.gmail.com> <20041026172553.GD64034@unixpages.org> In-Reply-To: <20041026172553.GD64034@unixpages.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200410261701.35916.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: freebsd-smp@freebsd.org cc: Joseph Koshy Subject: Re: Moving a kthread between CPUs? X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 21:15:48 -0000 On Tuesday 26 October 2004 01:25 pm, Christian Brueffer wrote: > On Tue, Oct 19, 2004 at 09:39:14PM +0530, Joseph Koshy wrote: > > > In 5.x there's a sched_bind() interface that can be used to pin a > > > thread to an arbitrary CPU. > > > > sched_bind() could work. Thanks. > > > > A quick grep didn't reveal any uses of sched_{bind,unbind} inside the > > kernel though ... > > It's used in src/sys/kern/sched_ule.c and src/sys/kern/sched_4bsd.c. It's implemented there, but not used. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/