You are not logged in.

#1 2012-09-25 21:42:49

kosttek
Member
Registered: 2012-09-25
Posts: 3

[SOLVED]gnome-shell (gnome 3 ) uses large amount of cpu

Hi,
I am new in using arch. I've installed it today and encountered big problem with cpu usage when using gnome 3.
htop shows sometimes that my dual core use 200 % of cpu, especially when I'am moving windows.
I have Toshiba Laptopt with Intel integrated graphic card:

# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

I have installed drivers:

xf86-video-intel 2.20.8-1
intel-dri 8.0.4-3 
lspci -nnk

00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07)
	Subsystem: Toshiba America Info Systems Device [1179:ff67]
	Kernel driver in use: i915

glxinfo | head -n 50

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGIS_multisample, 
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, 
    GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control, 
    GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read, 
    GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample, 
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, 
    GLX_EXT_texture_from_pixmap, GLX_INTEL_swap_event
GLX version: 1.4
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_MESA_multithread_makecurrent, GLX_OML_swap_method, 
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, 
    GLX_EXT_texture_from_pixmap
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x301)
OpenGL version string: 2.1 Mesa 8.0.4
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_ARB_multisample, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, 
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_copy_texture, 
    GL_EXT_polygon_offset, GL_EXT_subtexture, GL_EXT_texture_object, 
    GL_EXT_vertex_array, GL_EXT_compiled_vertex_array, GL_EXT_texture, 

Last edited by kosttek (2012-09-26 18:53:21)

Offline

#2 2012-09-26 09:01:56

dominikb
Member
Registered: 2012-09-10
Posts: 4

Re: [SOLVED]gnome-shell (gnome 3 ) uses large amount of cpu

I have the same graphic card and no problem with gnome 3.

Does the problem only occurs while moving windows?

If you have gnome-documents installed there seems to be a bug/feature. When you enter the activities menu gjs-console will have a high cpu usage for ~20 seconds. I deinstalled gnome-documents and everything works fine. See also this thread: https://bbs.archlinux.org/viewtopic.php?id=140726

Offline

#3 2012-09-26 11:54:56

archie0
Member
Registered: 2012-02-26
Posts: 144

Re: [SOLVED]gnome-shell (gnome 3 ) uses large amount of cpu

You need hardware acceleration in order to use Gnome properly. Try disabling the effects.
Anyways, Gnome is a resource hog.

Offline

#4 2012-09-26 16:28:58

kosttek
Member
Registered: 2012-09-25
Posts: 3

Re: [SOLVED]gnome-shell (gnome 3 ) uses large amount of cpu

Thanks for repley. I will try to reinstall arch again because probably i did somtething wrong.
dominikb - do you have

lib32-intel-dri

installed ?
I think it could be opengl rendring which comsume cpu.
If reinstall fails I ll try turn off effects

Offline

#5 2012-09-26 18:52:18

kosttek
Member
Registered: 2012-09-25
Posts: 3

Re: [SOLVED]gnome-shell (gnome 3 ) uses large amount of cpu

SOLVED!
I was starting by

startx

and my .xinitrc was

gnome-session

and it should be

exec ck-launch-session gnome-session

Offline

#6 2012-09-26 21:37:00

dominikb
Member
Registered: 2012-09-10
Posts: 4

Re: [SOLVED]gnome-shell (gnome 3 ) uses large amount of cpu

Great that you solved it!

Enjoy the light-weight gnome 3! (Sorry, I can't hear the rants about gnome 3 anymore)

I have no clue what ck-launch-session do, other that it is a session manager and has something to do with permissions. So i have changed my .xinitrc to only include gnome-session and there wasn't an increase in CPU usage on my side. Maybe it was a permission problem and our user accounts have different group permissions? But if everything ist working for you now... never mind.

Btw, I do not have installed lib32-intel-dri (I'm using 64bit, as you probably do)

Offline

#7 2012-09-26 22:45:03

timemaster
Member
Registered: 2012-09-26
Posts: 26

Re: [SOLVED]gnome-shell (gnome 3 ) uses large amount of cpu

Hello,
this might not be useful at this point but in your "glxinfo | head -n 50" command is written
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x301)

This means that you were running gnome-shell only on your cpu, not using the hardware acceleration of your graphic card. llvmpipe is the component that allow you to use gnome-shell without hardware acceleration and takes a lot of cpu to do all the animations. This is why when you move windows it run to 200% (using fully 2 core of your cpu).

I have a working hardware acceleration and when moving window gnome-shell take up to ~18%  cpu.

Offline

Board footer

Powered by FluxBB