From: peng@pirates.cs.swt.edu (Wuxu Peng)
Subject: Memory allocation
Date: 19 Sep 1994 15:27:54 GMT [thread overview]
Message-ID: <35kalq$m03@pirates.cs.swt.edu> (raw)
Machine: DEC Alpha 3000/300, OSF2.0 (rev.250).
Problems: Too much swapping space allocated. The program is
memory intensive. Since UNIX (or just OSF?) does not
immediately return space freed by "free" to system
(it claims new swapping space, not reuses those
freed space), I have to maintain a pool of free nodes.
My program will first examine if the free pool is empty,
and will only do "malloc" when the pool is empty.
The main body of my program is a loop. It may loop
from 1 to 100 times, depending upon some command-line
parameter.
The problem is that, every iteration of that loop
demands more swapping space. This happens even if
the program does not do any new "malloc". Each iteration
requires new swapping space, pure and simple. As
a result, for some input, my program eventually exhausts
the entire 128M swapping space.
Any way getting around this problem?
Thanks.
--
--wuxu peng (peng@pirates.cs.swt.edu)
next reply other threads:[~1994-09-19 15:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-09-19 15:27 Wuxu Peng [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-11-06 5:00 memory allocation Jim Largent
1999-01-07 5:00 Memory Allocation vinny_in_vancouver
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