Re: /usr/bin/less weird memory consumption?

From: Tai-hwa Liang (avatar_at_mmlab.cse.yzu.edu.tw)
Date: 04/17/04

  • Next message: Andrew Derbyshire: "RE: RFC: ported NetBSD if_bridge"
    Date: Sat, 17 Apr 2004 11:13:48 +0800 (CST)
    To: Alex Vasylenko <lxv@omut.org>
    
    

    On Fri, 16 Apr 2004, Alex Vasylenko wrote:
    > Tai-hwa Liang wrote:
    > > 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.
    >
    > There's a memory leak. The latest less (382) doesn't have this problem.
    > Use attached patch.
    >

    That works like a charm! Any chance would this patch being committed into
    the tree?
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Andrew Derbyshire: "RE: RFC: ported NetBSD if_bridge"

    Relevant Pages

    • Re: Building XFree 4.3
      ... >>Hi everyone I'm tring to build Xfree 4.3 on my debian system because I ... >need this patch? ... >>source package. ...
      (Debian-User)
    • Re: FastMM4
      ... D6 does have a memory leak when used to create an ISAPI application. ... modify it as follows (note the Patch ... //Patch D6.2 not calling WebModule Destroy. ... while ExitProc nil do ...
      (borland.public.delphi.language.basm)
    • Re: The server was unable to allocate from the system nonpaged pool because the pool was empty
      ... I checked in www.nai.com and found a Patch do resolve this problem. ... > This is typically caused by a memory leak on the system. ... Did you install ... > Platform Server Setup Group ...
      (microsoft.public.win2000.setup)
    • Re: reiser4 and megaraid problems with debian 2.6.5
      ... >> I am using the debian prepared kernel with the debian reiser4 patch. ...
      (Linux-Kernel)
    • Re: Debian
      ... I'm trying to use the WCCPv2 patch by Visolve with Squid-2.5.9-10 ... The existing patch modifies autoconf stuff. ... There is no automake-1.5 version for Debian, ... I think that tomorrow I'll have a quality package with enabled-wccpv2 ...
      (Debian-User)