jammsen / docker-palworld-dedicated-server

Docker container to easily provision and manage Palworld Dedicated Server
https://hub.docker.com/r/jammsen/palworld-dedicated-server
MIT License
898 stars 151 forks source link

[Bug Report] Linux server only maxing out one CPU core #186

Closed Trollwut closed 5 months ago

Trollwut commented 5 months ago

Have you read the Important information text above

Current behavior

On deploying with docker, as supposed, my htop shows that the Palworld server only uses 1 core, but maxes it out to 100%.

Ingame stats show that the server is running at 25 FPS.

Desired behavior

Multithreading and using more cores (or max cores (8 are available)) would be nice to ensure better performance.

Links to screenshots

No response

To Reproduce

Steps to reproduce the behavior:

  1. deploy docker image
  2. see only one CPU maxed out in htop

Software setup

Hardware setup

Additional context

No response

beardenj commented 5 months ago

I noticed similar behavior with my 8 core server. Have you tried running it in Windows? If so, does it still exhibit the same behavior?

Trollwut commented 5 months ago

I wont have a Windows system near me for the next few days, so I cant check...

jammsen commented 5 months ago

Hey @Trollwut - Not sure how this is a bug and you dont really ask a clear question here, so what is your expectation you have?

My Docker-Stats show this: CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS xxxxxxx palworld-dedicated-server 101.99% 23.02GiB / 31.41GiB 73.29% 486MB / 2.03GB 2.31GB / 274GB 85

Here and there the CPU jumps for a few seconds or a minute up to 200-215'ish percent.

This seems to be just normal behavior with Unreal Engine. ASE in UE4 did that too, 1 Master/Main Thread that got heavy - to very heavy usage and which delegated the other work to other threads so the server is very responsive.

Im not sure what a Docker-Image would be able to change here, in a nutshell im just running a binary in a minimal Linux in an application virtualization.

Can you please explain what your thoughts and questions are?

Trollwut commented 5 months ago

It's just maxing out a single core, not any other available of the rest.

So my desired behaviour would be using more cores.

I dont know, if this is a docker limitation or from the server software, so I try it here as well.

jammsen commented 5 months ago

@Trollwut This is a dedicated server issue, im just starting a binary under Linux. Im doing nothing to hardware-priorization or limitation. At least not in the default setup thats posted here on github.

There is nothing i can do about this.

If you like this project, please consider giving this repo and the Docker-Hub-Repo a Star.

Trollwut commented 5 months ago

Ok, so it's up to the Palworld server devs to tweak their performance.

If you like this project, please consider giving this repo and the Docker-Hub-Repo a Star.

Will do, thanks!

Callum027 commented 5 months ago

I believe this is a legitimate bug, and I have a PR to fix it here:

https://github.com/jammsen/docker-palworld-dedicated-server/pull/190

jammsen commented 5 months ago

Hey @Callum027 - Thanks i will merge it to develop and will try it out. Thanks for the contribution.