Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: gnewman@world.std.com (Gary Newman)
Subject: Re: Alpha OSF1/2.0 server problem
Date: Mon, 29 Aug 1994 13:03:46 GMT	[thread overview]
Message-ID: <CvAsAB.9tE@world.std.com> (raw)
In-Reply-To: 33p02t$j5c@nyheter.chalmers.se

Torbj|rn Lindgren (tl@cd.chalmers.se) wrote:
: In article <33mb0k$gg1@sundog.tiac.net>,
: David Scarbro <hds@tang.tiac.net> wrote:
: >Under OSF 1.3, the excessive growth problem does not occur, but we observe 
: >the well known problem that the server does not return any memory to OSF. 
: >This is unpleasant, but is one we can live with.

: Well, the problem is that free-ing memory does *not* return the memory
: to the system under most versions of UNIX. Therefore memory that has
: been allocated won't be freed until the program terminates.

Actually, the problem is that "malloc" uses the "sbrk" call to extend
memory, and that cannot be undone to free the memory later.  A better
method would be to use "mmap" to add memory segments as needed, but
this would require a different malloc.

I don't know why there isn't a better malloc out there that uses mmap.
Anyone know?

-- 
Gary Newman                             gnewman@xmx.com
XMX Corp.                               voice: (617) 275-9694
One Oak Park                            Fax:   (617) 271-9164
Bedford, MA 01730


  reply	other threads:[~1994-08-29 13:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-08-27  3:13 Alpha OSF1/2.0 server problem David Scarbro
1994-08-28  3:25 ` Torbj|rn Lindgren
1994-08-29 13:03   ` Gary Newman [this message]
1994-08-30 16:27     ` Greg Lueck Development Environment
1994-08-30 23:00       ` David Scarbro
1994-09-01 18:08   ` Andre Beck
1994-09-01 18:42     ` AUSTIN PARK stefanovich boris
1994-09-02  7:42     ` Alpha OSF1/2.0 server problem Burkhard Neidecker-Lutz
1994-09-07 16:41       ` Andre Beck
1994-09-08 15:09         ` Greg Lueck Development Environment
1994-09-07 20:39     ` Shawn C. Masters
1994-09-08 13:09       ` Paul Southworth
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox