From owner-freebsd-threads@FreeBSD.ORG Sat Aug 9 11:22:07 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 596C137B401; Sat, 9 Aug 2003 11:22:07 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8E8B43FE9; Sat, 9 Aug 2003 11:22:06 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h79IM5uN014603; Sat, 9 Aug 2003 14:22:06 -0400 (EDT) Date: Sat, 9 Aug 2003 14:22:05 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Paul Williams In-Reply-To: <000501c35e9e$2bcacaa0$6801a8c0@insightbb.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-smp@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: Processor affinity and KSE sample code X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2003 18:22:07 -0000 On Sat, 9 Aug 2003, Paul Williams wrote: > Hello, > > I'm trying to pin a group of processes to a particular processor in FreeBSD > 5.1-CURRENT. I've seen some discussion on older mailing lists about KSE's > possibly supporting this, but I am not seeing how to do so using the current > interface. Is this possible now or planned for future work? Also, does It isn't implemented yet. I had always wanted to implement a kse_bind() though. > someone have examples of how to use KSEs? The test code included with the > kernel isn't too enlightening (at least not for a KSE novice). It's much easier just to use libpthread^Wlibkse and threads. Scope system threads get their own KSE, while scope process threads all run on a set of N kses (where N = kern.threads.virtual_cpu). -- Dan Eischen