Jump to content

Optimization of DST for Servers


Recommended Posts

Hi there, I want an answer from klei devs if it is possible. A lot of new content is being added to DST and a lot new are on the way. Recently I experience some serious lag in the server that I have never seen before. Despite I am having a really decent CPU for my dedicated server (Gingerbread Cookies 1), server is having trouble when server is full so I decided to put the slot size down to 18 from 19. I have heard that implementation of multithreading for DST is impossible due to the nature of Lua. When should we expect an optimization for the servers or is it really impossible to introduce multithreading for this game? Despite server is only using 55% of the whole cpu when server is full, server is lagging hard cuz everyone is sitting on the surface (not many people really go to caves at all) so cave server seems like working for nothing other than picking up lightbulbs.

Quote

[11:30:15]: ConsoleInput: "c_listallplayers''"
[11:30:15]: [1] merry christmas <wathgrithr>
[11:30:15]: [2] Purple <wx78>
[11:30:15]: [3] rossvegas <wickerbottom>
[11:30:15]: [4] Fitness <wilson>
[11:30:15]: [5] Dori Evadine <wendy>
[11:30:15]: [6] Chocolate Thunder <wilson>
[11:30:15]: [7] eybear <wendy>
[11:30:15]: [8] Jerry <wilson>
[11:30:15]: [9] DrewPDrawerz <waxwell>
[11:30:15]: [10] ATHENA* <wendy>
[11:30:15]: [11] Vladimatt (Doc_Squire) <wilson>
[11:30:15]: [12] Gingerbread <wolfgang>
[11:30:15]: [13] Tigre <wilson>
[11:30:15]: [14] geoffie <wathgrithr>
[11:30:15]: [15] slender795310 <webber>
[11:30:15]: [16] RealSashimi <wilson>
[11:30:15]: [17] Jeremy <wilson>
[11:30:15]: [18] wertyloop <woodie>

 

Screenshot_2016_04_24_21_03_33.png
 

Screenshot_2016_04_24_21_01_33.png

 

Ram-wise I am not having any trouble and I have never experienced anything like that and my vps got a pretty stable internet connection but cpu is having problem even at 55% usage.

So again just out of curiosity.

When should we expect an optimization for the servers or is it really impossible to introduce multithreading for this game?

Thanks for the answers from anyone who knows this language and computers (klei devs are especially expected to answer :p)

I don't know how feasible this is, but is it possible for one person to host the overworld and one person host the caves? That could 

1. Allow for multiple caves(?)

2. Reduce the stress on the hosts' computers

Sorry if this isn't even remotely possible :p 

22 minutes ago, BlindGunner said:

I don't know how feasible this is, but is it possible for one person to host the overworld and one person host the caves?

You can have slaves in different hosts connected to a master shard. You need to configure bind_ip and master_ip.

 

OP is complaining about one server itself having a bottleneck.

1 minute ago, DarkXero said:

OP is complaining about one server itself having a bottleneck.

Yes, sorry, I realize my question was only partly related

Just now, DarkXero said:

You can have slaves in different hosts connected to a master shard. You need to configure bind_ip and master_ip.

 

but thanks!

8 hours ago, rezecib said:

@Gingerbread There was a launch option for separating out the physics calculations, at least. Are you using that? I remember it had some stability issues at one point, but I'm not sure if that's still the case. @bizziboi would know.

I'm not seeing it listed in either the command line options topic on the dedicated server board or on the fan wiki.

  • Developer
50 minutes ago, Gingerbread said:

When should we expect an optimization for the servers or is it really impossible to introduce multithreading for this game?

You really can't multithread the lua. The thing about multithreading, the thing that makes it challenging, is you can't just farm off some tiny little thing that needs to access the same RAM as all the other bits. That actually makes it slower. You want some meaty job that has well defined and limited interactions with the rest of the data set. All the lua expects to be able to access the memory of all the other lua all the time. It makes it very convenient for designers and modders to make their ideas a reality, but it's not ideal for performance, so... yeah. It is what it is. 

Anyway, we do have optimization guys, but they're all trying to get PS4 out the door right now. Maybe when PS4 ships we'll do another pass on server performance? No promises obviously.

 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...