From owner-freebsd-current@FreeBSD.ORG Wed Apr 2 15:40:16 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C54137B401 for ; Wed, 2 Apr 2003 15:40:16 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3192543FA3 for ; Wed, 2 Apr 2003 15:40:16 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 1550D2A8A7; Wed, 2 Apr 2003 15:40:16 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Terry Lambert In-Reply-To: <3E8B72C2.343AAEBD@mindspring.com> Date: Wed, 02 Apr 2003 15:40:16 -0800 From: Peter Wemm Message-Id: <20030402234016.1550D2A8A7@canning.wemm.org> cc: csujun@21cn.com cc: current@FreeBSD.org Subject: Re: libthr and 1:1 threading. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 23:40:16 -0000 Terry Lambert wrote: > Peter Wemm wrote: > > No. It gives the ability for a thread to block on a syscall without > > stalling the entire system. Just try using mysqld on a system using libc_r > > and heavy disk IO. You can't select() on a read() from disk. Thats the > > ultimate reason to do it. The SMP parallelism is a bonus. > > Bug in FreeBSD's NBIO implementation. A read() that would result > in page-in needs to queue the request, but return EAGAIN to user > space to indicate the request cannot be satisfied. Making select() > come true for disk I/O after the fault is satisfied is a seperate > issue. Probably need to pass the fd all the way down. Umm Terry.. we have zero infrastructure to support this. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5