jammsen / docker-sons-of-the-forest-dedicated-server

Docker container to easily provision and manage Sons of the Forest Dedicated Server with Wine
https://hub.docker.com/r/jammsen/sons-of-the-forest-dedicated-server
134 stars 19 forks source link

Performance under Wine #7

Closed JS-E closed 1 year ago

JS-E commented 1 year ago

Hi there,

This is really cool stuff so first off good job! πŸ‘

Just wondering if you've done any performance testing under wine vs dedicated windows setup? It's a shame SOTF doesn't support linux at the moment as i can imagine it would be much easier to get running under linux.

jammsen commented 1 year ago

I did test it on my root and local on my NAS in VMs and Docker-Container (Linux and Windows alike) and the performance was for me identical. (I mean Wine is just a compability layer for Linux and Windows, dunno about performance impacts)

JS-E commented 1 year ago

So according to my research it does depend on the game, some games (like borderland) have quite a significant drop in performance under wine, but if you have tested it then it should be good. Also i assume that because this is just doing pure hosting calculations and not rendering anything it'll be less problematic πŸ‘

jammsen commented 1 year ago

Yeah its not like its rendering something and you actually play this as a game, its only a handler for a game-instance with server-fps based on objects and data to stream to players. Its only cpu-based tasks, so i would not worry about that.

asarkar157 commented 1 year ago

@jammsen do you have any CPU/RAM sizing recommendations for VMs to host this on?

jammsen commented 1 year ago

Hey @asarkar157 Hmmm i did answer things to my Test-Setup in #4 but thats more "barely minimal" i guess you could say.

My Docker-Test-Node is 12vCPUs and 8GB RAM, it works fine for testing. If you play with more people i would bump memory more up.

Afaik there are no official "Minimum System Requirements" for the DS:

My NAS has a "AMD Ryzenβ„’ 7 5700G" 3,8 Base 4,6 Boost

CPU: At least 4 real cores or 6-8 vCPUs if you work with virtualization RAM: TL;DR ~8-12+GB Background:

jammsen commented 1 year ago

@asarkar157 @JS-E Can we close this? Are the questions answered?

JS-E commented 1 year ago

@jammsen Yeah i did have some more questions, but i think it would be irrelevant for this issue :) Appreciate the response

jammsen commented 1 year ago

@JS-E ask them here or make a new issue, just like you feel.

asarkar157 commented 1 year ago

Just ran into performance issues with 3 players when we started doing very light base building -- tree fall and bird animations were stuttering+slow, then eventually the server host crashed. This was on an Ubuntu VM with 2vCPU+8GB RAM. CPU util was steady at 80%, but spiked to 90% right before crash, and RAM was consistently at 95% utilized.

I will try again with a 4vCPU+16GB RAM setup and report back

jammsen commented 1 year ago

@asarkar157 - lol @ 2vCPUs did you even read my recommendations? https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server/issues/7#issuecomment-1611097781

asarkar157 commented 1 year ago

Of course! Just reporting back actual test data. I migrated the instance to 4vCPU/16GB RAM and have had no issues so far. If I hit another crash with this setup, I'll report back and scale up the instance once more :)

On Wed, Jul 12, 2023, 2:27 AM Sebastian Schmidt @.***> wrote:

@asarkar157 https://github.com/asarkar157 - lol @ 2vCPUs did you even read my recommendations?

7 (comment)

https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server/issues/7#issuecomment-1611097781

β€” Reply to this email directly, view it on GitHub https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server/issues/7#issuecomment-1632164682, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE6XCOHBGPM3HLXDLN4D6STXPZUXJANCNFSM6AAAAAAZWBVTDQ . You are receiving this because you were mentioned.Message ID: <jammsen/docker-sons-of-the-forest-dedicated-server/issues/7/1632164682@ github.com>