compiz HIGH CPU usage only during screen lock is ON

Bug #1511727 reported by V-Mark
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I just realized that my problem is NOT screen switch OFF, but the screen lock is ON.
Therefore I removed this issue from duplicate.

My (updated) problem:

I got very HIGH CPU usage ONLY when screen lock is ON.
Again, I have NO PROBLEM during work (video playback, moving windows slowly or fast, no lag, everything is perfect),
BUT when I am out of computer: 20 secs after screen lock activates CPU fan starts and works heavily (my colleague started to complain due to my CPU fan in quiet environment).
When I switch off screen lock: compiz works nicely.
When I switch on screen lock for 1 min (after display goes off):
- My laptop is calm AFTER screen goes off,
- Ma laptop's fan starts 1 min 20 secs after screen goes off.

So confirmed: My problem is NOT screen switch OFF, but the screen lock is ON.

Data:
- Fresh install of Ubuntu 15.10 (plus some other non-desktop or gnome related packages)
- All energy consumption related settings are default (I have not changed them till now).
- Laptop: ACER Aspire V3-371
- CPU: Intel Core i5-5257U
- GPU: Intel Iris grapics 6100
- Display: 1920x1080 internal laptop display, no other display ever plugged in.
- 8G RAM
- 120G SSD

First few lines of top immediately after going on from IDLE:
top - 13:38:25 up 5:39, 3 users, load average: 1,13, 0,90, 0,58
Tasks: 200 total, 1 running, 199 sleeping, 0 stopped, 0 zombie
%Cpu(s): 8,6 us, 17,2 sy, 0,0 ni, 74,0 id, 0,2 wa, 0,0 hi, 0,1 si, 0,0 st
KiB Mem: 8211348 total, 3555940 used, 4655408 free, 103832 buffers
KiB Swap: 7844308 total, 0 used, 7844308 free. 2532732 cached Mem

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 1396 mark 20 0 288468 114380 70560 S 101,1 1,4 117:11.91 compiz
  880 root 20 0 351812 114572 101256 S 0,7 1,4 3:56.06 Xorg
 1800 mark 20 0 864108 291328 78396 S 0,7 3,5 10:57.81 firefox
 1365 mark 20 0 51868 8720 7216 S 0,3 0,1 0:10.89 ibus-daemon
 5849 root 20 0 0 0 0 S 0,3 0,0 0:01.76 kworker/1:1
 5914 root 20 0 0 0 0 S 0,3 0,0 0:00.03 kworker/u16:0
    1 root 20 0 24884 4848 3716 S 0,0 0,1 0:01.46 systemd

After 20 minutes work, top is:
top - 13:54:31 up 5:56, 3 users, load average: 0,32, 0,24, 0,32
Tasks: 198 total, 1 running, 197 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3,6 us, 6,2 sy, 0,0 ni, 90,0 id, 0,1 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 8211348 total, 3536196 used, 4675152 free, 107652 buffers
KiB Swap: 7844308 total, 0 used, 7844308 free. 2496072 cached Mem

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 6728 mark 20 0 7196 2844 2404 R 6,4 0,0 0:00.01 top
    1 root 20 0 24884 4848 3716 S 0,0 0,1 0:01.46 systemd
    2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd
    3 root 20 0 0 0 0 S 0,0 0,0 0:00.66 ksoftirqd/0
    5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
    7 root 20 0 0 0 0 S 0,0 0,0 0:06.86 rcu_sched
    8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh
    9 root rt 0 0 0 0 S 0,0 0,0 0:00.02 migration/0
   10 root rt 0 0 0 0 S 0,0 0,0 0:00.04 watchdog/0
   11 root rt 0 0 0 0 S 0,0 0,0 0:00.04 watchdog/1
   12 root rt 0 0 0 0 S 0,0 0,0 0:00.02 migration/1
   13 root 20 0 0 0 0 S 0,0 0,0 0:00.54 ksoftirqd/1
   15 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/1:0H
   16 root rt 0 0 0 0 S 0,0 0,0 0:00.04 watchdog/2

Please have a look at the total compiz time used (today). Over 117 mins of CPU!

$ apt-cache policy compiz
compiz:
  Telepítve: 1:0.9.12.2+15.10.20151015-0ubuntu1
  Jelölt: 1:0.9.12.2+15.10.20151015-0ubuntu1
  Verziótáblázat:
 *** 1:0.9.12.2+15.10.20151015-0ubuntu1 0
        500 http://hu.archive.ubuntu.com/ubuntu/ wily/main i386 Packages
        100 /var/lib/dpkg/status

I can make any tests if you wish.
Thanks for helping.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: compiz-core 1:0.9.12.2+15.10.20151015-0ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic i686
.tmp.unity.support.test.0:

ApportVersion: 2.19.1-0ubuntu4
Architecture: i386
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
Date: Fri Oct 30 13:44:00 2015
DistUpgraded: Fresh install
DistroCodename: wily
DistroVariant: ubuntu
DkmsStatus: virtualbox, 5.0.4, 4.2.0-16-generic, i686: installed
ExecutablePath: /usr/bin/compiz
GraphicsCard:
 Intel Corporation Broadwell-U Integrated Graphics [8086:162b] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Acer Incorporated [ALI] Device [1025:0919]
