View previous topic :: View next topic |
Author |
Message |
yellowhat Guru
Joined: 10 Sep 2008 Posts: 528
|
Posted: Sun Sep 23, 2012 9:56 pm Post subject: X loads my cpu by 20% at idle |
|
|
Hi all,
I am using vanilla-source-3.6-rc6, mesa, xf86-video-ati, libdrm live versions and xorg-server-1.13.0, as desktop environment I am using lxsession with compiz as window manager and I have always used "startx" to startup my desktop environment.
In my opinion my cpu at idle is too much loaded, let me explain.
At idle, no other application is loaded except lxpanel, pcmanfm and conky, I can see from conky that the load on my dual core is divided in 4-7% and 18-24% at 1GHz (lowest state).
This is not a big problem because all is very smooth using all my application and all compiz effect are damm smooth.
But this load at idle has been always present since I used gnome 3 (last 2 years) and now with compiz.
I never worried about this but now I want to know why at idle it should load so much my cpu because I noted that on my father's laptop (i7-720QM, ~amd64) all 8 core are loaded between 0-1% at 933MHz.
This get me crazy.
According to top:
Code: | 1773 root 20 0 52284 24m 6468 S 22,6 0,8 64:59.34 X
1890 vasco 20 0 90060 5200 3312 S 2,7 0,2 6:50.52 conky
20476 vasco 20 0 81300 24m 13m S 1,0 0,8 0:00.99 terminator
1803 vasco 20 0 86540 23m 16m S 0,7 0,8 12:56.45 compiz
20571 vasco 20 0 4840 1460 1088 R 0,7 0,0 0:00.15 top |
So X seems to be the gulty.
Any ideas?
Thanks |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Mon Sep 24, 2012 1:15 am Post subject: |
|
|
I can't see any obvious cause from what you've listed, running powertop might be useful though. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Mon Sep 24, 2012 3:37 am Post subject: |
|
|
Does the problem happen also if you don't use OpenGL compositing?
If it goes away, you could try to disable low-impact fallback in driconf. |
|
Back to top |
|
|
yellowhat Guru
Joined: 10 Sep 2008 Posts: 528
|
Posted: Mon Sep 24, 2012 3:52 pm Post subject: |
|
|
Ok the problem is conky.
If I start my session lxsession+compiz or fluxbox (no compositing) without conky from top all process included X is <1%, as soon as I start conky X bumo to 20%.
This is my conky config file>
Code: | # set to yes if you want Conky to be forked in the background
background no
alignment top_right
out_to_console no
# Own window
own_window yes
own_window_class Conky
own_window_type conky
own_window_transparent yes
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
# Xft
use_xft yes
xftfont Sans:size=10
xftalpha 0.8
text_buffer_size 2048
# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color grey90
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Cpu/Net Average
cpu_avg_samples 2
net_avg_samples 1
# Update interval in seconds
update_interval 1.0
# Run times
total_run_times 0
# Use double buffering (reduces flicker)
double_buffer yes
# Size of text area
minimum_size 300 5
maximum_width 300
# Gap
gap_x 15
gap_y 15
# Subtract file system buffers from used memory?
no_buffers yes
# Lettere Maiuscole
uppercase no
# Shades
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# Stippled borders?
stippled_borders no
# Gap between borders of screen and text
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
TEXT
${image /home/vasco/Images/Gentoo-White.png -p 50,0 -s 180x180}
${color red}Host:${alignr}${color white}${nodename}
${color red}Kernel:${alignr}${color white}${sysname} ${kernel} ${machine}
${color red}Uptime: ${color white}${uptime} ${alignr}${color red}Load: ${color white}$loadavg
${font Defused:size=40}${color white}$alignc${time %k:%M:%S}${font}
${font Defused:size=14}${color white}${alignc}${time %d %B %G}${font}
${font INFECTED:size=20}GPU ${font}${alignc}${color #42AE4A}${execi 1 cat /sys/kernel/debug/dri/0/radeon_pm_info | cut -c23-31 | awk '{if (NR==2) print}'} ${execi 1 cat /sys/kernel/debug/dri/0/radeon_pm_info | cut -c23-25 | awk '{if (NR==4) print}'} MHz ${execi 1 cat /sys/kernel/debug/dri/0/radeon_pm_info | cut -c10-15 | awk '{if (NR==5) print}'} ${execi 1 sensors | cut -c16-21 | awk '{if (NR==3) print}'}C${color}
${font INFECTED:size=20}CPU ${color lightgrey}${hr}${font}
${color red}Core 0: ${color #42AE4A}${freq 1} MHz ${color white}${execi 5 cat /sys/bus/pci/drivers/k8temp/000*/temp1_input | cut -c1,2}°C ${alignr}${color lightgrey}${cpu cpu1}% ${color #42AE4A}${cpubar cpu1 5,100}
${color red}Core 1: ${color #42AE4A}${freq 2} MHz ${color white}${execi 5 cat /sys/bus/pci/drivers/k8temp/000*/temp2_input | cut -c1,2}°C${alignr}${color lightgrey}${cpu cpu2}% ${color #42AE4A}${cpubar cpu2 5,100}
${color #42AE4A}${cpugraph cpu1 25,140 000000 ff6600} ${color #42AE4A} $alignr${color #42AE4A}${cpugraph cpu2 25,140 000000 ff6600}
${color #42AE4A}Processes: ${color lightgrey}${processes}${alignc}${color #42AE4A}Run: ${color lightgrey}${running_processes}
${color white}${font Defused::bold:size=10}CPU Usage${font} ${goto 130}PID ${goto 190}CPU ${goto 250}MEM
${color lightgrey} ${top name 1} ${goto 125}${top pid 1}${goto 180}${top cpu 1}%${goto 240}${top mem 1}%
${color #42AE4A} ${top name 2} ${goto 125}${top pid 2}${goto 180}${top cpu 2}%${goto 240}${top mem 2}%
${color #42AE4A} ${top name 3} ${goto 125}${top pid 3}${goto 180}${top cpu 3}%${goto 240}${top mem 3}%
${color white}${font INFECTED:size=20}RAM ${color lightgrey}${font}${color lightgrey} $mem/$memmax ($memperc%) ${alignr}${color #42AE4A}${membar 5,90}
${color lightgrey} ${top_mem name 1} ${goto 125}${top_mem pid 1}${goto 180}${top_mem cpu 1}%${goto 240}${top_mem mem 1}%
${color #42AE4A} ${top_mem name 2} ${goto 125}${top_mem pid 2}${goto 180}${top_mem cpu 2}%${goto 240}${top_mem mem 2}%
${color #42AE4A} ${top_mem name 3} ${goto 125}${top_mem pid 3}${goto 180}${top_mem cpu 3}%${goto 240}${top_mem mem 3}%
${color white}${font INFECTED:size=20}Hard Disk ${color lightgrey}${hr}${font}
${if_existing /dev/sdb1}${color red} sda ${color white}${diskio /dev/sda} ${alignr}${color red}sdb ${color white}${diskio /dev/sdb}${else} ${color red} sda ${color white}${diskio_read /dev/sda}${alignr}${color white}${diskio_write /dev/sda}${endif}
${if_existing /dev/sdb1}${color #42AE4A}${diskiograph /dev/sda 25,140 000000 ff6600} ${alignr}${color #42AE4A}${diskiograph /dev/sdb 25,140 000000 ff6600}${else}${color #42AE4A}${diskiograph_read /dev/sda 25,140 000000 ff6600}${alignr}${color #42AE4A}${diskiograph_write /dev/sda 25,140 000000 ff6600}${endif}
${color red} Root ${alignr}${color lightgrey}${fs_used /}/${fs_size /} ${color #42AE4A}${fs_bar 5,100 /}
${if_existing /dev/sdb1}${color red} Backup ${alignr}${color lightgrey}${fs_used /media/Backup}/${fs_size /media/Backup} ${color #42AE4A}${fs_bar 5,100 /media/Backup}$else ${voffset -15}${endif}
${color red} Test ${alignr}${color lightgrey}${fs_used /media/Test}/${fs_size /media/Test} ${color #42AE4A}${fs_bar 5,100 /media/Test}
${color red} Distfiles ${alignr}${color lightgrey}${fs_used /usr/portage/dist}/${fs_size /usr/portage/dist} ${color #42AE4A}${fs_bar 5,100 /usr/portage/dist}
${color red} Tree ${alignr}${color lightgrey}${fs_used /usr/portage/tree}/${fs_size /usr/portage/tree} ${color #42AE4A}${fs_bar 5,100 /usr/portage/tree}
${color red} /tmp ${alignr}${color lightgrey}${fs_used /tmp}/${fs_size /tmp} ${color #42AE4A}${fs_bar 5,100 /tmp}
${color white}${font Defused::bold:size=10}Temperature${font}
${color #42AE4A}${execi 300 sudo /usr/sbin/hddtemp -q /dev/sda | cut -c1-39}
${if_existing /dev/sdb1}${color #42AE4A}${execi 300 sudo /usr/sbin/hddtemp -q /dev/sdb | cut -c1-39}$else ${voffset -15}${endif}
${color white}${font INFECTED:size=20}Network ${color lightgrey}${hr}${font}
${color green}Down${font}${color lightgrey} ${downspeed eth0} ${alignr}${color lightgrey}${upspeed eth0} ${color red}Up
${color #42AE4A}${downspeedgraph eth0 25,140 000000 00ff00} $alignr${color #42AE4A}${upspeedgraph eth0 25,140 000000 ff0000}
${color green}${totaldown eth0} ${alignr}${color red}${totalup eth0}
${color red}Local IP: ${alignr}${color lightgrey}${addr eth0}
${color red}WAN IP: ${alignr}${color lightgrey}${execi 600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'} |
|
|
Back to top |
|
|
yellowhat Guru
Joined: 10 Sep 2008 Posts: 528
|
Posted: Wed Sep 26, 2012 8:22 pm Post subject: |
|
|
Any ideas? |
|
Back to top |
|
|
yellowhat Guru
Joined: 10 Sep 2008 Posts: 528
|
Posted: Thu Oct 18, 2012 4:21 pm Post subject: |
|
|
I have installed ati open driver on my laptop and X load my cpu of 20% at idle.
As soon as I kill conky X cpu load go to 0.5%
So I think that the problem is ati open driver.
Any ideas? |
|
Back to top |
|
|
Mr. Ulmo n00b
Joined: 06 Aug 2007 Posts: 9
|
Posted: Sat Oct 20, 2012 7:41 am Post subject: Execi run every second |
|
|
Hi.
I Think it's because execi is run every second, more than once in your conky config, try to change it to 2 or 5 seconds |
|
Back to top |
|
|
yellowhat Guru
Joined: 10 Sep 2008 Posts: 528
|
Posted: Sat Oct 20, 2012 7:45 am Post subject: |
|
|
Thanks for reply.
I changed all execi to 5 seconds, except the last 3 to 300-600, but same result. |
|
Back to top |
|
|
Mr. Ulmo n00b
Joined: 06 Aug 2007 Posts: 9
|
Posted: Sun Oct 21, 2012 4:35 am Post subject: |
|
|
Try to disable each Line indiviualy, and try to disable the 3 Lines with radeon.
I'm out of ideas if this doesnt help.
Regards
/MrUlmo |
|
Back to top |
|
|
yellowhat Guru
Joined: 10 Sep 2008 Posts: 528
|
Posted: Sun Oct 21, 2012 7:44 am Post subject: |
|
|
Disabling all execi line, same result high load of X when I restart conky. |
|
Back to top |
|
|
kbzium Tux's lil' helper
Joined: 31 Jul 2012 Posts: 146
|
Posted: Sun Oct 21, 2012 9:22 am Post subject: |
|
|
Hi,
did you change window theme or/and taskbar size? It may seem weird at first, but give it a try. My i7 have behaved very laggy until
I switched to another theme. Also try to switch to binary gpu drivers (fglrx for radeon, nvidia for nvidia (not nv nor noveau!) |
|
Back to top |
|
|
yellowhat Guru
Joined: 10 Sep 2008 Posts: 528
|
Posted: Sun Oct 21, 2012 9:35 am Post subject: |
|
|
On my laptop I had fglrx driver = no problem, as soon as I installed ati-drivers X cpu load to 20%.
Same problem with fluxbox and compiz standalone. |
|
Back to top |
|
|
kbzium Tux's lil' helper
Joined: 31 Jul 2012 Posts: 146
|
Posted: Sun Oct 21, 2012 10:58 am Post subject: |
|
|
I thought fglrx = ati-drivers. You cannot use fglrx option in make.conf without installing binary driver. If you want to use these binary drivers, disable everything connected with ati graphic cards in kernel, put fglrx in make.conf and re-emerge ati-drivers and everything else. But i don't know if I understood what you mean.
Correct me if I'm wrong. I'm quite new to gentoo |
|
Back to top |
|
|
yellowhat Guru
Joined: 10 Sep 2008 Posts: 528
|
Posted: Sun Oct 21, 2012 11:10 am Post subject: |
|
|
Let me clarify: I have on my laptop a conky config file similar to my desktop machine.
Until 4 days ago I was using ati-drivers, they worked quite good, and I have had not problem on cpu load on idle with conky running.
Then I switched to open ati drivers because of some libreoffice problem, but I get high cpu load by X when conky is running, if I kill conky cpu load go to 0%.
On my desktop I have always run open ati drivers and when I run conky I have always this high cpu load.
So this bring me to think that there is wrong in open drivers. |
|
Back to top |
|
|
kbzium Tux's lil' helper
Joined: 31 Jul 2012 Posts: 146
|
Posted: Sun Oct 21, 2012 9:15 pm Post subject: |
|
|
What about eselect opengl list? Is it switched to new drivers? |
|
Back to top |
|
|
yellowhat Guru
Joined: 10 Sep 2008 Posts: 528
|
Posted: Sun Oct 21, 2012 9:21 pm Post subject: |
|
|
Yes.
Code: | eselect opengl list
Available OpenGL implementations:
[1] xorg-x11 *
|
|
|
Back to top |
|
|
|