TrevorCarmichael / V-Rising-Docker-Linux

V Rising Docker Linux
40 stars 37 forks source link

High CPU Usage when Docker load #5

Open SeBL4RD opened 2 years ago

SeBL4RD commented 2 years ago

As said in title, since i installed Docker and deployed V-Rising-Docker-Linux, i have ./kswapd0 constantly using 4 threads at 100% on my 4790k. I can feel my kernel is not stable since, my Teamspeak server crashed ! This has never happened to anyone since the creation of mankind.

See by yourself : https://i.imgur.com/haEOfAa.jpeg

cabaleirog commented 2 years ago

I think that adjusting the swappiness might alleviate the issue, as kswapd is managing the virtual memory, which is a CPU heavy process, moving data back and forth between RAM and SWAP. The link below might give you a starting point. https://wiki.manjaro.org/index.php/Swap#Tuning_.26_Performance_Considerations

SeBL4RD commented 2 years ago

I have a 4970k, 32 GB of RAM and 250 mbps on my dedicated, on Debian 11. I have 2 Rust servers, 1 PZ server. Even with Docker + VRising, I only have 20 GB out of 32 used. I don't see why the swap would have a problem. I have in the past had many games in addition, with a good CPU and RAM load, never had any worries of this style, it's really since I installed your Dock.

SeBL4RD commented 2 years ago

Nothing about this? https://www.digitalocean.com/community/questions/process-kswapd0-triggers-100-cpu-usage

SeBL4RD commented 2 years ago

That was it, I had a crypto miner on my Debian :O. As for the server, everything works flawlessly, I just wonder, being severely rusty from Docker, the server launches steamcmd at each start for update or do you have to do a particular manipulation? It really lacks a description, I had to write a script for the dependencies, and I had to find the command to stop the server. You should think about people who are not familiar with Docker.

SeBL4RD commented 2 years ago

This if does not permit updating server : if [ ! -e "./steaminstalled.txt" ]; then wincfg wine steamcmd.exe +force_install_dir "C:\VRisingServer" +login anonymous +app_update 1829350 validate +quit touch ./steaminstalled.txt fi