All pastes #25001 Raw Edit

Miscellany

public text v1 · immutable
#25001 ·published 2005-10-09 01:54 UTC
rendered paste body
[10:31pm] <l2chef> hey. i thought about your lag problem
[10:31pm] <godson> oh?
[10:32pm] <l2chef> it could be that there are not enough worker threads ... so that the to be send network packets pile up
[10:33pm] <l2chef> in that case the response time will increase more and more
[10:33pm] <l2chef> so it would seem as if the server doesnt respond at all (at login for example)
[10:35pm] <godson> ah
[10:35pm] <godson> so how would we increase the worker threads?
[10:35pm] <godson> btw i dont have enough knowledge about threads
[10:39pm] <l2chef> not sure how maximus implemented the network layer now... it might be that it is only one thread that does all the work
[10:39pm] <godson> :O
[10:40pm] <godson> that isnt good....
[10:40pm] <godson> do you think Age might know?
[10:45pm] <l2chef> just checked... yep .. only one thread that manages all inbound and outbound communication
[10:46pm] <l2chef> i am pretty sure that it is causing the problems
[10:46pm] <l2chef> when there are many players in one area massive numbers of packets will be send.. and it looks like no inbound packets are accepted until all outbound packets are send
[10:47pm] <l2chef> that sounds not good at all :(
[10:47pm] <l2chef> i would think it needs some redesign... at least use separate threads for inbound and outbound
[10:48pm] <godson> oh ya it makes sence man
[10:48pm] <l2chef> and probably at least 2-5 threads
[10:48pm] <godson> what you just said about inboard/outbound packets
[10:48pm] <godson> ya
[10:49pm] <godson> where is this defined?
[10:49pm] <godson> where you saw it is just using on thread?
[10:49pm] <godson> for both inboard and outboard?
[10:49pm] <l2chef> the SelectorThread ... it handles all the communication
[10:49pm] <godson> oh
[10:50pm] <l2chef> and it is a singleton
[10:51pm] <godson> ah
[10:52pm] <godson> oh NIO
[10:52pm] <godson> uhm
[10:54pm] <godson> this is kinda to advanced on my knowledge
[10:54pm] <l2chef> yep... it was old IO in the beginning.. but that was a lot slower .. so that no more than 70 players were possible
[10:55pm] <godson> damn..
[11:08pm] <godson> hey you know who might be able to re-structure it?
[11:43pm] <l2chef> not sure.. it seems age also worked on it... i guess he should know what to do
[11:46pm] <godson> ah ok
[11:46pm] <godson> i will talk to him when his up :D