SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I'm not sure what the situation is with current AMD CPUs but with my older one there doesn't seem to be a way to access the temperature directly from conky, so I use the following to get CPU and motherboard temperatures.
I want to create a conky with lua rings.I look deeply in the net , in order to figure out how could i draw rings with conky but with no luck.
I have installed conky and lua packages. I run conky configuration with rings but no the rings doesn't show at all.
I found a package that said lua rings, i installed from source .....but again fail to draw the rings in my conky .
Last night I was compiling some slackbuilds and noticed something. Conky showed my CPU usage at 15~20% yet the top CPU tasks only added up to 2~3%
What would cause them to be so different?
Here's my conky script...
Code:
alignment top_right
double_buffer yes
gap_x 25
gap_y 100
update_interval 1.5
background yes
own_window yes
own_window_transparent yes
#own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 250 5
maximum_width 225 5
use_xft yes
xftalpha 0.5
xftfont micro.pfc L:size=8
temperature_unit fahrenheit
TEXT
${font size=7}${color #ff0000}Info $hr${color }${font }
User: ${alignr}$alignc${exec whoami} @ $nodename
Kernel: ${alignr}$kernel ($machine)
Uptime: ${alignr}$uptime
Time: ${alignr}${time %H:%M:%S}
Date: ${alignr}${time %d.%m.%y}
Filesystem: $alignr${fs_type}
${font size=7}${color #ff0000}CPU Usage $hr${color }${font }
Average% ${alignr}${cpu cpu}%
${cpugraph cpu1 12, 200}
Temprature${alignr}${hwmon temp 1}°F
${font size=7}${color #ff0000}CPU Tasks $hr${color }${font }
${color #F50AD9}${top name 1}${alignr}${top cpu 1}%${color }
${top name 2}${alignr}${top cpu 2}%
${top name 3}${alignr}${top cpu 3}%
${top name 4}${alignr}${top cpu 4}%
${top name 5}${alignr}${top cpu 5}%
${font size=7}${color #ff0000}Ram Usage $hr${color }${font }
RAM ${alignr}$mem/$memmax
${membar 8, 200}
${font size=7}${color #ff0000}RAM Tasks $hr${color }${font }
${color #F50AD9}${top_mem name 1}${alignr}${top_mem mem 1}%${color }
${top_mem name 2}${alignr}${top_mem mem 2}%
${top_mem name 3}${alignr}${top_mem mem 3}%
${top_mem name 4}${alignr}${top_mem mem 4}%
${top_mem name 5}${alignr}${top_mem mem 5}%
${font size=7}${color #ff0000}Network $hr${color }${font }
IP (Lan): $alignr${addr eth0}
IP (Public): $alignr${execi 600 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
Total Down $alignr${totaldown eth0}
Total Up $alignr${totalup eth0}
Download ${alignr}${downspeed eth0}
${downspeedgraph eth0 12, 210}
Upload ${alignr}${upspeed eth0}
${upspeedgraph eth0 12, 210}
${font size=7}${color #ff0000}Filesystem $hr${color }${font }
/home ${alignr}${fs_free /home}
${fs_bar 8, 200 /}
/archives ${alignr}${fs_free /archives}
${fs_bar 8, 200 /}
/extras ${alignr}${fs_free /extras}
${fs_bar 8, 200 /}
ceh383, it seems You have a bit too much awesomeness and it eats up some of the CPU cycles
:^)
Just kidding, it's probably the way both conky and top calculate the CPU load, You might even compare it to gkrellm and wmcpu or some further CPU gauge for X...
in my system conky displays 11-15% of CPU usage while the command:
top -b -n 40 | grep '^Cpu' | sort -n
displays 4.1-11.8% of CPU usage (the median usage is 9.5%).
So top reports significantly lower CPU usage than conky. I don't know the reason for such a difference.
I read somewhere that conky doesn't show processes that run as root under the top CPU processes. I don't know if that is true, but if it is, how would one get those to show up?
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Original Poster
Rep:
Quote:
Originally Posted by ceh383
I read somewhere that conky doesn't show processes that run as root under the top CPU processes. I don't know if that is true, but if it is, how would one get those to show up?
It doesn't seem true. I run as root the command:
ls -R /
and conky using the following configuration:
Code:
${top cpu 1} ${top name 1}
${top cpu 2} ${top name 2}
${top cpu 3} ${top name 3}
${top cpu 4} ${top name 4}
${top cpu 5} ${top name 5}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.