InstallationDate: Installed on 2015-10-26 (4 days ago)
InstallationMedia: Ubuntu "Wily" - Build i386 LIVE Binary 20151022-23:55
MachineType: Acer Aspire V3-371
ProcEnviron:
 PATH=(custom, user)
 SHELL=/bin/bash
 LANG=hu_HU.UTF-8
 LANGUAGE=hu
 XDG_RUNTIME_DIR=<set>
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-16-generic root=UUID=403e935b-5da2-4b34-8dd7-14f1c0cf0846 ro quiet splash vt.handoff=7
SourcePackage: compiz
UdevLog: Error: [Errno 2] Nincs ilyen fájl vagy könyvtár: '/var/log/udev'
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/21/2015
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: V1.28
dmi.board.asset.tag: No Asset Tag
dmi.board.name: Aspire V3-371
dmi.board.vendor: Acer
dmi.board.version: V1.28
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.version: V1.28
dmi.modalias: dmi:bvnInsydeCorp.:bvrV1.28:bd08/21/2015:svnAcer:pnAspireV3-371:pvrV1.28:rvnAcer:rnAspireV3-371:rvrV1.28:cvnAcer:ct10:cvrV1.28:
dmi.product.name: Aspire V3-371
dmi.product.version: V1.28
dmi.sys.vendor: Acer
version.compiz: compiz 1:0.9.12.2+15.10.20151015-0ubuntu1
version.libdrm2: libdrm2 2.4.64-1
version.libgl1-mesa-dri: libgl1-mesa-dri 11.0.2-1ubuntu4
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 11.0.2-1ubuntu4
version.xserver-xorg-core: xserver-xorg-core 2:1.17.2-1ubuntu9
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.9.2-1ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.5.0+git20150819-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20150808-0ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.11-1ubuntu3
xserver.bootTime: Fri Oct 30 07:58:32 2015
xserver.configfile: default
xserver.errors:

xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:
 product id 4397
 vendor AUO
xserver.version: 2:1.17.2-1ubuntu9

Revision history for this message
V-Mark (vertesmark) wrote :
Revision history for this message
V-Mark (vertesmark) wrote :

I do not know if this helps, but immediately after IDLE (screen off):
top with separated CPU-s:

top - 14:38:27 up 6:39, 3 users, load average: 0,70, 0,32, 0,21
Tasks: 200 total, 1 running, 199 sleeping, 0 stopped, 0 zombie
%Cpu0 : 0,7 us, 1,0 sy, 0,0 ni, 98,3 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
%Cpu1 : 0,0 us, 0,7 sy, 0,0 ni, 98,7 id, 0,3 wa, 0,0 hi, 0,3 si, 0,0 st
%Cpu2 : 1,0 us, 0,0 sy, 0,0 ni, 99,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
%Cpu3 : 34,9 us, 65,1 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 8211348 total, 3645980 used, 4565368 free, 108936 buffers
KiB Swap: 7844308 total, 0 used, 7844308 free. 2569852 cached Mem

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 1396 mark 20 0 288756 114788 70772 S 100,8 1,4 120:45.68 compiz
 1800 mark 20 0 866636 332252 78480 S 0,3 4,0 13:16.19 firefox
 4454 mark 20 0 125108 34428 26224 S 0,3 0,4 0:13.64 gnome-terminal-
 5850 root 20 0 0 0 0 S 0,3 0,0 0:04.45 kworker/0:2
 6878 mark 20 0 7172 2832 2364 R 0,3 0,0 0:00.23 top
    1 root 20 0 24884 4848 3716 S 0,0 0,1 0:01.49 systemd
    2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd
    3 root 20 0 0 0 0 S 0,0 0,0 0:00.70 ksoftirqd/0
    5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
    7 root 20 0 0 0 0 S 0,0 0,0 0:08.01 rcu_sched
    8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh

So compiz is occupying one of my core 100% only DURING IDLE (screen off)

Mark

summary: - compiz HIGH CPU usage only during AFK
+ compiz HIGH CPU usage only during screen is off
Revision history for this message
V-Mark (vertesmark) wrote : Re: compiz HIGH CPU usage only during screen is off

I have found the solution - with other hardware, but worked for me as well, so I marked as duplicate.

Due to other hardware I do not have Catalyst Center, but alternative steps

In OpenGL section sync to Vblank sign -> off
(this made my CPU workload 70%)

AND

4. Run "ccsm" (I had to install)
5. In Workarounds, enable "Force full screen redraw (buffer swap) on repaint".

... and reboot worked.

V-Mark (vertesmark)
description: updated
V-Mark (vertesmark)
description: updated
summary: - compiz HIGH CPU usage only during screen is off
+ compiz HIGH CPU usage only during screen lock is ON
Revision history for this message
V-Mark (vertesmark) wrote :

If I directly lock my device (Alt-Ctrl-Del -> Lock)
problem show up immediately.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in compiz (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.