You are not logged in.

#1 2013-05-15 18:40:42

ParanoidAndroid
Member
Registered: 2012-10-14
Posts: 114

Conky - multiple instances, eating up CPU like candy

I run a desktop composed of xmonad, dzen2, and conky. I recently modified my conky config, and whereas previously my cpu monitor showed 0% at idle, it now shows 14% at idle. I checked htop and found that the top processes for cpu% were three instances of conky. Can anyone explain why there are multiple conkys spawned, even though my xmonad.hs file only specifies one? And which line in my conky config is taking up so much processing power?

Here is my conkrc:

out_to_x no
background yes
out_to_console yes
update_interval 0.7
short_units yes

TEXT
{${time %a %b %d %Y} - ${time %H:%M:%S}}  \
| ${scroll 12 6 $moc_artist - $moc_song} |  \
[RAM: $memperc%] \
[CPU: $cpu%] \
[disk I/O: ${diskio /dev/sda}] \
[HDD: ${fs_used /}/${fs_free /} (${fs_used_perc /}%)] \
${if_existing /proc/net/route wlp3s0} [network: ${wireless_essid wlp3s0} (${wireless_link_qual_perc wlp3s0}%)] $else [network: -- ]$endif \
${if_existing /sys/class/power_supply/BAT1} [battery: ${battery_percent BAT1}%] $else [battery: -- ]$endif

my previous config was more or less the same, except that it was all on one line and it didn't have the fancy decision-making stuff thrown in. It also did not have the lovely scrolling bit for the currently playing song.

EDIT:

That lovely scrolling bit was the culprit. Removed it. Maybe I'll put it back when I get a machine with a bigger processor. I'm all about minimizing the system's use of resources, so it might not make it back into the config, even with a better processor.

Conky is still spawning multiple instances, and I can't for the life of me figure out why.

Last edited by ParanoidAndroid (2013-05-15 18:56:12)

Offline

#2 2013-05-15 19:09:02

SolarBoyMatt
Member
Registered: 2012-01-07
Posts: 263

Re: Conky - multiple instances, eating up CPU like candy

Does starting conky somewhere else, like in your .xinitrc, cause the same behavior?

Offline

#3 2013-05-15 21:36:52

ParanoidAndroid
Member
Registered: 2012-10-14
Posts: 114

Re: Conky - multiple instances, eating up CPU like candy

Yes it does. And it appears that other things, such as pulseaudio --start, dbus, and a dozen other processes are running duplicates with different pids. I'm checking with atop to see if htop is to blame, but I don't think it's the program.

Offline

Board footer

Powered by FluxBB