Ok, first, english is not my native language, so I apologize for any poor phrasing.
Second, I'm still learning about Linux, Ubuntu 18.04 to be more specific. This is the first time I use this OS and my knowledge about terminal, commands, packages is still very basic. And the things I CAN do I'm not sure I understand them entirely. Patience, please.
So, to the problem. I decided to try some gaming recently and to my surprise some games I could play before on W10 are unplayable duo to some performance issue. These games start at 35-45 fps and all of sudden drop to 1-15 fps (yes, ONE fps!).
At first I thought it could be something related to the gpu, drivers maybe, but no, I got the latest drivers from some ppa. Messed with the graphical quality of the games, but I started to notice that only the more cpu demanding were having this trouble.
Then I started searching ways to keep track of cpu usage. The system monitor wasn't enough, so I found some watch
commands that track cpu speed and cpu temperature. I had to install lm-sensors
for the temperature.
Finally, it appears the thinness of my laptop is making it overheat and then the cpu throttles, making these abismal drops in fps. I concluded this based on sudden drops in cpu speed as the temperatures were getting high. But I actually can't say if the temperatures I got were THAT high, the maximum I got was around 80°C on the CPU. And also, the fan appears to be working properly, it got around 5000 RPM.
To improve this I tried changing the govern parameter of cpufreq
from powersave to performance. Although it didn't fix the performance drop, I noticed some improvement. The CPU speed dropped to 1600 MHz instead of 600 Mhz. Then it got me wondering if I should set a minimum CPU frequency or deactivate the scalling. But I fear it could led to an overheat and then melting it. I could also try some cooler support, but I'm not sure about the efficiency of those.
So, can anyone shed some light in this?
sudo lshw -c cpu
descrição: CPU
produto: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
fabricante: Intel Corp.
ID físico: 36
informações do barramento: cpu@0
versão: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
serial: To Be Filled By O.E.M.
slot: U3E1
tamanho: 2228MHz
capacidade: 3100MHz
largura: 64 bits
clock: 100MHz
lspci | grep -i VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
lspci | grep -i 3D
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
xandr | grep connected
eDP-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
tomaz@tomaz-Inspiron-7460:~$ stress-ng -t 5m -v --tz -c 4
stress-ng: debug: [15960] 4 processors online, 4 processors configured
stress-ng: info: [15960] dispatching hogs: 4 cpu
stress-ng: debug: [15960] cache allocate: default cache size: 3072K
stress-ng: debug: [15960] starting stressors
stress-ng: debug: [15961] stress-ng-cpu: started [15961] (instance 0)
stress-ng: debug: [15962] stress-ng-cpu: started [15962] (instance 1)
stress-ng: debug: [15960] 4 stressors spawned
stress-ng: debug: [15961] stress-ng-cpu using method 'all'
stress-ng: debug: [15964] stress-ng-cpu: started [15964] (instance 3)
stress-ng: debug: [15963] stress-ng-cpu: started [15963] (instance 2)
stress-ng: debug: [15964] stress-ng-cpu using method 'all'
stress-ng: debug: [15963] stress-ng-cpu using method 'all'
stress-ng: debug: [15962] stress-ng-cpu using method 'all'
stress-ng: debug: [15961] stress-ng-cpu: exited [15961] (instance 0)
stress-ng: debug: [15960] process [15961] terminated
stress-ng: debug: [15963] stress-ng-cpu: exited [15963] (instance 2)
stress-ng: debug: [15962] stress-ng-cpu: exited [15962] (instance 1)
stress-ng: debug: [15960] process [15962] terminated
stress-ng: debug: [15960] process [15963] terminated
stress-ng: debug: [15964] stress-ng-cpu: exited [15964] (instance 3)
stress-ng: debug: [15960] process [15964] terminated
stress-ng: info: [15960] successful run completed in 300.05s (5 mins, 0.05 secs)
stress-ng: info: [15960] cpu:
stress-ng: info: [15960] pch_skylake 59.25 °C
stress-ng: info: [15960] B0D4 62.12 °C
stress-ng: info: [15960] INT3400 Thermal 48.08 °C
stress-ng: info: [15960] SEN2 50.81 °C
stress-ng: info: [15960] TMEM 50.15 °C
stress-ng: info: [15960] x86_pkg_temp 54.88 °C
stress-ng: info: [15960] acpitz 50.61 °C
stress-ng: info: [15960] SEN1 50.78 °C
lspci | grep -i VGA
(shows vendor of graphics chip) andxrandr | grep connected
(shows info about your displays used) – knb Nov 04 '18 at 10:03cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x02640000 (100 C)
and this:cpu0: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x00000003 (100 C, 100 C)
– Tomaz Pablo Nov 04 '18 at 22:05