Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2006 22:30:18 -0800
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        freebsd-stable@freebsd.org, "van Osnabrugge, Sean" <svanosnabrugge@osler.com>
Subject:   Re: grep: memory exhausted
Message-ID:  <20061130063018.GA24865@icarus.home.lan>
In-Reply-To: <20061130044123.GA19761@xor.obsecurity.org>
References:  <7883F37393F1D44990888174C2E5E91222666A@TSV-EXCHANGE.ohhllp.com> <20061130044123.GA19761@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061130063018.GA24865>