ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
776 stars 69 forks source link

Server CPU Usage way too high, resulting in lags #1173

Closed Chrzi closed 8 years ago

Chrzi commented 8 years ago

Problem: The CPU Usage of the CS:GO server is very (around 70-100%) and the server cant reach continuously 128 FPS. The sv variable is between 5ms and upto 60ms, the choke reaches sometimes about 25%. In htop I can see that the mainthread uses all that CPU power.

Server settings: 128 Tick, 5vs5 Competitve

System specs: Ubuntu 14.04 with 4.4.0 Kernel. Root-Server with Xeon 4 cores (clockspeed 2,4Ghz, turbo 3,1Ghz), 12GB RAM and SSDs in RAID 10.

I tried it also on an fresh install of Debian Jessie with nothing else running and got the same result. A friend of mine who get the same hardware, does not have these problems! There are no errors shown in the console.

Here are some logs I got with strace and vmstat. By the way I left strace running for about 20seconds on the mainthread and got other 200.000 log messages in that time. strace: https://gist.github.com/Chrzi/4410270fc843b52dba93e9d6c4bc98bd vmstat: https://gist.github.com/Chrzi/6eb9df3c318c94cf97f18d519af8a689

The CPU of the host system is healthy, because I tested it with sysbench.

I hope you can help me.

tpruzina commented 8 years ago

This bugzilla is for csgo client only, not server. @davidw-valve please close.

harryxue1999 commented 8 years ago

@tpruzina What you don't know is that the client is causing significant lag between the client and the server. Server sv var is constantly in the red range even when a local server is in use.

tpruzina commented 8 years ago

@harryxue1999 I fail to see how is that relevant in context of this ticket.

harryxue1999 commented 8 years ago
  1. Due to client's buggy function to connect to server, sv var becomes too high. The same effect is not seen in Windows. Simple cause and effect relationship.
  2. When are you to decide what is relevant or not? Are you a moderator? No. @Tele42
Tele42 commented 8 years ago

Hello @Chrzi, @tpruzina is correct that this issue tracker is explicitly limited to CS:GO Mac and Linux client issues. As far as I know, your best bet is to try the forums.

@harryxue1999, if you have specific details to go along with your claim, it may be interesting to investigate.