From bvandepe@obtuse.gsoft.com.au  Tue Oct 27 20:24:40 1998
Received: from obtuse.gsoft.com.au (obtuse.gsoft.com.au [203.38.152.98])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA16964
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Oct 1998 20:24:37 -0800 (PST)
          (envelope-from bvandepe@obtuse.gsoft.com.au)
Received: (from bvandepe@localhost)
	by obtuse.gsoft.com.au (8.8.8/8.8.7) id OAA29434;
	Wed, 28 Oct 1998 14:53:56 +1030 (CST)
	(envelope-from bvandepe)
Message-Id: <199810280423.OAA29434@obtuse.gsoft.com.au>
Date: Wed, 28 Oct 1998 14:53:56 +1030 (CST)
From: bvandepe@gsoft.com.au
Reply-To: bvandepe@gsoft.com.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: Excessive virtual memory consumption with gnuplot/2.2.7-STABLE
X-Send-Pr-Version: 3.2

>Number:         8473
>Category:       misc
>Synopsis:       Excessive virtual memory consumption with gnuplot/2.2.7-STABLE
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    n_hibma
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 27 20:30:00 PST 1998
>Closed-Date:    Fri Jul 16 01:34:27 PDT 1999
>Last-Modified:  Fri Jul 16 02:10:04 PDT 1999
>Originator:     Brenton Vandepeer
>Release:        FreeBSD 2.2.7-STABLE at 22nd September 1998
>Organization:
Genesis Software
>Environment:

2.2.7-STABLE 22/09/98
233 MHz Pentium
32 Mb RAM
630 Mb swap
gnuplot 3.5 PL340

>Description:

Invoking gnuplot 3.5 under FreeBSD 2.2.7-STABLE causes excessive
consumption of memory when displaying data. The problem seems to
occur above some threshold in input data file size. For example, 
input data files above about 1 Mb sometimes give rise to 150 - 
200 Mb of swap being consumed. One data file tested with a size 
of 3 Mb caused ~400 Mb of swap to be consumed. This problem is not
apparent on 3.0-RELEASE, nor on other OS platforms such as
Linux 2.0.0. Typical memory consumption for gnuplot with these
input data files running under OS's which do not display the
problem is about 10-20 Mb. (Not 200-400 Mb!)

>How-To-Repeat:

gnuplot gnuplot_script_file

I have a gzipped tar file of the script and data which I
can make available on request. It's ~200 kb in size.

>Fix:
	
1. Run under 3.0. 
2. Allocate more swap space, remove user process limits and make a
   pot of coffee while you wait for it to run.
3. Don't use gnuplot.

>Release-Note:
>Audit-Trail:

From: Thomas Gellekum <tg@ihf.rwth-aachen.de>
To: bvandepe@gsoft.com.au
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/8473: Excessive virtual memory consumption with  gnuplot/2.2.7-STABLE
Date: 28 Oct 1998 08:08:40 +0100

 bvandepe@gsoft.com.au writes:
 
 > >Description:
 > 
 > Invoking gnuplot 3.5 under FreeBSD 2.2.7-STABLE causes excessive
 > consumption of memory when displaying data. The problem seems to
 
 Funny. I had no problems displaying 3 MB of data (2.2.7-stable,
 gnuplot-3.5.340). The machine certainly didn't use that much VM.
 
 > >How-To-Repeat:
 > 
 > gnuplot gnuplot_script_file
 > 
 > I have a gzipped tar file of the script and data which I
 > can make available on request. It's ~200 kb in size.
 
 Could you send that to me?
 
 tg
Responsible-Changed-From-To: freebsd-bugs->n_hibma 
Responsible-Changed-By: n_hibma 
Responsible-Changed-When: Fri Jul 16 01:27:24 PDT 1999 
Responsible-Changed-Why:  
Make sure I don't forgot to close this one in a while. 
State-Changed-From-To: open->closed 
State-Changed-By: n_hibma 
State-Changed-When: Fri Jul 16 01:34:27 PDT 1999 
State-Changed-Why:  
This look like a bnuplot problem. Will give Brenton some hints on possible 
problems and solutions, but this is not a problem of the OS. 

From: Nick Hibma <nick.hibma@jrc.it>
To: freebsd-gnats-submit@freebsd.org, bvandepe@gsoft.com.au
Cc:  
Subject: Re: kern/8473: Excessive virtual memory consumption with 
 gnuplot/2.2.7-STABLE
Date: Fri, 16 Jul 1999 10:37:58 +0200

 Was the installation from a package or a port? If it was a port, did you
 compile the port on that machine? If not, could you recompile it by
 executing the commands
 
 	# remove the old one
 	pkg_delete `pkg_info | awk '/gnuplot/ {print $1}'`
 
 	# install the new version
 	cd /usr/ports/math/gnuplot
 	make
 	make install
 
 Did you make any local modifications to either kernel or other sources
 in /usr/src? Run any patches?
 
 This problem looks very much like a problem that is caused by some
 incompatibility between FreeBSD and gnuplot. You might want to talk to
 chuckr@FreeBSD.org who is the maintainer of the port of gnuplot. Maybe
 he can give you a hint on how to solve your problem.
 
 Good luck!
 
 Nick
 
 -- 
 Paranoid:
    perl -e 'use strict;' -e ...
 
 ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy
 
>Unformatted:
