Dedicated server cpu usage high on linux
When a dedicated server is installed on linux, the cpu usage is very high. With no players connected on my server I see a static 110-120% cpu usage (out of 400%)
Comments: 16
-
10 Feb, '21
Mazo+1 on this, usage at idle is far too high. Seeing 70-80% of a core on an E5-2450v2 with zero players ingame. Apparently the windows version of the dedicated server is <3% cpu usage at idle
-
10 Feb, '21
Grimesy88Yup same, my empty server is sitting at 1.6GB RAM and 110-150% CPU, never drops below the lower threshold. Interestingly when there is 3 or 4 of us playing it doesn't seem to alter much.
-
10 Feb, '21
MarxThey may need to configure Application.targetFrameRate to 60 instead of -1 for linux.
https://docs.unity3d.com/ScriptReference/Application-targetFrameRate.html
A Unity issue on the topic:
https://issuetracker.unity3d.com/issues/network-manager-has-increased-cpu-usage-in-linux-player-after-upgrade-to-2018-dot-2 -
11 Feb, '21
Kevthis explains why the usage on my current provider is 70-80% at idle when our last provider was only like 3-4%. The server hits 100%+ with about 7-8 people and it is very noticeable for me, my ping seems to go up a bit, and I start getting desync with doors not opening, or drops not being sucked into my inventory right away worse than normal.
-
12 Feb, '21
AlexCan reproduce, ~110% (out of 4 cores) cpu usage, memory usage is also around 1.6gb resident.
Ubuntu 20.04.2 LTS, Hyper-V guest. Performance is otherwise fine with up to 5 players on it, but gets impacted by any other workload that consumes some reasonable amount of cpu. -
15 Feb, '21
martincan reproduce on linux.
I've added files from my system in Steam's forum: https://steamcommunity.com/app/892970/discussions/1/4939856028582584825/ -
15 Feb, '21
PeterCan confirm this issue.
Debian 10.8, Valheim dedicated server (build 6213901) installed via SteamCMD using LinuxGSM script.
Looking forward to a fix to this since I do not want to keep a Windows host running for the Valheim server. -
15 Feb, '21
Alex FI see the same issue; on CentOS 8 with a Ryzen 3 I get ~58% usage while no one is connected, or ~60% with one user connected. It'd be really nice if the server could "sleep" somehow while idle.
-
15 Feb, '21
FerretReproduced on CentOS 8 (x64) with and without containerization (docker/podman[-compose]). On a ~2.8GHz CPU the server process constantly uses ~90% of a core. On a 3.7GHz CPU the server process uses ~70% of a core.
-
16 Feb, '21
nãoéstu+1 Using a lot cpu and performance problems even with high end dedicated machines and low population.
-
17 Feb, '21
TomAll seems to be good now after the latest patch. CPU is sitting around 10-12% at idle. Thanks god.
-
17 Feb, '21
faloMuch improved for me with today's release (0.145.6) on multiple servers.
-
17 Feb, '21
AndrewIron Gate changed Application.targetFrameRate default to 30 on Linux server with the latest update. Solved!
-
17 Feb, '21
StevenCan confirm this is fixed in the latest update but I don't see any way to retract/solve the bug so I guess its up to the devs to do that
-
19 Feb, '21
BenjaminSame here! Thanks for fixing the issue!