[Mono-devel-list] Remoting performance
Tim Day
timday at bottlenose.demon.co.uk
Tue Apr 5 16:02:35 EDT 2005
On Tue, 2005-04-05 at 12:18 +0200, Lluis Sanchez wrote:
> On my Pentium M 1600Mhz, I'm getting 1850 calls/seq with Mono 1.0.5,
> and 4050 calls/seq with Mono 1.1.5.
Now that sounds more like it.
I've just upgraded to 1.0.5 (the version currently in Debian Sid) on an
XP1600+, but I still only get ~12 calls per second with the attached
(very simple) code.
Build and run with:
mcs -t:library -out:thing.dll thing.cs
mcs -r:thing.dll -r:System.Runtime.Remoting server.cs
mcs -r:thing.dll -r:System.Runtime.Remoting client.cs
xterm -e mono server.exe &
time mono client.exe
to time 200 calls.
It takes ~16seconds realtime on my machine, but with only 0.467s user
and 0.037s system time it's basically sitting there mostly doing nothing
(top shows 99% idle)!
If you can't see anything wrong with the code (which is essentially
straight out of the OReilly "Programming C#" book) then I suspect
something bogus about the Debian setup. The mono system itself seems to
be zippy enough: I can sum a billion ints in a couple of seconds.
For what it's worth, mono --profile on the client.exe shows most of the
16 seconds runtime is made up of 2800 calls at ~5.6ms each to
System.Net.Sockets.Socket::Receive_internal
Any ideas ?
Puzzled
Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: client.cs
Type: text/x-csharp
Size: 471 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050405/1546d928/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.cs
Type: text/x-csharp
Size: 425 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050405/1546d928/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thing.cs
Type: text/x-csharp
Size: 157 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050405/1546d928/attachment-0002.bin
More information about the Mono-devel-list
mailing list