From owner-freebsd-stable@FreeBSD.ORG Thu Nov 30 06:30:50 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 19EEE16A515 for ; Thu, 30 Nov 2006 06:30:50 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from alnrmhc11.comcast.net (alnrmhc11.comcast.net [206.18.177.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2FAA43CA3 for ; Thu, 30 Nov 2006 06:30:43 +0000 (GMT) (envelope-from jdc@koitsu.dyndns.org) Received: from icarus.home.lan (failure[67.174.220.97]) by comcast.net (alnrmhc11) with ESMTP id <20061130063038b1100nnqu9e>; Thu, 30 Nov 2006 06:30:49 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 983FF1FA01F; Wed, 29 Nov 2006 22:30:18 -0800 (PST) Date: Wed, 29 Nov 2006 22:30:18 -0800 From: Jeremy Chadwick To: Kris Kennaway Message-ID: <20061130063018.GA24865@icarus.home.lan> Mail-Followup-To: Kris Kennaway , "van Osnabrugge, Sean" , freebsd-stable@freebsd.org References: <7883F37393F1D44990888174C2E5E91222666A@TSV-EXCHANGE.ohhllp.com> <20061130044123.GA19761@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061130044123.GA19761@xor.obsecurity.org> X-PGP-Key: http://jdc.parodius.com/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-stable@freebsd.org, "van Osnabrugge, Sean" Subject: Re: grep: memory exhausted X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 06:30:50 -0000 On Wed, Nov 29, 2006 at 11:41:23PM -0500, Kris Kennaway wrote: > Try increasing this. I think grep mmaps the file, so the large file > could be exceeding your limit. According to the manpage, grep uses read(2) unless you specify --mmap which then (obviously) uses mmap(2). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |