-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource management of PvPGN #85
Comments
@HarpyWar I think PvPGN currently saves account and clan data periodically, not in real-time. Should we change that? |
No, we should not change that. Instead it breaks initial idea which is not a bad, I think.
@DingGGu for now I can't tell anything about CPU usage by PvPGN. May be above values doesn't correspond for the accounts number on your server, for example userstep is too small and there are continuous saving and flushing. I don't know. |
@HarpyWar I can't send the database for you. My DB is over gigabytes.
can we talk about pvpgn on IRC? I'm not good at C Language. so i want to help your skills. :) |
@DingGGu what name ur pvpgn server? |
Actually, accounts count do not affect a performance on PvPGN side (except slightly more memory usage). There are hashtables used for accounts where search is "immediately", independent of size. So, the problem should be in MySQL. In addition to miss indexes there is also varchar(128) used for all fields instead of proper types for each data type. MSSQL is much smarter in this case and because work faster. P.S. I do not use instant messaging and I also do not know C language, just learn it from PvPGN code. |
@anonbyte http://m16.ggu.la/ Currently 7517 Users, 1892 Games Running, 1144 Channels available. |
@DingGGu you can set to NULL |
@HarpyWar I send the link for your email. thank you. |
I was slight wrong in several items (according to a post above #85 (comment)):
Also there is a global variable @DingGGu you can examine commits above and apply the changes on your server. I recommend you set a new config option It's better to place database server on the same machine where pvpgn run, to except delay between large set of queries. I have removed |
* return back a default attributes - it's required, but now we do not flush it, because it used often without changes * fix for "file" storage (loadedtabs related to "sql" only) #85
My Server uses daily-reboot. (restart bnetd) maybe this can solve memory problem. |
If I understand you correct you applied all the above patches, set config options and your server (pvpgn process) still uses a lot of memory and high cpu usage. Right? |
hello happywar! nice to meet you,
i operate a war3 pvpgn server in korea, (realtime online users max 9000) average 7000
i know pvpgn's resource management is bad (MySQL memory usage, PvPGN CPU usage)
how about improvement pvpgn memory?
in my opinion
now pvpgn's system saved users & clans data some unregular times (or shutdown server)
however, send real-time query to mysql?
or something other ideas for account memory usage.
The text was updated successfully, but these errors were encountered: