<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Stefan, <div><br></div><div>Well, I'm now testing SVN.4111 and it seems to work better ... Sometimes the Sim freeze, but most often in Standalone mode.</div><div><br></div><div>For now, I can run OpenSim, with acceptable response time in 4x4 Regions.</div><div><br></div><div>And I had an Idea the past night :)</div><div><br></div><div>I think the component that use too many CPU is the one that deal with port 9000 ( mean something in OpenSim.exe ).</div><div><br></div><div>Here is what I'm thinking that :</div><div><br></div><div>As I mention in Mantis #909, I'm running OpenSim in Grid mode, 4x4 Regions, BUT, I have created 6 Virtual Servers with Xen.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Linux Debian 4.0r3 Etch, Mono 1.9 /  Xen 3.1.0.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Here is the Topology  :</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Dom0 ( 256Mo ) <-- Main Host ( Nothing on it except xen ),</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">DomU ( osg200 / 256MB Ram ) <-- Apache + MySQL ( Maybe Squid in the future ),</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">DomU ( osg201 / 256MB Ram ) <-- OpenSim "U+G+A+I", ( Will update it to 512MB Ram )</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">DomU ( osg203 / 512MB Ram ) <-- OpenSim "S" ( Region Server, 4 Regions ),</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">DomU ( osg204 / 512MB Ram ) <-- OpenSim "S" ( Region Server, 4 Regions ),</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">DomU ( osg205 / 512MB Ram ) <-- OpenSim "S" ( Region Server, 4 Regions ),</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">DomU ( osg206 / 512MB Ram ) <-- OpenSim "S" ( Region Server, 4 Regions ),</div></div><div><br></div><div>The startup order is : osg200 > osg201 ( UGAI ) > osg203 (S) > osg204 ... </div><div><br></div><div>While monitoring my firewall logs, I found that even if my avatar is located in a region that belongs to OSG204( for example ) ... There was Network Trafic to port 9000 ( OSG203 -- The first Region server I started ).</div><div>And, while monitoring RAM/CPU Usage on my Virtual Servers, I have noticed that OSG203 is in "High CPU usage" state ( much more that OSG204, 205 or 206 )</div><div><br></div><div>Of course I have to confirm all those points and drop you some metrics. And I have some more tests to prove that. But it could be a good start point for investigation.</div><div><br></div><div>I'll make tests tonight and post the results there.</div><div><br></div><div>Regards,</div><div><br></div><div>Ursula.</div><div><br></div><div>(( Ouch, my english turns bad :D Sorry. ))</div><div><br></div><div><br><div><html>Le 9 avr. 08 à 17:48, Stefan Andersson a écrit :</html><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">What's the current status on the thread issues? Are we looking into it? Have we identified consumers/culprits?<br> <br>Best,<br>/Stefan<br><br><br><hr id="stopSpelling"><br>> From:<span class="Apple-converted-space"> </span><a href="mailto:ursula.matova@klintcentral.net">ursula.matova@klintcentral.net</a><br>> To:<span class="Apple-converted-space"> </span><a href="mailto:opensim-dev@lists.berlios.de">opensim-dev@lists.berlios.de</a><br>> Date: Sun, 17 Feb 2008 11:09:27 +0100<br>> Subject: [Opensim-dev] Question about Threads Use in OpenSim ...<br>><span class="Apple-converted-space"> </span><br>> Hi all,<br>><span class="Apple-converted-space"> </span><br>> First, please be indulgent about my poor english :) You all know how<span class="Apple-converted-space"> </span><br>> french people are bad with foreign languages ...<br>> Thanks in advance.<br>><span class="Apple-converted-space"> </span><br>> Well, I'm running OpenSim in StandAlone mode, 3x3 Regions ( as Grid<span class="Apple-converted-space"> </span><br>> mode is so difficult to configure behind a firewall ) ...<br>> Using a home made "Linux From Scratch" box with Mono 1.2.6 ( daily<span class="Apple-converted-space"> </span><br>> snapshot ) ...<br>> The computer is an Athlon64X2 4400+ with 4GB Ram ... ( is it large<span class="Apple-converted-space"> </span><br>> enough ? )<br>><span class="Apple-converted-space"> </span><br>> In the past ( before SVN.3335 or something ) when running OpenSim,<span class="Apple-converted-space"> </span><br>> just after the simulator goes Up, the OpenSim.exe process use around<span class="Apple-converted-space"> </span><br>> 96 threads and everything works fine,<br>> But, now, I saw that this number of threads reach 118 :(<br>> As I posted in the past in Mantis that Mono under Linux is really bad<span class="Apple-converted-space"> </span><br>> ( performances & coredump ) when you reach the limit of 170 threads ...<br>><span class="Apple-converted-space"> </span><br>> When I connect 1 user to the sim : Thread count is now reaching : 157<br>> When I connect a 2nd user to the sim : Thread count reach : 200<br>> ( in that case : 200 threads used, the sim doesn't crash like in the<span class="Apple-converted-space"> </span><br>> past but I find everything slow ... and my CPU is now 100% use / 7%<span class="Apple-converted-space"> </span><br>> Ram used )<br>><span class="Apple-converted-space"> </span><br>> Then, that mean, each time a user is connecting to the Sim, it use<span class="Apple-converted-space"> </span><br>> about 40 threads ...<br>> So, if I like to connect 20 users, I need around 40x20 threads = 800<span class="Apple-converted-space"> </span><br>> threads ...<br>> And I'm not sure at all that Mono could manage that :(<br>><span class="Apple-converted-space"> </span><br>> What's you're feeling on that point ?<br>><span class="Apple-converted-space"> </span><br>> So, my question is : why not forking a new "OpenSim.exe" process for<span class="Apple-converted-space"> </span><br>> each new connected user ?<br>> Of course it's mostly for the standalone mode ( but the problem is a<span class="Apple-converted-space"> </span><br>> bit the same in Grid Mode ) ...<br>><span class="Apple-converted-space"> </span><br>> Maybe it's a simple/stupid idea from me, because I haven't enough<span class="Apple-converted-space"> </span><br>> development skills to help all the people working hard to bring up<span class="Apple-converted-space"> </span><br>> this marvelous simulator.<br>><span class="Apple-converted-space"> </span><br>> Please, just let me know your position about it.<br>><span class="Apple-converted-space"> </span><br>> Thanks a lot guys for all your dev,<br>><span class="Apple-converted-space"> </span><br>> Regards,<br>><span class="Apple-converted-space"> </span><br>> Ursula Matova<br>> ( Of course this is my S/L Avatar Name :) )<br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> _______________________________________________<br>> Opensim-dev mailing list<br>><span class="Apple-converted-space"> </span><a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>><span class="Apple-converted-space"> </span><a href="https://lists.berlios.de/mailman/listinfo/opensim-dev">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br><br>_______________________________________________<br>Opensim-dev mailing list<br><a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br><a href="https://lists.berlios.de/mailman/listinfo/opensim-dev">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br></div></span></blockquote></div><br></div></body></html>