MS Garbage Collector issue?!

BlitzMax Forums/BlitzMax Programming/MS Garbage Collector issue?!

Grisu(Posted 2009) [#1]
Hi there!

After playing around with the different releases of bmx I found out that my little prp app eats around 3 times more memory when compiled under bmx 1.33rc5 compared to bmx1.34r9.
That is at startup!

See image below:

*OS: Win7 RC1 (64 Bit)

GCMemAlloced() is constantly pending around 120000 to 138000 for both bmx versions.

- Is this the way it should be?
- Can I tell the GC to use less memory?

Grisu


xlsior(Posted 2009) [#2]
The GC uses less memory if you invoke it more often. The downside of that is that the app itself may run a tad slower.

If you check out this thread:
http://www.blitzbasic.com/Community/posts.php?topic=86079#975230

Mr Sibly suggested some alternate values (and recompile the module), which can have quite the effect on the memory usage I found... but also on the execution speed depending on the app, so it's a fine line your walking. :-?


Brucey(Posted 2009) [#3]
GCMemAlloced() is constantly pending around 120000 to 138000 for both bmx versions.

120kb ? If it was 120meg, I might be concerned...


Grisu(Posted 2009) [#4]
Thanks xlsior.
Changing "if( (gc_alloced-alloced)>heap_size/3 )" to "/8" or "/1.5" doesn't seem to have an effect. Strange...

Brucey, I'm just trying to understand what's going on behind the scences.
If the GCMemAlloced value is nearly constant, the reason for this has to be somewhere else.


skidracer(Posted 2009) [#5]
a whole?