Page 1 of 1

[0.15.2] High CPU use on Linux

Posted: Wed Apr 26, 2017 7:39 am
by mjibson
Running Debian with graphics drivers from nvidia. CPU stays at 800% while in a game. Works fine under Windows on the same machine. 0.14.23 has a similar problem, but limited CPU use to 600%, and is a bit more playable. 0.15 is too slow to play well. GTX 980, i7-5930K.

Re: [0.15.2] High CPU use on Linux

Posted: Wed Apr 26, 2017 7:50 am
by Loewchen
Read Performance Issues section in FAQ, provide requested info and the save.

Re: [0.15.2] High CPU use on Linux

Posted: Wed Apr 26, 2017 5:32 pm
by Rseding91
That sounds like a configuration/OS issue on your end. Factorio doesn't even launch enough threads to consume that % of CPU.

Additionally we experience no such issues when running any version on Linux internally.

Re: [0.15.2] High CPU use on Linux

Posted: Thu Apr 27, 2017 12:34 pm
by seanparsons
I'm seeing something similar to this, but it's X that is spiking high on a single core. I saw it happen once on 0.15.1, but now I'm on 0.15.2 it seems to be happening near constantly. Never had any issues like this in the 200+ hours I've played in the last month on 0.14.x.

What seems odd is that the game thinks the FPS is fine and dandy, but when this really kicks in I'll be looking at maybe 1FPS.

Re: [0.15.2] High CPU use on Linux

Posted: Thu Apr 27, 2017 12:49 pm
by SQLek
Seems like I/O waiting state. How much free ram You have? Can You capture result of "top -bn 1" when misbehavior occur?

Re: [0.15.2] High CPU use on Linux

Posted: Fri Apr 28, 2017 9:20 pm
by mjibson
> Read Performance Issues section in FAQ

I don't see a section named "performance issues" or anything similar in the FAQ.

> That sounds like a configuration/OS issue on your end.

Can you suggest some ways to determine this? I'm not sure what configuration I've changed to cause this.

> How much free ram You have? Can You capture result of "top -bn 1" when misbehavior occur?

32G of ram.

Code: Select all

top - 17:16:47 up  5:02,  5 users,  load average: 4.59, 1.56, 0.79
Tasks: 297 total,   1 running, 296 sleeping,   0 stopped,   0 zombie
%Cpu(s):  6.1 us,  1.2 sy,  0.0 ni, 92.4 id,  0.1 wa,  0.0 hi,  0.1 si,  0.0 st
KiB Mem : 32874836 total, 20836860 free,  7294540 used,  4743436 buff/cache
KiB Swap: 25057276 total, 25057276 free,        0 used. 24838428 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 7774 mjibson   20   0 3672204 1.565g  84468 S 833.3  5.0   4:29.28 factorio
This happens immediately after loading a map.

Re: [0.15.2] High CPU use on Linux

Posted: Sat Apr 29, 2017 5:19 pm
by seanparsons
The only thing that I find a bit weird is that X is hitting 80% CPU usage on the main menu immediately after starting the game. Which _really_ shouldn't be pushing things hard at all.