From owner-freebsd-current Sun Jul 21 20:22:28 2002 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 8ED7037B400 for ; Sun, 21 Jul 2002 20:22:25 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3A3A43E65 for ; Sun, 21 Jul 2002 20:22:24 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g6M3MNKi062451; Sun, 21 Jul 2002 21:22:23 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g6M3MNGx062450; Sun, 21 Jul 2002 21:22:23 -0600 (MDT) (envelope-from ken) Date: Sun, 21 Jul 2002 21:22:23 -0600 From: "Kenneth D. Merry" To: Marc Recht Cc: current@FreeBSD.ORG Subject: Re: mysterious dead-locks with system ssh Message-ID: <20020721212223.A62379@panzer.kdm.org> References: <1026680887.757.9.camel@leeloo.intern.geht.de> <20020721222955.7658986f.marc@informatik.uni-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020721222955.7658986f.marc@informatik.uni-bremen.de>; from marc@informatik.uni-bremen.de on Sun, Jul 21, 2002 at 10:29:55PM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jul 21, 2002 at 22:29:55 +0200, Marc Recht wrote: > > I'm getting strange dead-locks/complete lookups when I use the system > > ssh with port forwarding. Using something like: > > ssh -L8080:remote:8080 account@remote > > to forward a remote apache to my local box. When I access > > http://localhost:8080/ not later than the third click on link (or > > pressing reload) my box locks up completely. I don't even get into the > > debugger or get a crash dump. The box is just plain dead. Though > > "normal" SSH works perfectly and accessing a local (not forwarded) > > apache works, too. The world and kernel is of today and IIRC this > > actually did work last week (or the week before). > I've found the reason for this dead-lock. I had turned ZERO_COPY_SOCKETS on. > ESound/zero_copy_sockets causes the same dead-lock... Hmm, nothing has changed in the zero copy code, although lots of things are changing in the VM code and elsewhere in the kernel. Can you track down whether the problem is with zero copy send or receive? To figure this out, try disabling zero copy send and receive individually: sysctl -w kern.ipc.zero_copy.send=0 sysctl -w kern.ipc.zero_copy.receive=1 then sysctl -w kern.ipc.zero_copy.send=1 sysctl -w kern.ipc.zero_copy.receive=0 That'll help isolate the problem somewhat. It's also possible that it only happens with both turned on. Also, what sort of network interfaces do you have on your machine? What is the MTU? Are you running with SMP or not, and is WITNESS turned on or not? Would you be able to try a binary search to try to figure out where things broke for you? Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message