Comment out old inbound UDP throttling hack. This would cause the UDP

reception thread to sleep for 30ms if the number of available user worker
threads got low. It doesn't look like any of the UDP packet types are
marked async so this check is 1) unnecessary and 2) really crazy since
it stops up the reception thread under heavy load without any indication.
cpu-performance
Robert Adams 2013-07-09 18:34:24 -07:00
parent bb6fb65392
commit 38e6da5522
1 changed files with 2 additions and 0 deletions

View File

@ -1615,6 +1615,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{ {
IncomingPacket incomingPacket = null; IncomingPacket incomingPacket = null;
/*
// HACK: This is a test to try and rate limit packet handling on Mono. // HACK: This is a test to try and rate limit packet handling on Mono.
// If it works, a more elegant solution can be devised // If it works, a more elegant solution can be devised
if (Util.FireAndForgetCount() < 2) if (Util.FireAndForgetCount() < 2)
@ -1622,6 +1623,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//m_log.Debug("[LLUDPSERVER]: Incoming packet handler is sleeping"); //m_log.Debug("[LLUDPSERVER]: Incoming packet handler is sleeping");
Thread.Sleep(30); Thread.Sleep(30);
} }
*/
if (packetInbox.Dequeue(100, ref incomingPacket)) if (packetInbox.Dequeue(100, ref incomingPacket))
{ {