Filesystem vs malloc space

Angelo Fraietta angelo_f at
Mon Apr 25 23:55:48 UTC 2005

Greetings all

I have found that I am running out of malloc memory on my system
By doing the following two calls, I can see how much memory I have

            printf ("\r\nFree Space %u", malloc_free_space());
            printf("\r\nMax Filesystem Size %u", 

At first, I have approx 5527408 bytes of malloc memory and 4329344 bytes 
of free filesystem space.

After loading a heap of data, I end up with approx 207000 bytes of 
malloc memory left, buts still have the same amount of Filesystem space 
left (this is strange as I have just downloaded nearly 100K of files to 
my system). This 200K of malloc space that I have left is still not 
enough to dod what I still have to do

How do I reduce the amount of filesystem space and increase the amount 
of space for malloc?
Why didn't the Filesystem space show the difference; or is it that the 
call I made shows the total IMFS space- not the amount remaining.


Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)

More information about the users mailing list