Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Oct 2001 11:49:49 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Guido van Rooij <guido@gvr.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: grep memory footage 
Message-ID:  <200110041849.f94InnE01299@mass.dis.org>
In-Reply-To: Your message of "Thu, 04 Oct 2001 18:03:56 %2B0200." <20011004180356.A76896@gvr.gvr.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> When fgrepping a huge file (say 10GB) for a non-existing string,
> fgrep's memory size skyrockets. At a certain point in time its SIZE was 391M
> (RSS was about 30MB) and the system got rather unreponsive. The
> string was about 12 bytes big, and we fail to see why grep would
> need so much.
> 
> Is there a good explanation for this?

It's a known bug in grep; there are probably a bunch of PRs outstanding 
on it.  We need grep to be updated.

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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