#71384 - HyperHacker - Sun Feb 12, 2006 8:35 am
I just came across mallinfo(), which is nice, but it seems to be a bit confused as to how much memory is actually free. While uordblks correctly specifies how much I've allocated, fordblks specifies a very small number (~1000, when I've allocated 96K) that actually goes up as more memory gets used (~5000 when allocating an additional 4K). O_o
I imagine this is related to another problem; malloc() is failing trying to allocate another 96K, even though there's nearly 4MB available and it used to work before. (Just kinda died all of a sudden...)
[edit] Odd... malloc() fails the first time trying to allocate 96K, but then succeeds doing the same a few milliseconds later.
I imagine this is related to another problem; malloc() is failing trying to allocate another 96K, even though there's nearly 4MB available and it used to work before. (Just kinda died all of a sudden...)
[edit] Odd... malloc() fails the first time trying to allocate 96K, but then succeeds doing the same a few milliseconds later.