From owner-freebsd-current@FreeBSD.ORG Wed Apr 2 15:32:43 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 E0F5637B401 for ; Wed, 2 Apr 2003 15:32:43 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7021C43FB1 for ; Wed, 2 Apr 2003 15:32:43 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0303.cvx22-bradley.dialup.earthlink.net ([209.179.199.48] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 190rie-00010j-00; Wed, 02 Apr 2003 15:32:36 -0800 Message-ID: <3E8B72C2.343AAEBD@mindspring.com> Date: Wed, 02 Apr 2003 15:31:14 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Peter Wemm References: <20030402205608.2FCF82A8A5@canning.wemm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a40fb066c8ff3aa929e4c43be8b8c277cc350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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:32:44 -0000 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. -- Terry