From owner-freebsd-current@FreeBSD.ORG Sat Dec 27 23:17:17 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 B5AC116A4CE; Sat, 27 Dec 2003 23:17:17 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id B60A743D1F; Sat, 27 Dec 2003 23:17:16 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 955235C816; Sat, 27 Dec 2003 23:17:12 -0800 (PST) Date: Sat, 27 Dec 2003 23:17:12 -0800 From: Alfred Perlstein To: Daniel Eischen Message-ID: <20031228071712.GI9623@elvis.mu.org> References: <20031226101848.GD77132@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: davidxu@freebsd.org cc: current@freebsd.org Subject: Re: debugging kse 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: Sun, 28 Dec 2003 07:17:17 -0000 * Daniel Eischen [031227 22:41] wrote: > On Fri, 26 Dec 2003, Alfred Perlstein wrote: > > > I have a copy of webstone that will use kse available here: > > http://people.freebsd.org/~alfred/webstone/ > > Here's a diff to eliminate TLS usage in webstone. It can > be cleaned up further, and I can't see any reason for the > use of TLS. Operations on FILE should be thread-safe and > the remaining uses of TLS were mostly for temporary string > manipulations. > > http://people.freebsd.org/~deischen/webstone.diffs > > I haven't enabled threads, but it should be simple enough. > Note that you want the parent thread to call alarm(), not > each child thread (client). I'd have the parent thread use > sigwait() to catch the signal, set the flag for the other > clients to see, then join to the client threads. I don't > see any need for synchronization objects/semaphores. heh! A bit ahead of you over here... http://people.freebsd.org/~alfred/webstone/ > > It defaults to using kse, but with 5-current from today I see it spending > > a LOT of time in 'kserel' and not a lot of time doing work. This appears > > to happen after I run it once, then ^C the proocess. > > > > What is that? How can I debug this? > > I don't know. How can I run webstone? I don't have a webserver > set up at home and only have a slow dialup connection. You can have it hit localhost. It's not too shabby, my version respects the environment variable WEBSTONE_RSH, so if you set it to "ssh" then have the agent running or non-passphrased keys you can run it localcally. -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684