From owner-freebsd-current@FreeBSD.ORG Fri Apr 16 07:53:52 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6C2D16A4CF for ; Fri, 16 Apr 2004 07:53:52 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66E8E43D41 for ; Fri, 16 Apr 2004 07:53:52 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i3GErk98067804; Fri, 16 Apr 2004 09:53:46 -0500 (CDT) (envelope-from dan) Date: Fri, 16 Apr 2004 09:53:46 -0500 From: Dan Nelson To: Tai-hwa Liang Message-ID: <20040416145346.GA86444@dan.emsphone.com> References: <040416140449E.61901@www.mmlab.cse.yzu.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <040416140449E.61901@www.mmlab.cse.yzu.edu.tw> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: /usr/bin/less weird memory consumption? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 14:53:53 -0000 In the last episode (Apr 16), Tai-hwa Liang said: > Hi, > > Anyone tried to view a file contains *hugh* line with /usr/bin/less in > -CURRENT? > > Sample file: > > dd if=/dev/zero bs=512 count=1500 | tr '\00' ' ' > test.txt > > On my -CURRENT box cvsup'd this morning, "/usr/bin/less text.txt" consumes > about 511 MBytes of memory(see 'top'). -STABLE(less 358) and less 381 on > Debian doesn't seem to have such problem, though. Yes, I've been seeing it for a while, too, but haven't tried to track down the cause. -- Dan Nelson dnelson@allantgroup.com