Article View: comp.sys.sgi.misc
Article #337Re: memory management in UNIX (SGI IRIX)
From: Jeff Dickson
Date: Wed, 31 Jan 1996 17:19
Date: Wed, 31 Jan 1996 17:19
35 lines
2480 bytes
2480 bytes
jem@bii.bruker.com (Joe Meier) wrote: > We have a problem with a program running under UNIX (SGI IRIX 5.x). >It uses X11 for a graphical user interface. >The program allocates and frees large amounts of memory for data >(sometimes chunks as big as 20M). The problem is that in a relatively >short time the system runs out of swap sapce and we have to kill the program. >We have investigated the problem and it seems to be that the allocated memory >is getting segmented, so that even though the memory is freed by calls to >"free", the next malloc does not necessairly use the freed space because it >cannot find a large enough contiguous block and instead allocates more from >the system. When we were working with smaller data sizes this was not a >problem, but the bigger data sizes is causing some svere problems. The >first question is whether anyone else has encountered similar problems >and what caused them and how they solved it? Also, I wanted to know if >there exists any intelligant memory managers that will move memory blocks >in order to keep all the free space in on contiguous location? I think this >would go a long way towards solving our problems??? Of-course if anyone >has other sugestions for what the cause of our problems are, they would be >greatly appreciated. > > Since, I am cross posting this to several news groups, I ask that >responses be e-mailed directly to me (at jem@bruker.com) so that I can more >eaisly keep track of them. I will post a summary (for those interested) once >I have complied the responses. > >Thanks for the help, > >Joe Meier Seems like a while ago there was a discussion about freed memory not really shrinking a process data segment. The pitfall being memory that was idle could continue to tie up swap space. Jeff jdickson@vtol.jpl.nasa.gov
Technical Details
Message-ID:
<4eo8bt$epv@netline-fddi.jpl.nasa.gov>Path:
arc1-ca.pugleaf.net!netline-fddi.jpl.nasa.gov!usenetReferences:
<DM0Jv9.9F4@bii.bruker.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!netline-fddi.jpl.nasa.gov!usenet From: Jeff Dickson <jdickson@vtol.jpl.nasa.gov> Newsgroups: comp.sys.sgi.misc,comp.lang.c,comp.unix.programmer Subject: Re: memory management in UNIX (SGI IRIX) Date: 31 Jan 1996 17:19:57 GMT Organization: Jet Propulsion Laboratory Message-ID: <4eo8bt$epv@netline-fddi.jpl.nasa.gov> References: <DM0Jv9.9F4@bii.bruker.com> NNTP-Posting-Host: vtol.jpl.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.2 sun4c) To: jem@bii.bruker.com X-URL: news:DM0Jv9.9F4@bii.bruker.com