Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hds@tang.tiac.net (David Scarbro)
Subject: Re: Alpha OSF1/2.0 server problem
Date: 30 Aug 1994 23:00:54 GMT	[thread overview]
Message-ID: <340dn6$4ja@sundog.tiac.net> (raw)
In-Reply-To: 33vmm3$mh6@jac.zko.dec.com

In article <33vmm3$mh6@jac.zko.dec.com>, lueck@gurgi.zk3.dec.com (Greg Lueck Development Environment) says:
>
>
>In article <CvAsAB.9tE@world.std.com>, gnewman@world.std.com (Gary Newman) writes:
>|> 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?
>
>Actually, "sbrk" can be used to return memory to the system.  Passing a
>negative value to "sbrk" reduces the virtual size of the process.  Thus, "free"
>can return memory to the system when that memory is at the end of the process's
>heap.  The malloc system in DEC OSF/1 V3.0 supports this feature and even
>allows applications to tune the behavior.  See the malloc() manpage for more
>details if you are interested.
>
>-- 
>-------------------------------------------------------------------------------
>Greg Lueck                              Opinions expressed herein are my own.
>lueck@zk3.dec.com
>-------------------------------------------------------------------------------
>-- 

The Dec X Server provided with OSF/1 2.0 normally returns memory to the 
system as described above and the Dec X Server provided with OSF/1 1.3 
version does not. However, this was not the point of my original article.

The point was this: 

If a large number of images are sent to Dec's OSF/1 2.0 server, it gets
into a state where it is adding exponentially more memory for each image
sent to it.  It eventually starts allocing 2x's the memory required for
each image sent. Further, after it gets into this state it stops
returning memory to the system when the images are released.

This exponential allocation behavior is unique to the server that Dec 
provides with OSF/1 2.0. It does not occur in either the OSF/1 1.3 server
or a server built from the X11R5 source code from MIT.

Dec customer support has acknowledged that the problem exists. They have
been able to reproduce it with the sample program provided in the
original article,  Unfortunately, they have not been able to provide 
a work around or a patch for the problem.

Does anyone have any insight into why the server provided with OSF/1
V2.0 is behaviing this way?  And, more importantly, is there a fix or a
workaround?

Thanks in advance.

----
David Scarbro
hds@tang.tiac.net


  reply	other threads:[~1994-08-30 23:00 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
1994-08-30 16:27     ` Greg Lueck Development Environment
1994-08-30 23:00       ` David Scarbro [this message]
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