Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* strange malloc -- fragmentation ?
@ 1994-02-23  4:22 Ignotum per ignotius
  1994-02-23 13:39 ` Jim Gettys
  0 siblings, 1 reply; 3+ messages in thread
From: Ignotum per ignotius @ 1994-02-23  4:22 UTC (permalink / 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....


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-02-23 23:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-23  4:22 strange malloc -- fragmentation ? Ignotum per ignotius
1994-02-23 13:39 ` Jim Gettys
1994-02-23 23:17   ` John Hascall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox