From owner-freebsd-questions@FreeBSD.ORG Thu Oct 4 20:31:33 2007 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 5A27416A418 for ; Thu, 4 Oct 2007 20:31:33 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-62.bluehost.com (outbound-mail-62.bluehost.com [69.89.21.22]) by mx1.freebsd.org (Postfix) with SMTP id 33BCA13C494 for ; Thu, 4 Oct 2007 20:31:33 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: (qmail 15621 invoked by uid 0); 4 Oct 2007 20:31:32 -0000 Received: from unknown (HELO box183.bluehost.com) (69.89.25.183) by mailproxy4.bluehost.com with SMTP; 4 Oct 2007 20:31:32 -0000 Received: from c-24-9-123-251.hsd1.co.comcast.net ([24.9.123.251] helo=demeter.hydra) by box183.bluehost.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1IdXM4-00082b-7c for freebsd-questions@freebsd.org; Thu, 04 Oct 2007 14:31:32 -0600 Received: from demeter.hydra (localhost [127.0.0.1]) by demeter.hydra (8.13.6/8.13.6) with ESMTP id l93Mp9ij046206 for ; Wed, 3 Oct 2007 16:51:09 -0600 (MDT) (envelope-from perrin@apotheon.com) Received: (from ren@localhost) by demeter.hydra (8.13.6/8.13.6/Submit) id l93Mp9ih046205 for freebsd-questions@freebsd.org; Wed, 3 Oct 2007 16:51:09 -0600 (MDT) (envelope-from perrin@apotheon.com) X-Authentication-Warning: demeter.hydra: ren set sender to perrin@apotheon.com using -f Date: Wed, 3 Oct 2007 16:51:08 -0600 From: Chad Perrin To: freebsd-questions@freebsd.org Message-ID: <20071003225108.GB46149@demeter.hydra> Mail-Followup-To: freebsd-questions@freebsd.org References: <4704DFF3.9040200@ibctech.ca> <20071003200013.GD45244@demeter.hydra> <47054A1D.2000701@ibctech.ca> <200710042222.25488.wundram@beenic.net> <47054C2E.8040304@ibctech.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47054C2E.8040304@ibctech.ca> User-Agent: Mutt/1.4.2.3i X-Identified-User: {737:box183.bluehost.com:apotheon:apotheon.net} {sentby:bopbeforesmtp 24.9.123.251 authed with apotheon.com} X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box183.bluehost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [737 12] / [47 12] X-AntiAbuse: Sender Address Domain - apotheon.com Subject: Re: Managing very large files 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, 04 Oct 2007 20:31:33 -0000 On Thu, Oct 04, 2007 at 04:25:18PM -0400, Steve Bertrand wrote: > Heiko Wundram (Beenic) wrote: > > Am Donnerstag 04 Oktober 2007 22:16:29 schrieb Steve Bertrand: > >> This is what I am afraid of. Just out of curiosity, if I did try to read > >> the entire file into a Perl variable all at once, would the box panic, > >> or as the saying goes 'what could possibly go wrong'? > > > > Perl most certainly wouldn't make the box panic (at least I hope so :-)), but > > would barf and quit at some point in time when it can't allocate any more > > memory (because all memory is in use). Meanwhile, your swap would've filled > > up completely, and your box would've become totally unresponsive, which goes > > away instantly the second Perl is dead/quits. > > > > Try it. ;-) (at your own risk) > > LOL, on a production box?...nope. > > Hence why I asked here, probing if someone has made this mistake before > I do ;) > > The reason for the massive file size was my haste in running out of the > office on Friday and forgetting to kill the tcpdump process before the > weekend began. Sounds like you may want a Perl script to automate managing your tcpdumps. Just a thought. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Kent Beck: "I always knew that one day Smalltalk would replace Java. I just didn't know it would be called Ruby."