set buddy variable gets slower as more users online

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

seeingrain
Posts: 28
Joined: 27 Mar 2014, 03:34

set buddy variable gets slower as more users online

Postby seeingrain » 01 Jul 2016, 13:33

Hi, dear,
as you can see in the attached pic.
when 60k users online, it costs around 10 milliseconds to set a buddy variable.
can you review your buddy's source code regarding this issue?
thanks!
Attachments
QQ图片20160701211716.jpg
10k users online
(34.33 KiB) Not downloaded yet
QQ图片20160701211708.jpg
20~30k users online
(45.73 KiB) Not downloaded yet
QQ图片20160701211700.jpg
60k users online
(24.6 KiB) Not downloaded yet
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: set buddy variable gets slower as more users online

Postby Lapo » 01 Jul 2016, 15:02

This is expected.
With a very high load every buddy variables update requires the server to look up the clients that need to be updated. The code is already very optimized and the fact that it runs in ~10ms shows confirm it.

I mean with 10ms you still have a throughput of 100 request/sec per thread. That's pretty good for a server loaded with 60K CCU, IMO :)
(Try do that on an HTTP server, with the same hardware settings... )

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: set buddy variable gets slower as more users online

Postby Lapo » 02 Jul 2016, 07:25

I am sorry this is the first time in 11 years of history of this website that I have to remove a post that is not spam.
We do not tolerate decompilation, as clearly stated in the license agreement that accompanies every copy of SmarFoxServer.

We are willing to provide all possible help for free and indefinitely provided we all stick to the same rules. If you think you can come here to post reverse engineered code and start pointing out what you think is or isn't the cause of your perceived problem then I am afraid we won't be able to help you.

If you don't feel like you can respect the basic terms our software License then please stop posting here. There is nothing we can do for you.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 86 guests