From owner-freebsd-hackers Thu Oct 4 9: 4: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gvr.gvr.org (gvr.gvr.org [212.61.40.17]) by hub.freebsd.org (Postfix) with ESMTP id 13FBA37B403 for ; Thu, 4 Oct 2001 09:03:59 -0700 (PDT) Received: by gvr.gvr.org (Postfix, from userid 657) id D3A33586C; Thu, 4 Oct 2001 18:03:56 +0200 (CEST) Date: Thu, 4 Oct 2001 18:03:56 +0200 From: Guido van Rooij To: freebsd-hackers@freebsd.org Subject: grep memory footage Message-ID: <20011004180356.A76896@gvr.gvr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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? -Guido To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message