From owner-freebsd-hackers Thu Oct 4 12: 2:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 3D72B37B406; Thu, 4 Oct 2001 12:02:25 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id f94J2KE17608; Thu, 4 Oct 2001 22:02:20 +0300 (EEST) (envelope-from ru) Date: Thu, 4 Oct 2001 22:02:20 +0300 From: Ruslan Ermilov To: Mike Smith Cc: Guido van Rooij , freebsd-hackers@FreeBSD.ORG Subject: Re: grep memory footage Message-ID: <20011004220220.A17190@sunbay.com> References: <20011004180356.A76896@gvr.gvr.org> <200110041849.f94InnE01299@mass.dis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200110041849.f94InnE01299@mass.dis.org>; from msmith@FreeBSD.ORG on Thu, Oct 04, 2001 at 11:49:49AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Oct 04, 2001 at 11:49:49AM -0700, Mike Smith wrote: > > > > 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. > The sad thing is that GNU Grep has recently lost his maintainer. Let me know if you want additional details. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message