From owner-freebsd-threads@FreeBSD.ORG Fri Dec 12 23:18:55 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 E057516A4CE for ; Fri, 12 Dec 2003 23:18:55 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCA9243D1F for ; Fri, 12 Dec 2003 23:18:54 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id hBD7Isml001000; Sat, 13 Dec 2003 02:18:54 -0500 (EST) Date: Sat, 13 Dec 2003 02:18:53 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Christopher Sedore In-Reply-To: <20031212184457.S47162-100000@qwerty.maxwell.syr.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: RE: KSE system scope vs non system scope threads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2003 07:18:56 -0000 On Fri, 12 Dec 2003, Christopher Sedore wrote: > > On Mon, 8 Dec 2003, Daniel Eischen wrote: > > > > > Are you using gethostby* or anything else in libc that isn't > > thread-safe without using mutexes to protect them? > > I had a couple stray uses of strtok left over from an earlier non-threaded > version--I cleaned them up, but that didn't help. Whatever it was, it was > fixed in between 5.2Beta and 5.2RC1. I'm not having any performance > problems with system scope threads at all, and SMP works. Overall > performance is dramatically better than it had been previously. I'll try > process-scope kse threads again soon. I'm just happy I don't need to move > to a different platform. > > Now, I just have to track down why I'm getting EAGAIN from sendfile() > when I'm not using non-blocking sockets... Yes, well, try digging in the kernel for that. Neither libthr or libkse do anything WRT sendfile(), while libc_r needs a wrapper for it. -- Dan