you rock, Thanks!
you rock, Thanks!
Windows assumes the user is an idiot.
Linux demands proof.
My first conky
second attemt to upload
Love the Dr. Who theme. The 8 CPU's would be useful for me today. Any chance of getting the code and link to the desktop wallpaper?
Mr. Warlock you have very interesting graphs of Root, etc. Never seen anything like that so far. Is it regular run-of-the-mill conky code or something new / special?
I guess the yellow over green progress chart is the percentage of used disk space, but what are the spiked multi-colored fluctuating line graphs doing beside the root?
Thank you Mr. Warlock.
Coincidentally I read references to Deviant Art last night and I'll gladly dig a little deeper into your bibliography. A quick peek shows the bar graph images are trez cool.
Last edited by WinEunuchs2Unix; November 15th, 2014 at 03:02 AM. Reason: de-formalize initial post
This conky display is for 1920x1080 screen, quad-core processor with hyper-threading for 8 CPUs, HDD disk caching to SSD using EnhanceIO, USB external attached HDD and USB Thumb-Drive with a Home partition.
Enhance IO statistics were interesting because grepping "reads" would return multiple counts because the phrase appears on line 1 "reads" and other lines as "ssd_reads", "hdd_reads", etc. So rather than the "cat" command the "head" command with "--lines=6" parameter is used.
An interesting stress test is the update interval of .05 (200 times per second) would make an Intel Centrino Dual Core T5750 @ 2GHz slow down with Conky and Chrome Pepper Flash running. But changing it to .001 (1000 times per second) would not make an Intel i-7 3630QM slow down and CPU utilization would hum around 20%. Changing it to .0001 (ten thousand times per second) seemed to make no difference than 1000 times per second.
Moving forward it would be nice to see warning messages from dmesg or /var/log/syslog appear in the conky display. Perhaps pull out the memory / storage size section which is relatively static anyway. warlock9000's links to cool bar graphs will take a weekend or two of experimentation.
FTR EnhanceIO like Window's Intel RST (Rapid Storage Technology) disk caching is phenomenal at taking applications like iTunes, Nautilus, Chrome and Firefox which takes 20 seconds to load and reducing them to 2 or 3 seconds. Weeks of research between EnhanceIO, bcache, dm-cache, flashcache, lvm2 cache (WIP) and btfrs cache (ok not much reading there) were done and EnhanceIO seems the best if you are not hosting facebook.com with a billion monthly users. You do need to download the code and compile it. For kernel versions over 3.17 (like this one) you need to change a few dozen lines of code before recompiling.
You pretty much have to ignore 99% of what you read on-line about Intel Fake-Raid and Linux dmraid from 2011 to 2012 because the Kernel was modified in 2013 to support Intel Motherboard's built in RAID. Indeed implementing all the suggestions will set you back weeks. You do have to decelerate Intel caching in windows before installing Linux. Running update-grub or update-initramfs will have no effect until Intel drives are decelerated you can decelerate later and then all your changes will appear - haven't figured that one out yet.
Code:# November 16, 2014 copied from 081114 version written for Core 2 Duo @ 2 Ghz # and modified for i-7 Quad Core 3630 QM @ 3.4 Ghz with 8 cores @1920x1080 again. # Adapt for grey-scale snow-leopard wallpaper. # Adapt for USB thumb-drive with Sparky Linux. # Remove networking secion. # Add EnhanceIO secion. # To-Do research temps - is it always 49c on resume and always 28c and reboot? # August 12, 2014 from ubuntuforum / cafe / satshow2 # http://ubuntuforums.org/showthread.php?t=281865&page=2287&p=13096925#post13096925 override_utf8_locale yes use_xft yes xftfont ubuntu:size=10.5 xftalpha 0.5 uppercase no text_buffer_size 2048 update_interval .75 # change to .001 for 1000 times per second stress test total_run_times 0 own_window yes own_window_transparent yes own_window_argb_visual yes own_window_type normal own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 240 maximum_width 400 draw_shades yes # off-white default_color ECEAE4 # blue color1 1EB5FF # light blue color2 30DDFB # dark blue color3 0090ff # lime color4 98FF76 default_shade_color 000000 draw_outline no draw_borders no stippled_borders 0 alignment top_right # top_left for Screen 1, top_right for Screen 2 gap_x 10 gap_y 0 TEXT ${color}Today is:${color green}$alignr${time %A,}$alignr ${time %e %B %G} ${color}Distribution:${color green}$alignr ${pre_exec cat /etc/issue.net} $machine ${color}Kernel:$alignr${color green} $kernel ${color orange}${voffset 2}${hr 1} ${color2}${voffset 5}Intel® i-7 3630QM 3.4 GHz: ${color1}@ ${color green}${freq} MHz ${color}${goto 13}CPU 1 ${goto 81}${color green}${cpu cpu1}% ${goto 131}${color3}${cpubar cpu1 18} ${color}${goto 13}CPU 2 ${goto 81}${color green}${cpu cpu2}% ${goto 131}${color3}${cpubar cpu2 18} ${color}${goto 13}CPU 3 ${goto 81}${color green}${cpu cpu3}% ${goto 131}${color3}${cpubar cpu3 18} ${color}${goto 13}CPU 4 ${goto 81}${color green}${cpu cpu4}% ${goto 131}${color3}${cpubar cpu4 18} ${color}${goto 13}CPU 5 ${goto 81}${color green}${cpu cpu5}% ${goto 131}${color3}${cpubar cpu5 18} ${color}${goto 13}CPU 6 ${goto 81}${color green}${cpu cpu6}% ${goto 131}${color3}${cpubar cpu6 18} ${color}${goto 13}CPU 7 ${goto 81}${color green}${cpu cpu7}% ${goto 131}${color3}${cpubar cpu7 18} ${color}${goto 13}CPU 8 ${goto 81}${color green}${cpu cpu8}% ${goto 131}${color3}${cpubar cpu8 18} ${color1}Temp: ${color green}${hwmon 0 temp 1}°C ${goto 190}${color1}Up-time: ${color green}$alignr$uptime ${color green}$running_processes ${color1}running of ${color green}$processes ${color1}loaded processes. Load (x8) 1-5-15 minutes: ${alignr}${color green}${loadavg} ${color orange}${voffset 2}${hr 1} ${color1}${voffset 5}Process Name: ${goto 215}PID ${goto 265}CPU% ${goto 337}Mem% ${color}${goto 13}${top name 1} ${goto 210}${top pid 1} ${goto 275}${color green}${top cpu 1} ${goto 350}${top mem 1} ${color}${goto 13}${top name 2} ${goto 210}${top pid 2} ${goto 275}${color green}${top cpu 2} ${goto 350}${top mem 2} ${color}${goto 13}${top name 3} ${goto 210}${top pid 3} ${goto 275}${color green}${top cpu 3} ${goto 350}${top mem 3} ${color}${goto 13}${top name 4} ${goto 210}${top pid 4} ${goto 275}${color green}${top cpu 4} ${goto 350}${top mem 4} ${color}${goto 13}${top name 5} ${goto 210}${top pid 5} ${goto 275}${color green}${top cpu 5} ${goto 350}${top mem 5} ${color}${goto 13}${top name 6} ${goto 210}${top pid 6} ${goto 275}${color green}${top cpu 6} ${goto 350}${top mem 6} ${color}${goto 13}${top name 7} ${goto 210}${top pid 7} ${goto 275}${color green}${top cpu 7} ${goto 350}${top mem 7} ${color}${goto 13}${top name 8} ${goto 210}${top pid 8} ${goto 275}${color green}${top cpu 8} ${goto 350}${top mem 8} ${color}${goto 13}${top name 9} ${goto 210}${top pid 9} ${goto 275}${color green}${top cpu 9} ${goto 350}${top mem 9} ${color orange}${voffset 2}${hr 1} ${color}Memory:${goto 148}${color green}$mem / $memmax $alignr${color green}${memperc /}% ${color}Linux:${goto 148}${color green}${fs_used /} / ${fs_size /} $alignr${color green}${fs_used_perc /}% ${color}WIN7_Data:${goto 148}${if_mounted /media/rick/WIN7_Data}${color green} ${fs_used /media/rick/WIN7_Data} / ${fs_size /media/rick/WIN7_Data} $alignr${color green}${fs_used_perc /media/rick/WIN7_Data}%${else}${color yellow}/media/rick/WIN7_Data${endif} ${color}${if_mounted /media/rick/S3A6550D005}Ext. SATA I:${goto 148}${color green} ${fs_used /media/rick/S3A6550D005} / ${fs_size /media/rick/S3A6550D005} $alignr${color green}${fs_used_perc /media/rick/S3A6550D005}%${else}Swap:${goto 148}${color green}${swap} / ${swapmax} $alignr${color green}${swapperc}%${endif} ${color}${if_mounted /media/rick/Home}USB Home:${goto 148}${color green}${fs_used /media/rick/Home} / ${fs_size /media/rick/Home} $alignr${color green}${fs_used_perc /media/rick/Home}%${else}Swap:${goto 148}${color green}${swap} / ${swapmax} $alignr${color green}${swapperc}%${endif} ${color orange}${voffset 2}${hr 1} ${color2}${voffset 5}/proc/enhanceio/cache_root/stats: ${color white} ${goto 203}Reads ${goto 322}Writes ${color} ${goto 36}Operations ${color4} ${goto 165}${execpi .01 head --lines=6 /proc/enhanceio/cache_root/stats | grep -o 'reads [^\n]*' | cut -c30-39} ${goto 290}${execpi .01 head --lines=6 /proc/enhanceio/cache_root/stats | grep -o 'writes [^\n]*' | cut -c30-39} ${color} ${goto 43}Cache Hits ${color4} ${goto 165}${execpi .01 head --lines=6 /proc/enhanceio/cache_root/stats | grep -o 'read_hits[^\n]*' | cut -c30-39} ${goto 290}${execpi .01 head --lines=6 /proc/enhanceio/cache_root/stats | grep -o 'write_hits[^\n]*' | cut -c30-39} ${color} ${goto 2}Hit Percentage ${color4} ${goto 210}${execpi .01 head --lines=6 /proc/enhanceio/cache_root/stats | grep -o 'read_hit_pct[^\n]*' | cut -c37-39} % ${goto 335}${execpi .01 head --lines=6 /proc/enhanceio/cache_root/stats | grep -o 'write_hit_pct[^\n]*' | cut -c37-39} % ${color} ${goto 6}Kilobyte Total ${color4} ${goto 170}${execpi .01 cat /proc/enhanceio/cache_root/stats | grep -o 'kb_reads[^\n]*' | cut -c30-39} ${goto 290}${execpi .01 cat /proc/enhanceio/cache_root/stats | grep -o 'kb_writes[^\n]*' | cut -c30-39} ${color} ${goto 24}Milliseconds ${color4} ${goto 177}${execpi .01 cat /proc/enhanceio/cache_root/stats | grep -o 'rdtime_ms[^\n]*' | cut -c30-39} ${goto 290}${execpi .01 cat /proc/enhanceio/cache_root/stats | grep -o 'wrtime_ms[^\n]*' | cut -c30-39}
Last edited by WinEunuchs2Unix; November 17th, 2014 at 03:04 AM. Reason: Solved WIN7_Data so removed code comment
When displaying System Load Average in Conky, uptime and even with "cat /proc/loadavg" the values are distorted on multiple CPU systems. For example, this 8 CPU system has load averages 8 times too high.
To compensate the load average in conky the following code supporting 1, 2, 4, 8 (or whatever) CPU's is used:
Sample outputs are given for a dual monitor system with 6 windows open the most time intensive (10% cpu utilization) being flash player broadcasting a 24 hour international news channel.Code:Load Avg. 1-5-15 minutes: ${alignr}${color green}${execpi .001 (awk '{printf "%s/", $1}' /proc/loadavg; grep -c processor /proc/cpuinfo;) | bc -l | cut -c1-4} ${execpi .001 (awk '{printf "%s/", $2}' /proc/loadavg; grep -c processor /proc/cpuinfo;) | bc -l | cut -c1-4} ${execpi .001 (awk '{printf "%s/", $3}' /proc/loadavg; grep -c processor /proc/cpuinfo;) | bc -l | cut -c1-4}
Sample Output using Conky's ${loadavg}
Sample Output with above script:Code:Load Avg. 1-5-15 minutes: 1.80 1.96 1.39
The above script is defined as executing 1,000 times per second but it is overridden by Conky's global update interval time which is usually set about 1 time per second.Code:Load Avg. 1-5-15 minutes: .261 .251 .182
On a Centrino dual core .001 will cause the system to pause.Code:update_interval .75 # change to .001 for 1000 times per second stress test
On an i-7 3630QM .001 will only take it to 50% utilization on some of the 8 CPU's. Changing it to .0001 (ten thousand times per second) seems to be the same as .001 possibly because of monitor refresh limits?
Hth
Mine's pretty simple:
Here's some screenshots:Code:# conky configuration # ############################################## # Settings ############################################## background yes use_xft yes xftfont Liberation Sans:size=9 xftalpha 1 update_interval 1.0 total_run_times 0 own_window yes own_window_type dock own_window_argb_visual yes own_window_argb_value 0 own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 200 200 maximum_width 240 draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color ffffff default_shade_color 000000 default_outline_color 828282 alignment top_right gap_x 1700 gap_y 56 no_buffers yes uppercase no cpu_avg_samples 2 override_utf8_locale no ############################################## # Output ############################################## TEXT SYSTEM INFO ${hr} Host:$alignr$nodename Uptime:$alignr$uptime RAM:$alignr$mem/$memmax Swap usage:$alignr$swap/$swapmax Disk usage:$alignr${fs_used /}/${fs_size /} CPU usage:$alignr${cpu cpu0}% Temperature: $alignr${acpitemp} F PROCESSOR ${HR} CPU 1: ${cpu cpu1}% ${cpubar cpu1} CPU 2: ${cpu cpu2}% ${cpubar cpu2} CPU 3: ${cpu cpu3}% ${cpubar cpu3} CPU 4: ${cpu cpu4}% ${cpubar cpu4} MEMORY ${hr} RAM $alignc $mem / $memmax $alignr $memperc% $membar HARD DRIVE ${hr} $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}% ${fs_bar /} TOP PROCESSES ${hr} ${top_mem name 1}${alignr}${top mem 1} % ${top_mem name 2}${alignr}${top mem 2} % $font${top_mem name 3}${alignr}${top mem 3} % $font${top_mem name 4}${alignr}${top mem 4} % $font${top_mem name 5}${alignr}${top mem 5} %
Screenshot from 2014-11-23 17:41:35.jpgScreenshot from 2014-11-23 17:42:04.png
Bookmarks