Re: Memory usage
Dick Porter <[email protected]> 25 Nov 2002 14:56:01 +0000
| Newsgroups | gmane.comp.gnome.mono.garbage-collection |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2002-11-25 at 11:26, Peter Cahill wrote: > hi, > > I've been messing about with the .NET Framework for Windows for a while now, > It seems to take ~10Mb of memory to initalise and initiate execution of a program. > I measure the 10Mb via using Task Manager (Ctrl-Alt-Del). > > When mono is in an almost-complete state, would its memory usage be similar ? This is mono running a very simple test app that just sleeps for a while then exits: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND dick 19888 0.4 0.8 11720 4264 pts/4 S 14:45 0:00 mono /tmp/sleep.exe I'd imagine that memory usage wouldn't change dramatically from that; I can't think of any major missing parts in the runtime. > How does the garbage collection technique actually work - Is it a method of waiting for the CPU > to become idle before it will do a scan or does it wait for physical memory to be running low before > it does a collection ? At the moment we're using the Boehm gc. It grabs chunks of virtual memory, and performs a collection when a new allocation request would exceed the space remaining in the chunk. - Dick _______________________________________________ Mono-gc-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-gc-list