From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 15 02:16:26 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21F7516A400 for ; Sat, 15 Apr 2006 02:16:26 +0000 (UTC) (envelope-from dragosi@web.de) Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3B7F43D45 for ; Sat, 15 Apr 2006 02:16:25 +0000 (GMT) (envelope-from dragosi@web.de) Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id D0F7F1F9A4FF for ; Sat, 15 Apr 2006 04:16:23 +0200 (CEST) Received: from [61.9.137.225] (helo=[192.168.60.100]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.106 #94) id 1FUaKl-0007Ok-00 for freebsd-hackers@freebsd.org; Sat, 15 Apr 2006 04:16:23 +0200 Mime-Version: 1.0 (Apple Message framework v749.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-hackers@freebsd.org From: Dragos Ionita Date: Sat, 15 Apr 2006 12:16:23 +1000 X-Mailer: Apple Mail (2.749.3) Sender: dragosi@web.de X-Sender: dragosi@web.de X-Mailman-Approved-At: Sat, 15 Apr 2006 02:40:49 +0000 Subject: grep out of memory error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 02:16:26 -0000 Hi, not sure that I'm in the right mailing list here, but I got myselft the 6.1-RC1 amd64 iso yesterday and installed it. I've got a minimum system running and just 10 minutes ago, I ran a 'grep' command and it returned an "out of memory" error. The command run was: grep -d recurse sasl /* The error caused: swap_pager: out of swap space swap_pager_getswapspace(16): failed HOSTNAME kernel: pid 618 (grep), uid 0, was killed: out of swap space Killed Not sure, but this seems a bit odd; I've got one GB of RAM and 512M of swap space allocated. Running top beside the command gives you a nice view of what's happening: All of the RAM is used up almost instantly and the the swap space. All in all, in about 3 seconds, I get that out of memory error. Again, I'm not an expert in these matters, but it seems odd that grep needs more than 1.5GB to grep (even if it's recursive from the root dir). Does anyone else experience that problem as well? Thanks, Dragos