You are not logged in.

#1 2015-03-14 23:52:09

Tomptez
Member
Registered: 2014-07-14
Posts: 4

[SOLVED] Problems with video/media playback. High CPU load

On the machine which I set up recently I started having some problems with my cpu load, at least when playing media, for example watching videos on youtube. It sometimes gets really laggy and sometimes I can't even watch the videos on full screen, only lower resolutions work. The computer isn't the newest one, but I never had many problems and at least watching videos on youtube shouldn't be much of an issue.

               +                OS: Arch Linux x86_64
               #                Hostname: arch
              ###               Kernel Release: 3.18.6-1-ARCH
             #####              Uptime: 1:28
             ######             WM: Xfwm
            ; #####;            DE: Xfce
           +##.#####            Packages: 867
          +##########           RAM: 661 MB / 3956 MB
         #############;         Processor Type: Intel(R) Core(TM)2 CPU         E8500  @ 3.16GHz
        ###############+        $EDITOR: nano
       #######   #######        Root: 13G / 49G (26%) (ext4)
     .######;     ;###;`".      
    .#######;     ;#####.       
    #########.   .########`     
   ######'           '######    
  ;####                 ####;   
  ##'                     '##   
 #'                         `#  

after a little more than 5 minutes of watching 720p videos on youtube, this is what my cpu load looks like:

 (arch  64bit / Linux 3.18.6-1-ARCH)                                                                                                                                                    Uptime: 1:26:51

CPU      94.0%  nice:     0.0%                                       LOAD    2-core                                       MEM     34.7%  active:    1.68G                                       SWAP      0.0%
user:    54.1%  irq:      0.0%                                       1 min:    4.41                                       total:  3.86G  inactive:  1.18G                                       total:       0
system:  39.7%  iowait:   0.0%                                       5 min:    3.17                                       used:   1.34G  buffers:   75.8M                                       used:        0
idle:     6.0%  steal:    0.0%                                       15 min:   2.10                                       free:   2.52G  cached:    1.63G                                       free:        0

NETWORK     Rx/s   Tx/s   TASKS 130 (337 thr), 4 run, 126 slp, 0 oth sorted automatically by cpu_percent, flat view
enp4s0     611Kb   27Kb
lo          944b   944b     CPU%  MEM%  VIRT   RES   PID USER        NI S    TIME+ IOR/s IOW/s Command 
                            66.0   5.6 1.64G  222M  8836 tom          0 S  4:48.12     0     0 /usr/lib/firefox/plugin-container /usr/lib/mozilla/plugins/libflashplayer.so -greomni /usr/lib/firefox/omni.ja -a
DISK I/O     R/s    W/s     49.9   0.0     0     0  2226 root         0 R  1:40.25     0     0 kworker/0:1
fd0            0      0     21.5  14.3 1.44G  568M  8753 tom          0 S  2:32.13     0   73K firefox 
sda1           0      0     11.4   2.6  355M  101M   231 root         0 S  5:12.12     0     0 /usr/lib/xorg-server/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
sda2           0   104K     10.6   1.1  416M 43.5M  1542 tom          0 S  4:59.95     0     0 pavucontrol 
sda3           0      0      7.3   0.4  771M 14.1M   412 tom          0 S  5:22.50     0     0 /usr/bin/pulseaudio --daemonize=no
sda4           0      0      4.8   1.5 1.12G 57.8M  8080 tom          0 S  0:55.66     0     0 /opt/telegram/Telegram --
sda5           0      0      4.5   1.1  456M 45.5M  8741 tom          0 S  0:02.29     0     0 /usr/bin/python2 /usr/bin/terminator
sda6           0      0      3.6   0.5  103M 21.5M  8899 tom          0 R  0:14.95     0     0 /usr/bin/python /usr/bin/glances
sr0            0      0      3.6   0.5  103M 21.1M  1524 tom          0 R  2:10.94     0     0 /usr/bin/python /usr/bin/glances
                             2.4   4.2  502M  168M  1336 tom          0 S 12:16.44     0     0 /usr/lib32/skype/skype 
