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-29 06:05:51 PST Newsgroups: comp.windows.x,comp.unix.osf.osf1,comp.sys.dec Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!world!gnewman From: gnewman@world.std.com (Gary Newman) Subject: Re: Alpha OSF1/2.0 server problem Message-ID: Followup-To: comp.windows.x,comp.unix.osf.osf1,comp.sys.dec Organization: XMX Corporation, Bedford, MA X-Newsreader: TIN [version 1.2 PL2] References: <33mb0k$gg1@sundog.tiac.net> <33p02t$j5c@nyheter.chalmers.se> Date: Mon, 29 Aug 1994 13:03:46 GMT Xref: bga.com comp.windows.x:10900 comp.unix.osf.osf1:3240 comp.sys.dec:5518 Torbj|rn Lindgren (tl@cd.chalmers.se) wrote: : In article <33mb0k$gg1@sundog.tiac.net>, : David Scarbro 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