[Opensim-dev] OpenSim.exe causes cpu spike

Michael Wright michaelwri22 at yahoo.co.uk
Sun Dec 14 20:00:00 UTC 2008


OpenSim does use a blocking call for reading from  standard input. So it shouldn't be that causing the problem. Unless there is some bug in mono, but no one else has ever reported such a problem.

One thing to try is:

OpenSim.exe -background True

Which makes Opensim not read from the command line at all. Of course then you can't use console commands. But that might be acceptable for what you want.


Count László de Almásy <calmasy at gmail.com> wrote: Greetings,

I'm using a software suite called 'daemontools' to handle
start/stop/restart of OpenSim.exe on my Linux system. The added
benefit of this method is that the process is "supervised" such that
if it crashes, it's automatically restarted. I use it to handle quite
a few services on my system.

One problem however with opensim- while it does work supervised, the
cpu also jumps up to 100%. Running strace on the process shows what's
happening:

read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0

[...]

over and over and over. So I inquired on a mailing list where
daemontools is discussed, and was told that this is a bug in opensim;
that the process is repeatedly reading standard input in non-blocking
mode, without first checking that there are any bytes to read.

Does this sound right? If so, can it be fixed? Here is the relevant
thread on the supervision mailing list for more info:

http://thread.gmane.org/gmane.comp.sysutils.supervision.general/1931

And more about daemontools here:

http://cr.yp.to/daemontools/faq.html

Any help appreciated.

-- 
Cheers, László
_______________________________________________
Opensim-dev mailing list
Opensim-dev at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev


       
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20081214/76e08089/attachment-0001.html>


More information about the Opensim-dev mailing list