From owner-freebsd-questions@FreeBSD.ORG Thu Oct 22 23:20:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A85DC106568D for ; Thu, 22 Oct 2009 23:20:27 +0000 (UTC) (envelope-from lists@rhavenn.net) Received: from smtp184.dfw.emailsrvr.com (smtp184.dfw.emailsrvr.com [67.192.241.184]) by mx1.freebsd.org (Postfix) with ESMTP id 7CB498FC13 for ; Thu, 22 Oct 2009 23:20:27 +0000 (UTC) Received: from relay8.relay.dfw.mlsrvr.com (localhost [127.0.0.1]) by relay8.relay.dfw.mlsrvr.com (SMTP Server) with ESMTP id 02691400F7; Thu, 22 Oct 2009 19:20:27 -0400 (EDT) Received: by relay8.relay.dfw.mlsrvr.com (Authenticated sender: rhavenn-AT-rhavenn.net) with ESMTPSA id D9668400ED; Thu, 22 Oct 2009 19:20:26 -0400 (EDT) Received: by alucard.int.rhavenn.net (Postfix, from userid 1000) id 8B67F11428D; Thu, 22 Oct 2009 15:20:20 -0800 (AKDT) Date: Thu, 22 Oct 2009 15:20:20 -0800 From: Henrik Hudson To: cpghost Message-ID: <20091022232020.GA7661@alucard.int.rhavenn.net> References: <20091021204448.GA7125@phenom.cordula.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091021204448.GA7125@phenom.cordula.ws> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org Subject: Re: rTorrent + FreeBSD + pf = freeze? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2009 23:20:27 -0000 On Wed, 21 Oct 2009, cpghost wrote: > Hi, > > could a resource leak or bug in pf(4) crash a RELENG_7 router (as of > Oct 6th)? > > I'm experiencing frequent crashes on my soekris net4801 home router > for some months now, and I'm wondering if it could be some kind of > pf-related bug similar to this on OpenBSD: > > http://www.mail-archive.com/misc@openbsd.org/msg58042.html > > More precisely, when I fire up rtorrent-devel on some *other* machine > (not the router!), everything runs fine at first. It could also run > very fine for many days. BUT should I start a torrent with a large > number of seeders which could saturate my link for an extended period > of time, the soekris router would suddenly freeze... but not > immediately: more like a few hours (3 to 6) or so of relatively heavy > traffic. Only a hard reboot of the router would help. Please note > that rtorrent is NOT running on the router, only its traffic is being > redirected through the router. > > So I'm suspecting some bug / resource leak in pf that would bring the > kernel down somehow. What kind of resources should I monitor (and > how)? Maybe that could bring some clues? > > Oh, before anybody asks: I have no crashdumps, the router freezes > totally without panicking. And it doesn't recover automatically > even after many hours. Possibly a heat issue? I've seen many a little dlink style or similar router work fine until it has to churn through a lot of packets and then it just can't handle it, starts getting warm doing all the computation and then eventually freezes. I'm not ruling out a memory leak or similar, but I'm currently doing the same with a little atom ITX board and it handles all the torrents for myself and the roomies without issue. I'm using rtorrent myself with pf and 8.0-RC1-stable. I believe the pf code is backported to 7. Also, if it was just a memory leak it will still happen with non-torrent traffic, just most likely slower. Have you tried throttling back the amount of connections and speed that rtorrent makes? henrik -- Henrik Hudson lists@rhavenn.net ----------------------------------------- "God, root, what is difference?" Pitr; UF