[Mono-list] Fwd: Threading and IO problem

Paolo Molaro lupus at ximian.com
Fri Mar 7 10:32:12 EST 2008


On 03/07/08 Yanko Hernández Álvarez wrote:
> Ok, then there is one question left: is there any way to program this
> using threads without the GC interfering? any ideas?

It looks like the GC needs a little manual tuning for your app.
For a 600 MB file on a dual core with 2 threads running a good
default seems to be setting an initial heap size of 10 MB:
	GC_INITIAL_HEAP_SIZE=10000000 mono yourprog.exe
With 4 threads (which is sort of equivalent to 8 threads on a 4 cpu
hyperthreaded box) you need about 20 MB, but try also with more
and measure what's best for your workload (and please report back your
results).

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-list mailing list