[Mono-list] Lag when running mono

Robert Jordan robertj at gmx.net
Wed Oct 17 07:35:25 EDT 2007


bokarius at comcast.net wrote:
> When I run mono on a Hello World app there is a 4-8 second delay before "Hello World!" is printed on the screen.   I did an strace when calling mono and it looks like the lag occurs when these system calls are made:
>  
> nanosleep({0, 10000000}, NULL)     = 0
> nanosleep({0, 10000000}, NULL)     = 0
> socket(PF_FILE, SOCK_STREAM, 0)    = 3
> connect(3, {sa_family=AF_FILE, path=@mono-handle-daemon-0-10501-1192596744}, 110) = 0
> mmap2(NULL, 4001792, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb791e000
> sendmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"... , 36}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 36
> recv(3,  
>  
> It looks like it is waiting for a response from mono-handle-daemon but does not receive it for a few seconds.

Which Mono version is this? 0.37? :-) This code was taken out of
the build 2.5 years ago.

Robert



More information about the Mono-list mailing list