You are not logged in.

#1 2016-10-25 16:06:30

shefeek
Member
Registered: 2016-10-15
Posts: 23

[Solved] High CPU usage and fan speed during flash playback and Dota 2

Hi all,

I'm new to Arch. Please help me out I'm observing high CPU usage and fan speed while playing flash or any other process which uses graphics card.
By the way mine is a ASUS K52JU notebook with 512MB Radeon HD6370 graphics card. I'm not sure whether I have configured it properly or not. I did changes mentioned in these pages https://wiki.archlinux.org/index.php/Microcode and https://wiki.archlinux.org/index.php/ATI and has enabled hardware acceleration.

shefeek@archaos ~]$ lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Robson CE [Radeon HD 6370M/7370M]

[shefeek@archaos ~]$ glxinfo | grep Open
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD CEDAR (DRM 2.46.0 / 4.8.4-1-ARCH, LLVM 3.8.1)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 12.0.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 12.0.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 12.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

shefeek@archaos ~]$ vainfo
libva info: VA-API version 0.39.3
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/r600_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.2)
vainfo: Driver version: mesa gallium vaapi
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileVC1Simple              :    VAEntrypointVLD
      VAProfileVC1Main                :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD
      VAProfileH264Baseline           :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileNone                   :    VAEntrypointVideoProc

And Oh yeah while playing Dota 2 I'm having reduced fps in lowest graphic settings. It starts around at 30-35 fps and drops to 9 fps within a minute of start of the game.

Last edited by shefeek (2016-11-03 17:16:53)

Offline

#2 2016-10-25 17:32:38

bryan.paradis
Member
Registered: 2016-10-22
Posts: 43

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Sounds like you could be thermally throttling. Though I could be off mark. I would try to rule out this first.

1) Try checking what you can see with lmsensors

pacman -S lm_sensors

[bryan@bp-mbp-arch ~]$ sensors
BAT0-virtual-0
Adapter: Virtual device
temp1:        +27.7°C  

applesmc-isa-0300
Adapter: ISA adapter
Exhaust  :   2001 RPM  (min = 2000 RPM, max = 6200 RPM)
TA0P:         +32.2°C  
TB0T:         +27.5°C  
TB1T:         +27.5°C  
TB2T:         +25.2°C  
TC0E:         +43.5°C  
TC0F:         +45.0°C  
TC0J:          +1.5°C  
TC0P:         +39.5°C  
TC1C:         +41.0°C  
TC2C:         +43.0°C  
TCGC:         +42.0°C  
TCSA:         +41.0°C  
TCTD:          -0.2°C  
TCXC:         +42.8°C  
TG1D:         +45.0°C  
TM0P:         +30.8°C  
TM0S:         +39.5°C  
TPCD:         +49.0°C  
Th1H:         +35.8°C  
Ts0P:         +26.8°C  
Ts0S:         +30.2°C  

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +45.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:         +41.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:         +45.0°C  (high = +87.0°C, crit = +105.0°C)

2) Is it new or used? What tends to happen over time is that between the heatsink and the fan a carpet of dust forms and no air can escape. See the picture below. What you can do is use a flash light pointed into the fan intake and look to see if you can see any light in the exhaust holes.

http://farm3.static.flickr.com/2694/575 … 465c_b.jpg

3) If it's new you may have a defective heat pipe. You can test a heatpipe by putting the cpu heatsink end in water and seeing if the other end heats up or not. Or you can feel a large difference in temperature across the heatpipe.

4) You could have bad/missing thermal paste on either the GPU or CPU

5) You could have 1 dead fan in a dual fan system that is connected.

6) Try looking into radeontop if you are using the opensource amd driver. It is available on git or in the AUR

Last edited by bryan.paradis (2016-10-27 06:51:14)

Offline

#3 2016-10-25 17:57:32

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Thanks Bryan for quick response I will definitely try these ones.
I tried playing a 720p video in youtube for 3 mins approx and these are the sensor reports

