From owner-freebsd-current Fri Jan 8 08:34:31 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA16011 for freebsd-current-outgoing; Fri, 8 Jan 1999 08:34:31 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from chiark.greenend.org.uk (chiark.greenend.org.uk [195.224.76.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA15995 for ; Fri, 8 Jan 1999 08:34:28 -0800 (PST) (envelope-from fanf@chiark.greenend.org.uk) Received: from fanf by chiark.greenend.org.uk with local (Exim 2.02 #1) id 0zyerB-0005ey-00 (Debian); Fri, 8 Jan 1999 16:33:53 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <13974.13169.69838.513388@chiark.greenend.org.uk> Date: Fri, 8 Jan 1999 16:33:53 +0000 (GMT) From: Tony Finch To: "Richard Seaman, Jr." cc: current@FreeBSD.ORG Subject: Re: Squid + linuxthreads in action In-Reply-To: <19990108092148.A377@tar.com> References: <19990108092148.A377@tar.com> X-Mailer: VM 6.47 under Emacs 19.34.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Richard Seaman, Jr. writes: > Tony Finch wrote: > > > > We've been trying out Squid compiled to use async-io with linuxthreads > > on FreeBSD-current today. > > > > When the parent Squid process shuts down it leaves behind a pile of > > orphan processes (the async-io handler threads). A glance at the aio > > code reveals that Squid expects the pthread library to kill them -- > > they just loop indefinitely. They also keep the listen socket open, so > > the RunCache script can't restart Squid :-( > > Ok. I finally got squid compiled and running. When I do any of the > following: > > squid -k shutdown > squid -k kill > squid -k interrupt > > all the squid processes get killed. After a short time squid > restarts (I assume this is RunCache that does this). I seem > to get 18 processes (threads) going. That sounds right -- the main process, a management thread, and 16 IO pumps. > When you say you get orphan processes, is this what you're > doing? Yes. Or at least is was, but I can't reproduce it now. Sorry for causing trouble :-( Tony. -- f.a.n.finch fanf@demon.net dot@dotat.at To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message