From owner-freebsd-questions@FreeBSD.ORG Fri Oct 5 13:29:12 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 554A516A46B for ; Fri, 5 Oct 2007 13:29:12 +0000 (UTC) (envelope-from bsilver@chrononomicon.com) Received: from trans-warp.net (hyperion.trans-warp.net [216.37.208.37]) by mx1.freebsd.org (Postfix) with ESMTP id EE87F13C45A for ; Fri, 5 Oct 2007 13:29:11 +0000 (UTC) (envelope-from bsilver@chrononomicon.com) Received: from [127.0.0.1] (unverified [65.193.73.208]) by trans-warp.net (SurgeMail 3.8f2) with ESMTP id 137794956-1860479 for multiple; Fri, 05 Oct 2007 09:28:59 -0400 Message-ID: <47063C23.5080701@chrononomicon.com> Date: Fri, 05 Oct 2007 09:29:07 -0400 From: Bart Silverstrim User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 To: Steve Bertrand References: <4704DFF3.9040200@ibctech.ca> <20071003200013.GD45244@demeter.hydra> <47054A1D.2000701@ibctech.ca> <200710042222.25488.wundram@beenic.net> <47054C2E.8040304@ibctech.ca> In-Reply-To: <47054C2E.8040304@ibctech.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: bsilver@chrononomicon.com Cc: "Heiko Wundram \(Beenic\)" , freebsd-questions@freebsd.org 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: Fri, 05 Oct 2007 13:29:12 -0000 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 ;) Isn't that what VMWare is for? ;-)