Can somebody explain this memory usage
BCS
ao at pathlink.com
Thu Apr 2 09:58:54 PDT 2009
Reply to Saaa,
> dmd 1.042 Phobos OpenGl + SDL (Derelict)
>
> mem usage (winxp task manager) = 60MB, peak = 120MB gc.fullCollect is
> run just before mainloop, no change in mem usage
>
> after 10 minutes or so mem usage has stabilized at 70MB
> I have localized this to toStringz usage and think this is why tango's
> toStringz has a temp argument.
> When I minimize and normalize the window, mem usage goes to 4MB.
>
> I think I don't understand memory (de)allocations.. might be a bad
> thing :)
>
For one thing, most runtimes will never return memory the the OS so task
manager will never show a drop in memory. What you should be looking at is
either the resident set size in task manager or some of the GC stats in the
process.
More information about the Digitalmars-d-learn
mailing list