Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wine Image Always Overloaded #7

Closed
1 task done
MrSnake0208 opened this issue Jan 27, 2024 · 10 comments · Fixed by #8
Closed
1 task done

Wine Image Always Overloaded #7

MrSnake0208 opened this issue Jan 27, 2024 · 10 comments · Fixed by #8
Labels
bug 🐞 Something isn't working feature-request 🚀 New feature request

Comments

@MrSnake0208
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Used image version

f1b97f0461172c352038b2a5f6ff424f2f73dce757d4878b952fdc9ae2524518

Used docker compose file or docker command

No response

What you expected to see, versus what you actually saw

After my server is started, as soon as someone enters, its latency becomes extremely high, and it shows server overload. However, in reality, it only occupies 3-4GB of memory and some CPU. I saw someone on Reddit with a similar situation, and below is someone's reply:

EDIT: The wonderful Vapok in the official Enshrouded Discord gave me a configuration that uses Proton instead of Wine made by the amazing gOOvER... what a difference. All lag gone, CPU usage sliced in half, RAM usage dropped, no more warnings in-game.
Here's a link to the GitHub that has the PROTON egg for those interested.

Could you please take a look?

Logs from the container

No response

@MrSnake0208 MrSnake0208 added the bug 🐞 Something isn't working label Jan 27, 2024
@cp-fabian-pittroff
Copy link
Member

Hey, I'm already on it. Will probably be a alternative tag to use.

I try to cleanup my scripts and test it in a few hours. I also will need some help from the community to see the load difference hopefully. I will ask for that here Discord.

@cp-fabian-pittroff cp-fabian-pittroff added the feature-request 🚀 New feature request label Jan 27, 2024
@MrSnake0208
Copy link
Author

Hey, I'm already on it. Will probably be a alternative tag to use.

I try to cleanup my scripts and test it in a few hours. I also will need some help from the community to see the load difference hopefully. I will ask for that here Discord.

Thx

@cp-fabian-pittroff
Copy link
Member

I keep the issue open, you can try out the new dev image which uses proton (dev-proton).

@MrSnake0208
Copy link
Author

MrSnake0208 commented Jan 27, 2024

I keep the issue open, you can try out the new dev image which uses proton (dev-proton).

This is my log, something may be wrong?
This is image ec504d1a08ff9514e6727607a047198a39a8c68d22fb8da58d2b0b6649275a74
_enshrouded_logs.txt

@cp-fabian-pittroff
Copy link
Member

ah, jeah I stumbled over the same problem. I will fix that in a future update. For now you have to force an update.

docker compose exec enshrouded supervisorctl start enshrouded-force-update

@rdlaitila
Copy link

rdlaitila commented Jan 27, 2024

I too was seeing high CPU usage on an idle server, and around 2-3GB of idle mem:

image

Tried the dev-proton image and the pod seems to get stuck after bootstrap and updating (cleared my prior server install on storage just to be sure)

2024-01-27 18:36:23.027 supervisord: enshrouded-bootstrap INFO - proton bootstrap finished
2024-01-27 18:36:23,272 INFO spawned: 'enshrouded-updater' with pid 106
2024-01-27 18:36:23,273 INFO success: enshrouded-updater entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-01-27 18:36:23.275 supervisord: enshrouded-bootstrap enshrouded-updater: started
2024-01-27 18:36:23.294 supervisord: enshrouded-updater INFO - Running enshrouded-updater
2024-01-27 18:36:23.299 supervisord: enshrouded-bootstrap INFO - Bootstrap complete
2024-01-27 18:36:23,300 INFO exited: enshrouded-bootstrap (exit status 0; expected)
2024-01-27 18:36:23.897 supervisord: enshrouded-updater INFO - Enshrouded server is already the latest version
2024-01-27 18:36:24.123 supervisord: enshrouded-updater INFO - Enshrouded server is not running - starting
2024-01-27 18:36:24,329 INFO spawned: 'enshrouded-server' with pid 117
2024-01-27 18:36:34,346 INFO success: enshrouded-server entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
2024-01-27 18:36:34.348 supervisord: enshrouded-updater enshrouded-server: started
2024-01-27 18:36:34,376 INFO exited: enshrouded-updater (exit status 0; expected)
2024-01-27 18:36:34.375 supervisord: enshrouded-updater INFO - enshrouded-updater complete

Hope the move to proton helps. Will move back to the latest tag for the time being. Thanks for all the effort this is awesome!

EDIT:

Was able to get a bit further with dev-proton after clearing server storage and current_version file, but its choking on trying to bind a display server

2024-01-27 18:53:37.428 supervisord: enshrouded-server 0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\win32k.sys"
2024-01-27 18:53:37.443 supervisord: enshrouded-server 0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgkrnl.sys"
2024-01-27 18:53:37.461 supervisord: enshrouded-server 0078:err:winedevice:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgmms1.sys"
2024-01-27 18:53:38,463 INFO reaped unknown pid 198 (exit status 0)
2024-01-27 18:53:39.746 supervisord: enshrouded-server 0090:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
2024-01-27 18:53:39.746 supervisord: enshrouded-server 0090:err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly."

EDIT#2:

Had the k8s nvidia runtime bound to the pod which caused my display issue. Removed that and dev-proton booted successfully. Will let run for a bit and report the cpu usage graph again.

EDIT#3:

CPU usage is down 20-25%, and Memory is down about 1G

image

great improvement moving to proton thanks!

@cp-fabian-pittroff
Copy link
Member

@smizdev nice that it worked out. I will implement a fix when switching to the proton image.

I always get the window error, because I don't have setup the x server properly. But the enshrouded server doesn't really need a window. It falls back to console output anyways.

@cp-fabian-pittroff cp-fabian-pittroff changed the title Always Overloaded Wine Image Always Overloaded Jan 28, 2024
@zdegraaf
Copy link

zdegraaf commented Feb 8, 2024

Is this fix implemented in the current release? I've been able to play fine with only a single user that's on the same network as the server, but as soon as my friend, who's connecting remotely, tries to connect the performance tanks for both him and I. Sometimes he can't even get connected at all.
The same as with the reported issue, CPU and memory usage remain low.

@cp-fabian-pittroff
Copy link
Member

@zdegraaf there is a proton version available yes. But you have to specifically use the image tag (eg. stable-proton).
But that also doesn't solve all the problems. Enshrouded still needs a lot of cpu power to run smoothly.

@zdegraaf
Copy link

zdegraaf commented Feb 9, 2024

@cp-fabian-pittroff
I tried running this using stable-proton and overall it was a better experience and was usable playing with two people. I still got the occasional yellow server overloaded message, but I didn't notice any performance drops or disruptive stuttering like I was getting with the Wine version. It still was only using a fraction of the resources I provided to it, though I didn't get a chance to note whether or not any single core was simply overloaded. My environment for reference:
Hypervisor OS: Proxmox 6.4-13
Hypervisor CPU: AMD Threadripper 1950X 16 Cores
VM OS: Ubuntu 22.04.3 LTS
VM Specs: 12 cores, 16 GB Ram
Docker Version: Community 25.0.1

Thanks for the great container build, not just with good core features, but also with great stuff like the backup feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working feature-request 🚀 New feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants