[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] memory fragmentation
Hi,
On Thu, Aug 19, 1999 at 06:22:29PM +0200, Thomas Binder wrote:
> > If you have got 10 MB of physical RAM left and a malloc of 8k
> > (wasn't that the new default chunksize of the MiNTLib?) splits your RAM
> > into two blocks of 5 MB each, then 8k (or even 32k or 64k) is a "small"
> > block for me.
>
> I'm sorry, but I don't get it: Why should a Malloc() of 8K split your
> RAM into two 5 MB blocks?
Say I run gcc and gcc uses up 5 MB. While gcc is running I open a window
in Thing and Thing has to malloc for that too. When gcc is finished my 10
MB are split in two. This happens a lot of times here. Generally those
programs that run permanently (AES, desktop, daemons) cause the
fragmentation. I think the actual culprit is realloc() then. If a
resident process reallocs a block during times of little memory there is
no way to glue the memory blocks together again later.
Ciao
Guido
--
http://stud.uni-sb.de/~gufl0000/
mailto:gufl0000@stud.uni-sb.de