From owner-p4-projects Sat May 18 20:37:27 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A406537B40B; Sat, 18 May 2002 20:37:20 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by hub.freebsd.org (Postfix) with ESMTP id 67E6437B40D for ; Sat, 18 May 2002 20:37:18 -0700 (PDT) Received: (qmail 29072 invoked from network); 19 May 2002 03:37:17 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 19 May 2002 03:37:17 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g4J3bDF84402; Sat, 18 May 2002 23:37:13 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020518233041.X49505-100000@mail.chesapeake.net> Date: Sat, 18 May 2002 23:37:03 -0400 (EDT) From: John Baldwin To: Jeff Roberson Subject: Re: PERFORCE change 11120 for review Cc: Jonathan Mini , Julian Elischer , Perforce Change Reviews , Peter Wemm , Jeff Roberson Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 19-May-2002 Jeff Roberson wrote: > On Sat, 18 May 2002, John Baldwin wrote: > >> >> Yes, having init() called w/o it would be good since I think init() is >> the one that can actually block. For threads the init/fini setup >> and teardown thread stacks and the actual operation to do a thread stack >> teardown/setup can block so we need to not hold any locks when we do >> that. >> > > Why are we blocking in init? Is this a tsleep() block or short term lock > block? It may add a few lock/unlock calls to uma but that should be ok > since it's on a per slab basis. We are allocating a thread stack to attach to the thread structures (IIRC). Jonathan would know the details better. Perhaps we need a slightly different paradigm where we use a zone of thread stacks the init and fini of thread structures use, but I'm not sure. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message