Jump to content

Lag / Ace / Multithreaded - Help !

Recommended Posts

  • 38 years later...

Hi, i have strange feedback from my server.

with the old mangos , before that ACE netcode was put in svn , my server had 700 testers without lag, i remember i have used old rev with ACE forum's version ... and no lag..

After that the ACE netcode was put in svn , my server become unplayable because i have huge lag.

The latency is ~60MS , ~150MS , but the game lag like hell xD

My conf is this

Network.Threads = 1

Network.OutKBuff = -1

Network.OutUBuff = 65536

Network.TcpNodelay = 2

I also tried Map-Multithreaded Patch but nothing change

Anyone can help me?

I can do anything to solve this ?

Thank You

Link to comment
Share on other sites

Show please the head of the top output after you pressed "1" in top window.

The reason of theese lags may be in overloading one of the CPU cores.

When ACE was added to SVN, only the network-threads part was added, but not the map-threads.

And now the main thread of mangos-worldd uses ~100% of one cpu and there are no more cpu resources for mangos even if other core are almost free.

Try to merge with git://github.com/scamp/mangos, i just added the mtmaps-part in the code, so all CPU cores of you system will be used almost in equal proportions and the server will be able to handle more users without lag.

Link to comment
Share on other sites

i have mtmaps-part isntalled

top - 16:15:44 up 1 day, 20:43,  1 user,  load average: 1.58, 1.49, 1.35
Tasks:  95 total,   1 running,  94 sleeping,   0 stopped,   0 zombie
Cpu0  : 26.6%us,  0.7%sy,  0.0%ni, 71.4%id,  0.0%wa,  0.0%hi,  1.3%si,  0.0%st
Cpu1  : 22.2%us,  2.0%sy,  0.0%ni, 73.5%id,  0.0%wa,  0.0%hi,  2.3%si,  0.0%st
Cpu2  : 17.0%us,  0.7%sy,  0.0%ni, 79.7%id,  0.0%wa,  0.3%hi,  2.3%si,  0.0%st
Cpu3  : 22.9%us,  0.7%sy,  0.0%ni, 74.4%id,  0.0%wa,  0.0%hi,  2.0%si,  0.0%st
Mem:   8181664k total,  8047824k used,   133840k free,   174204k buffers
Swap: 15856112k total,    13188k used, 15842924k free,  4038652k cached

Link to comment
Share on other sites

hi, on our server with a player amount between 200 (morning) and 800 (evening/weekend) we have often lags, we have two separated servers, one with the account db+webpage and one with the wow-server and the other databases.

on the wow-server we have a load-avg arround 3.1 and netspeed is arround 7000kbit up and 3000kbit down

the wow server is a quadcore with 8gb ram and a linux running on it. we've installed mt-maps, arena-patch and some own little patches.

Link to comment
Share on other sites

I think there are a lot of bug reports where the server is slow and it crashes with file size limit exceded error.

Check your config for this option:


and disable it. Its enabled by default.

already disable

LogSQL = 1
PidFile = ""
LogLevel = 1
LogTime = 0
LogFile = ""
LogTimestamp = 0
LogFileLevel = 0
LogFilter_TransportMoves = 1
LogFilter_CreatureMoves = 1
LogFilter_VisibilityChanges = 1
WorldLogFile = ""
DBErrorLogFile = "db_errors.log"
CharLogFile = "personaggi.log"
CharLogTimestamp = 0
CharLogDump = 0
GmLogFile = "giemmi.log"
GmLogTimestamp = 0
RaLogFile = "ra_commands.log"
LogColors = ""

my average uptime is 20hours , no crash for file size limit exceded error

Link to comment
Share on other sites

  • 4 weeks later...

I'm having these problems also... I tested until rev6837 and i couldn't get things to work right.

Using Ubuntu x64 8.04 LTS

I have downgraded my mangos rev to 6750 (last one before ACE) and everything is fine, the problem is brought by ACE or its config for Ubuntu or something like that. Can anyone help ??

Link to comment
Share on other sites

  • 4 weeks later...

I'm still having this ACE problems with r6872...

Could it be something regarding my OS (Ubuntu Server x64 8.04 LTS) do i need to download any new libraries (not listed on the linux compile guide) for compiling ??

Need help !! :(

PS: 70 players online, 2gb RAM, AMD 3000+ (1.8GHz), 10mbps upstream connection

Network.Threads = 2
Network.OutKBuff = 16384
Network.OutUBuff = 65536
Network.TcpNodelay = 1

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use