Which thread is responsible for sending msg?

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

Moderators: Lapo, Bax

styx
Posts: 68
Joined: 13 May 2010, 19:41
Location: Poland

Which thread is responsible for sending msg?

Postby styx » 08 Mar 2011, 09:16

Which thread pool size is equivalent to <OutQueueThreads>?
Where is the description of the threading model in SFX2X?
Is the value of "System / Extension / scheduler thread pool size" are dependent on the number of processors / cores?
tchen
Posts: 191
Joined: 11 Dec 2010, 14:14

Postby tchen » 08 Mar 2011, 16:38

http://docs2x.smartfoxserver.com/Advanc ... hreadPools

1. ExtensionController is probably what you're looking for. Although I have a sneaking suspicion that the lower-level socket reader/writer layer has its own thread pool which we can't touch.

2. see doc

3. see doc
styx
Posts: 68
Joined: 13 May 2010, 19:41
Location: Poland

Postby styx » 09 Mar 2011, 21:34

I only have 3000 CCU, and the horrible lag when sending messages public. In that case, I experiment with EventManager. How much should normally be set on a thread?

Image
tchen
Posts: 191
Joined: 11 Dec 2010, 14:14

Postby tchen » 09 Mar 2011, 23:30

Close to the number of cores really.

Of course, this assumes your handlers don't do anything too rambunctious and shove any heavy lifting to the built in task schedulers. Otherwise, you'll need to just slowly increase it until your input queue clears.

Those are large outbound spikes. Are all your test CCU's in one room or something?
styx
Posts: 68
Joined: 13 May 2010, 19:41
Location: Poland

Postby styx » 10 Mar 2011, 07:46

In my simple chat users can only write public messages, create and connect to the room. I have one task for counting the number of users in the rooms.
While the chat logs I do not use a database, only one connection to the memcache. 1 sql when creating a room, 2 sql when the user leaves the smartfox, 1 sql during removal room.
It's all :)

Overall, the 3000 users in rooms 300-500 at one zone. In some rooms, sometimes even over 700 members.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 134 guests