[Mono-list] Size of thread in Mono (65MB per thread ?)

Nicolas Antoniazzi nicolas.antoniazzi at gmail.com
Thu Dec 19 14:29:29 UTC 2013


I installed Visual Studio in a windows virtual machine.

On a standard .Net platform, the same program uses 16MB of memory at
initialization and adds approximately 20KB for each thread.
It looks normal to me since the main goal of threads are to be light. It's
like if threads were acting like a fork() for Mono.

So, I'm still stuck with this problem at the moment :(

2013/12/19 Nicolas Antoniazzi <nicolas at codingame.com>

> I tried with version 2.10.8 and 3.0.6. Both leads to the same behavior.
> (Maybe gaining few KB with 3.0.6)
>
> Unfortunately, I do not have .Net development environment to test.
>
> Nicolas Antoniazzi
> CTO - CodinGame
> http://www.codingame.com
> +33 (0)4 67 13 00 96
>
>
> 2013/12/19 "Andrés G. Aragoneses" <knocte at gmail.com>
>
>> On 19/12/13 11:09, Nicolas Antoniazzi wrote:
>> > Hi,
>> >
>> > I am using Mono in a virtualized environment with 512MB of RAM.
>> > I made a very simple program which starts 10 threads in a loop and
>> > apparently, every time that I start a new thread, approximately 65MB of
>> > memory is used.
>> >
>> > In my case, I can run 5 threads, but for the 6th, the program crashes
>> > (without any exception). 150MB are already consumed without the use of
>> > any thread.
>> >
>> > Is it a normal behavior?
>> >
>> > Thanks!
>>
>> What version of mono are you using?
>>
>> Have you tried running your program under the .NET framework, to compare?
>>
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20131219/c624a081/attachment.html>


More information about the Mono-list mailing list