Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: sancho@quixote.gps.caltech.edu (Ignotum per ignotius)
Subject: strange malloc -- fragmentation ?
Date: 23 Feb 1994 04:22:05 GMT	[thread overview]
Message-ID: <2kelld$snu@gap.cco.caltech.edu> (raw)


DEC ALPHA 3000/400 OSF1.3(a)


I wonder if anyone can clear up a point I that has been bothering me.
I am allocating memory to a large number of arrays. I know the maximum
size of each array in advance & previously used this to malloc some
space in advance. To save space I then decided to calculate the true size,
and allocate only what's needed. This ought to give a 50% saving but 
actually falls well short of this. I guage this by the RSS increase 
after the malloc's and by the maximum size of the process I can run on the
machine. That IBM RS6000 I just experimented with has no such difficulties !

What's happening, is it an alignment/fragmentation question or something
else. Is there a simple fix ?  This is not a time-critical element of my
code.

In hope,

Louis....


             reply	other threads:[~1994-02-23  4:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-23  4:22 Ignotum per ignotius [this message]
1994-02-23 13:39 ` strange malloc -- fragmentation ? Jim Gettys
1994-02-23 23:17   ` John Hascall
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