From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,27179c3b815f2f49 X-Google-Attributes: gid103734,public X-Google-Thread: fee84,27179c3b815f2f49 X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,27179c3b815f2f49 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-08-30 16:40:56 PST Path: bga.com!news.sprintlink.net!sundog.tiac.net!usenet From: hds@tang.tiac.net (David Scarbro) Newsgroups: comp.windows.x,comp.unix.osf.osf1,comp.sys.dec Subject: Re: Alpha OSF1/2.0 server problem Date: 30 Aug 1994 23:00:54 GMT Organization: none Message-ID: <340dn6$4ja@sundog.tiac.net> References: <33mb0k$gg1@sundog.tiac.net> <33p02t$j5c@nyheter.chalmers.se> <33vmm3$mh6@jac.zko.dec.com> NNTP-Posting-Host: tang.tiac.net X-Newsreader: WinVN 0.90.5 Xref: bga.com comp.windows.x:10999 comp.unix.osf.osf1:3283 comp.sys.dec:5563 In article <33vmm3$mh6@jac.zko.dec.com>, lueck@gurgi.zk3.dec.com (Greg Lueck Development Environment) says: > > >In article , 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