Subject: Re: bin/8681: grep may bomb out with "memory exhausted"
To: R. C. Dowdeswell <email@example.com>
From: Richard Earnshaw <firstname.lastname@example.org>
Date: 10/28/1999 11:04:23
> Why not mmap(2) the file MAP_SHARED and PROT_READ. It's not like grep
> is going to modify the pages, and shared pages shouldn't be counted
> towards memory usage as they are only backed on disk.
I haven't looked at the code, but it's probably to avoid having to