Before playback
--------------------------------------------
shefeek@archaos ~]$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +71.0°C  (crit = +93.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:        +71.0°C  (crit = +120.0°C, hyst = +90.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +66.0°C  (high = +80.0°C, crit = +90.0°C)
Core 2:       +62.0°C  (high = +80.0°C, crit = +90.0°C)


After playback
---------------------------------------------
[shefeek@archaos ~]$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +87.0°C  (crit = +93.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:        +86.0°C  (crit = +120.0°C, hyst = +90.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +85.0°C  (high = +80.0°C, crit = +90.0°C)
Core 2:       +86.0°C  (high = +80.0°C, crit = +90.0°C)

Offline

#4 2016-10-25 18:07:26

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

I used radeontop while flash playback and my VRAM usage didn't vary much it was fixed around 96M/512M (18%) and occassionally jumped to 108M/512M. So I guess my graphics card is not being stressed.

Last edited by shefeek (2016-10-25 18:09:16)

Offline

#5 2016-10-25 21:19:10

seth
Member
Registered: 2012-09-03
Posts: 50,001

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Since when is flash accelerated? It's a lousy piece of s...oftware with sub-par decoders, just don't use it. Use html5 or (in case of youtube) https://www.archlinux.org/packages/comm … be-viewer/ or one of the may other alternatives (also with GUI ;-)

The only thing to care about would be dota2.
Which desktop session do you run? Gnome? Plasma? ...?

Offline

#6 2016-10-26 02:17:12

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Thanks Seth
My DE is Xfce.

Offline

#7 2016-10-26 06:40:50

seth
Member
Registered: 2012-09-03
Posts: 50,001

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

can you try to replace xfwm with eg. openbox (install the latter and run "openbox --replace") or turn of the xfwm compositor (don't ask me how to do thatt, though ;-)

Offline

#8 2016-10-26 13:25:03

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

@bryan.paradis
Please don't post large images https://wiki.archlinux.org/index.php/Co … s_and_code

@shefeek
Given that you have a radeon card, most probably you want to use vdpau instead of va-api.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2016-10-26 14:23:58

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

I tried DEs such as KDE, Openbox with LXDE, Openbox stand alone, XFCE and Cinnamon and same story

Offline

#10 2016-10-26 14:34:04

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

In the section of Hardware acceleration there is a part where I shoud set environment variable as follows
The driver for use with VDPAU is auto-detected, but you may need to override it by using the VDPAU_DRIVER environment variable.

The correct driver name depends on your setup:

    For Intel Graphics or AMD Catalyst you need to set it to va_gl.
    For the open source AMD/ATI driver set it to the proper driver version depending on your GPU (see below).
    For NVIDIA's proprietary version set it to nvidia.

And i got

$ grep -i vdpau ~/.local/share/xorg/Xorg.0.log

[   154.054] (II) RADEON(0): [DRI2]   VDPAU driver: r600


So should I set the variable on xinitrc

Offline

#11 2016-10-26 14:35:49

seth
Member
Registered: 2012-09-03
Posts: 50,001

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

First ensure that you've problems with video playback in eg. mplayer (it'll also show which sink, ie. whether vdpau, is used)

Offline

#12 2016-10-26 15:05:37

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Here's what I got while playing a video through mplayer

[shefeek@archaos ~]$ mplayer /home/shefeek/BU/BASH\ Programming\ Course\ Master\ the\ Linux\ Command.mp4
MPlayer SVN-r37857 (C) 2000-2016 MPlayer Team
224 audio & 451 video codecs
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/shefeek/BU/BASH Programming Course Master the Linux Command.mp4.
libavformat version 57.41.100 (external)
Mismatching header version 57.25.100
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd43acef1c0]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  640x360  24bpp  25.000 fps   92.4 kbps (11.3 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.48.101 (external)
Mismatching header version 57.24.102
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
major_brand: mp42
minor_version: 0
compatible_brands: isommp42
creation_time: 2016-01-18 03:42:54
Load subtitles in /home/shefeek/BU/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 96.0 kbit/3.40% (ratio: 11999->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 640x360 => 640x360 Planar YV12
A:1139.9 V:1139.9 A-V:  0.006 ct:  0.050   0/  0  2%  3%  0.8% 0 0
A:2468.2 V:2468.2 A-V:  0.000 ct:  0.042   0/  0  2%  1%  0.6% 0 0

So I guess my vdpau is being used

Offline

#13 2016-10-26 15:08:49

seth
Member
Registered: 2012-09-03
Posts: 50,001

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Please move that into code tags and why do you think vdpau is used?
Try "mplayer -vc ffh264vdpau movie.mp4"

Offline

#14 2016-10-26 15:14:48

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

This line

VO: [vdpau] 640x360 => 640x360 Planar YV12???

Offline

#15 2016-10-26 15:16:52

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Now I got this

Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 640x360 => 640x360 H.264 VDPAU acceleration
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 640x360 => 640x360 H.264 VDPAU acceleration

Offline

#16 2016-10-26 15:44:01

seth
Member
Registered: 2012-09-03
Posts: 50,001

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Yupp, difference between "sink" and "acceleratiop" - should also make a difference on the cpu.
If everything's fine there, the only real trouble is dota (GL, iirc that's a WC3 mod, isn't?) and the question why it's not accelerated.

Steam?
Please try eg. warsow, urbanterror, sauerbraten or supertuxkart as "benchmark" (from the arch repos)

Offline

#17 2016-10-27 06:53:15

bryan.paradis
Member
Registered: 2016-10-22
Posts: 43

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

R00KIE wrote:

@bryan.paradis
Please don't post large images https://wiki.archlinux.org/index.php/Co … s_and_code

Changed it to a url. Suggestion would be to limit the image size by reszing with bbcode change or a custom bbcode tag different than img

shefeek wrote:

I tried playing a 720p video in youtube for 3 mins approx and these are the sensor reports

You have pretty high idle temps and very high temps for playing 720p video. Which CPU do you have on your ASUS? The specs on their site indicate one of the following:

Intel® Core™ i5 460M/480M/560M/580M Processor
Intel® Core™ i3 350M/370M/380M/390M Processor
Intel® Pentium® Dual-Core P6200/P6100 Processor

If you check the CPU clock speed when you aren't having the problem and when you are having the problem what do you get?

lscpu | grep -i mhz
cat /proc/cpuinfo | grep -i mhz

Were you able to check the dust in the fan/heatsink?

Last edited by bryan.paradis (2016-10-27 07:06:06)

Offline

#18 2016-10-27 14:13:58

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Hi Bryan  thanks
My CPU is i3 and I dont remember particularly which one, i think it is 380M

CPU clock speed when idle

[shefeek@archaos ~]$ lscpu | grep -i mhz
CPU MHz:               1999.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000

[shefeek@archaos ~]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 933.000
cpu MHz        : 933.000
cpu MHz        : 1066.000
cpu MHz        : 933.000

CPU clock speed when me having problem

[shefeek@archaos ~]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 1999.000
cpu MHz        : 1999.000
cpu MHz        : 1999.000
cpu MHz        : 1999.000
[shefeek@archaos ~]$ lscpu | grep -i mhz
CPU MHz:               1999.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000
[shefeek@archaos ~]$ lscpu | grep -i mhz
CPU MHz:               1599.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000
[shefeek@archaos ~]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 2533.000
cpu MHz        : 1999.000
cpu MHz        : 1066.000
cpu MHz        : 1599.000
[shefeek@archaos ~]$ lscpu | grep -i mhz
CPU MHz:               1466.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000
[shefeek@archaos ~]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 1866.000
cpu MHz        : 1999.000
cpu MHz        : 1466.000
cpu MHz        : 1333.000
[shefeek@archaos ~]$ lscpu | grep -i mhz
CPU MHz:               1199.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000
[shefeek@archaos ~]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 1066.000
cpu MHz        : 1866.000
cpu MHz        : 1999.000
cpu MHz        : 1999.000

And no I haven't yet checked my fans and heat sink, I have to get a toolkit first.

Last edited by shefeek (2016-10-27 14:14:44)

Offline

#19 2016-10-27 14:19:00

seth
Member
Registered: 2012-09-03
Posts: 50,001

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

before you disassemble your system: does heat & cpu load also hold for mplayer playback?

Offline

#20 2016-10-27 14:39:04

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

While playing mplayer it is fine I think

[shefeek@archaos ~]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 2533.000
cpu MHz        : 933.000
cpu MHz        : 1199.000
cpu MHz        : 933.000
[shefeek@archaos ~]$ lscpu | grep -i mhz
CPU MHz:               1066.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000
[shefeek@archaos ~]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 1066.000
cpu MHz        : 1066.000
cpu MHz        : 933.000
cpu MHz        : 933.000
[shefeek@archaos ~]$ lscpu | grep -i mhz
CPU MHz:               933.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000
[shefeek@archaos ~]$ lscpu | grep -i mhz
CPU MHz:               1066.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000
[shefeek@archaos ~]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 1066.000
cpu MHz        : 933.000
cpu MHz        : 1066.000
cpu MHz        : 933.000

Offline

#21 2016-10-27 14:48:50

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

This is what I got while a 720p playback in youtube

[shefeek@archaos Desktop]$ lscpu | grep -i mhz
CPU MHz:               2399.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000
[shefeek@archaos Desktop]$ lscpu | grep -i mhz
CPU MHz:               2533.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000
[shefeek@archaos Desktop]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 2533.000
cpu MHz        : 2533.000
cpu MHz        : 2533.000
cpu MHz        : 2533.000
[shefeek@archaos Desktop]$ cat /proc/cpuinfo | grep -i mhz
cpu MHz        : 2533.000
cpu MHz        : 2533.000
cpu MHz        : 2533.000
cpu MHz        : 2533.000
[shefeek@archaos Desktop]$ lscpu | grep -i mhz
CPU MHz:               2533.000
CPU max MHz:           2533.0000
CPU min MHz:           933.0000

Offline

#22 2016-10-27 14:55:51

seth
Member
Registered: 2012-09-03
Posts: 50,001

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Let me repeat: flash is as inefficient as it can be. That's not an "error" - at least it's unfixable.
Did you try the performance of other games?

Offline

#23 2016-10-27 14:59:15

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

Hmm i have to download one of the other games

Offline

#24 2016-10-27 15:46:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

I don't really know what you are expecting, DOTA 2 is a modern and actively developed game that keeps getting updates and (even if slight) requirement increases. By comparison your notebook is fairly old, both in the CPU and GPU department. I'd assume that it starts to get hot and starts to spin up the fans during a DOTA 2 run is going to be quite normal, even on windows (and notebooks have a tendency to spin up the fans rather sooner than later since they will get hotter because of the confined space).

Last edited by V1del (2016-10-27 15:48:17)

Offline

#25 2016-10-27 17:46:41

shefeek
Member
Registered: 2016-10-15
Posts: 23

Re: [Solved] High CPU usage and fan speed during flash playback and Dota 2

HI V1del
I used to play Dota 2 in windows till last June and it was all fine. My lappy still heats up but performance was fair. But after moving to linux I've been facing this problem so I was doubting whether is it something about the config or something.

Offline

Board footer

Powered by FluxBB