FILE SYS    Used  Total      0.6   0.0     0     0    92 root         0 S  0:08.16     0     0 kworker/1:4
/ (sda2)   12.5G  48.9G      0.3   0.0     0     0     7 root         0 S  0:06.40     0     0 rcu_preempt
_ocuments   153G   342G      0.3   0.6  293M 22.2M   397 tom          0 S  0:03.57     0     0 xfce4-panel 
_om/Music   153G   342G      0.3   4.8  691M  190M  2616 tom          0 S  0:04.92     0     0 thunderbird 
_Pictures   153G   342G      0.3   0.0     0     0    14 root         0 S  0:04.67     0     0 ksoftirqd/1
_dia/data   153G   342G      0.0   0.0     0     0    32 root         0 S  0:00.00     0     0 kswapd0
                             0.0   0.1  262M 5.70M   223 root         0 S  0:00.20     0     0 /usr/bin/lightdm 
                             0.0   0.0     0     0     9 root         0 S  0:00.00     0     0 rcu_bh
                             0.0   0.3 37.8M 12.3M   127 root         0 S  0:00.10     0     0 /usr/lib/systemd/systemd-journald 
                             0.0   0.0     0     0     2 root         0 S  0:00.00     0     0 kthreadd
                             0.0   0.0     0     0  1410 root         0 S  0:00.00     0     0 kworker/u8:0
                             0.0   0.1 16.9M 3.68M  1523 tom          0 S  0:00.00     0     0 /bin/bash 
                             0.0   0.0     0     0    28 root       -20 S  0:00.00     0     0 kblockd
                             0.0   0.2  358M 6.45M   438 tom          0 S  0:00.00     0     0 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
                             0.0   0.0 79.7M 1.22M   368 tom          0 S  0:00.00     0     0 (sd-pam) 
                             0.0   0.0     0     0     5 root       -20 S  0:00.00     0     0 kworker/0:0H
                             0.0   0.0     0     0    31 root         0 S  0:00.00     0     0 kworker/1:1
                             0.0   0.4  198M 15.5M   488 tom          0 S  0:00.40     0     0 /usr/lib/xfce4/panel/wrapper-1.0 /usr/lib/xfce4/panel/plugins/libsystray.so 6 16777258 systray Notification Area
                             0.0   0.1 30.3M 2.97M   455 tom          0 S  0:00.62     0     0 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
                             0.0   0.4  361M 15.2M   385 tom          0 S  0:00.40     0     0 xfce4-session 
                             0.0   0.0 8.16M 1.56M  1520 tom          0 S  0:00.00     0     0 gnome-pty-helper 
                             0.0   0.1 16.4M 2.48M   202 root         0 S  0:00.16     0     0 /sbin/mount.ntfs-3g /dev/sda4 /media/data -n -o rw,noexec,nosuid,nodev,uid=1000,gid=1000,dmask=000,fmask=137,user
                             0.0   0.0     0     0     8 root         0 S  0:00.00     0     0 rcu_sched
                             0.0   0.0     0     0    67 root         0 S  0:00.00     0     0 scsi_eh_0
                             0.0   0.2  215M 6.59M   427 tom          0 S  0:00.10     0     0 /usr/lib/gvfs/gvfsd 
                             0.0   0.0     0     0    11 root         0 S  0:00.00     0     0 watchdog/0
                             0.0   0.2  220M 8.29M   485 root         0 S  0:00.50     0     0 /usr/lib/upower/upowerd 


                          Warning or critical alerts (lasts 10 entries)
                          2015-03-15 00:31:40 (ongoing) - CPU_SYSTEM (94.0)
                          2015-03-15 00:31:33 (0:00:04) - CRITICAL on CPU_SYSTEM (93.4)
                          2015-03-15 00:31:20 (0:00:04) - CRITICAL on CPU_SYSTEM (92.1)
                          2015-03-15 00:31:08 (ongoing) - LOAD (1.0)
                          2015-03-15 00:31:07 (0:00:04) - CRITICAL on CPU_SYSTEM (94.5)
                          2015-03-15 00:30:54 (0:00:04) - CRITICAL on CPU_SYSTEM (93.8)
                          2015-03-15 00:30:41 (0:00:04) - CRITICAL on CPU_SYSTEM (94.3)
                          2015-03-15 00:30:28 (0:00:04) - CRITICAL on CPU_SYSTEM (94.9)
                          2015-03-15 00:30:12 (0:00:04) - CRITICAL on CPU_SYSTEM (96.1)
2015-03-15 00:31:40       2015-03-15 00:30:02 (0:00:04) - CRITICAL on CPU_SYSTEM (96.3)

kworker usually doesn't use that much cpu either. lspci:

 lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IB (ICH9) 2 port SATA Controller [IDE mode] (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA Controller [IDE mode] (rev 02)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV670 [Radeon HD 3870]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV670/680 HDMI Audio [Radeon HD 3690/3800 Series]
03:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01)

when running firefox via my terminal it often shows

 Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: No such file or directory

so I figured it might be connected to a problem with my graphic drivers. So far I haven't done to configure my graphic card besides installing xf86-video-ati.
Do you have some ideas what I could do? Tell me if you need any more information.

Thanks for your help smile

Last edited by Tomptez (2015-03-21 15:19:05)

Offline

#2 2015-03-15 00:36:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Problems with video/media playback. High CPU load

Install mesa-vdpau, reboot and try again.

Offline

#3 2015-03-15 05:20:22

bolvan
Member
Registered: 2015-03-14
Posts: 5

Re: [SOLVED] Problems with video/media playback. High CPU load

Kernel CPU usage is very high.
Probably some issues with graphic acceleration.
Consider installing proprietary driver for ATI (catalyst)

Offline

#4 2015-03-21 15:11:29

Tomptez
Member
Registered: 2014-07-14
Posts: 4

Re: [SOLVED] Problems with video/media playback. High CPU load

Installing mesa-vdpau seemed to work. Thank you so much

Offline

#5 2015-03-21 15:34:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Problems with video/media playback. High CPU load

Next time you can try figuring it yourself, there's pkgfile to help https://wiki.archlinux.org/index.php/Pkgfile
You've got an error about a missing file: libvdpau_r600.so. Let's see if any package from the repos provides it

$ pkgfile libvdpau_r600.so
extra/mesa-vdpau

:-)

Offline

Board footer

Powered by FluxBB