You are not logged in.

#1 2020-08-16 13:37:54

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 501

(Fixed-ish) Conky 'upspeed/downspeed' error

When I upgraded my internet/intranet speeds to 1Gb, I was damned satisfied with the results. When I moved files from my desktop to my server, Conky was reporting 117-119 MB/s (good). Over the past few months, conky started reporting about 12 MB/s with spikes to about 50MB/s. I've been tearing into my network these past few months, to figure out why I suddenly lost speed. I've gone over the router, the modem, the switches and finally network cables. I can't find any reason for my network to suddenly slow down, other than all the kids in my neighborhood are home, streaming porn and netflix or a large portion of the adults are also home, telecommuting (or streaming porn and netflix). But that wouldn't account for my intranet speeds dropping too. I started to assume at some point that it may be a samba issue for my intranet.

Then I installed bashtop. OMG, that's nice (coming from htop)! I noticed that speeds reported by bashtop was sometimes more than twice as fast as speeds reported by conky. I just did an experiment with conky and bashtop side by side. I moved a 10GB file from my desktop to server and back to my desktop. Bashtop reported 117MB (solid) both ways, conky was 12.5MB/s with spikes to 51MB/s. So I went to speedtest.net and it reported an avg down/up of 912/27 Mb/s, bashtop reported 112/4 MB/s and conky reported 42-57/2.2 MB/s (please note the Mb/s and MB/s). Speedtest and bashtop show somewhat comparable speeds, while conky is too slow.

I did try changing conky's 'downspeed' to 'downspeedf', but all that did was report speeds in the hundreds of thousand KB/s. It seemed to have gone the other way, so I changed it back to 'downspeed'. I changed net_avg_samples from 1 to 2 to 3, and back to 2, which is where it's at now.

Here is my conky desktop file (KDE autostart):

[Desktop Entry]
Categories=System;Monitor;
Comment[en_US]=
Comment=
Exec=conky -p5 -c "/home/pat/bin/pat1"
GenericName[en_US]=
GenericName=
Icon=conky-logomark-violet
MimeType=
Name[en_US]=conky
Name=conky
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

and my conky config (pat1):

conky.config = {
-- My Conky configuration
-- Check http://conky.sf.net for an up-to-date-list.

--fonts
	use_xft = true,
	font = 'Ubuntu:size=12',
	xftalpha = 1.0,
	uppercase = false,
	update_interval = 2.0,
	total_run_times = 0,
	double_buffer = true,
	background = true,
	own_window_class = 'Conky',
	own_window = true,
	own_window_type = 'normal',--#try also 'normal', 'override', 'panel', 'desktop'
	own_window_transparent = false,
	own_window_colour = 'black',
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 75,--#transparency maximum:255(no transparency), minimum:0(full transparency)
	alignment = 'middle_right',
        xinerama_head = 3,
        minimum_width = 200,
        maximum_width = 1600,
	gap_x = 10,
	gap_y = 05,
--border info
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = true,
	stippled_borders = 8,
	border_width = 1,
-- Default colors and also border colors
	default_color = 'ffffff',
	default_shade_color = 'White',
	default_outline_color = 'White',
	color1 = 'aa0000',
	color2 = 'ffffff',
	color3 = '5C3566',
-- Variables
	cpu_avg_samples = 1,
	net_avg_samples = 2,
	override_utf8_locale = true,
	format_human_readable = true,
	short_units = false,
	-- Add spaces to keep things from moving about?  This only affects certain objects.
	use_spacer = 'left',
-- stuff after 'TEXT' will be formatted on screen
--###########################################################################
};

conky.text = [[
########## SYSTEM ##############
${color3}${alignc}${font ConkyColorsLogos:size=30}a${font}
${color}${font}${alignc}$nodename 
${font}${alignc}${color}${time %l:%M %p %Z %z}
${font}${alignc}${color}${time %A, %d %b %Y}
${color2}Kernel: ${alignr}${color}$sysname $kernel
${color2}Systemd:${alignr}${color}${exec systemctl --version|grep 'systemd' |awk '{print $3}' | cut -c2-13}
${color2}Plasma:${alignr}${color}${exec plasmashell --version|grep 'plasmashell' |awk '{print $2}'}
${color2}Total Uptime:${alignr} ${color}${uptime_short}
${color2}Updates Avail:${alignr} ${color}${execpi 600 checkupdates | wc -l}


########## CPU ###############
${color3}${alignc}${font ConkyColorsLogos:size=30}r${font}
${color2}${font}${alignc}${exec cat /proc/cpuinfo|grep -m 1 'model name'|awk '{print $4" "$5" "$6" "$7" "$8}'}
${color2}Freq: ${alignr}${color}${freq_g (0)} GHz
${color2}Temp: ${alignr}${execi 2 sensors | grep Tdie: | cut -c16-21}C
${color2}Fan: ${alignr}${execi 1 sensors | grep fan2: | cut -c10-31}
${color2}Load: ${alignr}${color} $cpu% ${color3}${cpubar 10,100}


######### GPU ###############
${color3}${alignc}${font ConkyColorsLogos:size=30}n${font}
${color2}${font}${alignc}${exec lspci|grep 08.00.0 |awk '{print $8,$9,$10,$11}'|cut -f2 -d"["|cut -f1 -d"]"}
${color2}Freq: ${alignr}${color}${nvidia gpufreq} Mhz
${color2}Memory: ${alignr}${color}${nvidia memfreq} Mhz
${color2}Temp: ${alignr}${color}${nvidia temp} °C
${color2}Fan Speed: ${alignr}${color}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeedRPM -t} RPM

######### MEMORY ###############
${color3}${alignc}${font ConkyColors:size=30}g${font}
${color2}${font}SWAP: ${alignc}${color}$swapperc% ($swap/$swapmax)${alignr}${color3}${swapbar 10,100}
${color2}${font}RAM: ${alignc}${color}$memperc% ($mem/$memmax) ${alignr}${color3}${membar 10,100}


######### DRIVES ###############
${color3}${alignc}${font ConkyColors:size=30}i${font}
${color2}                Tot/Free
${color2}${font}Root:${alignc}${color}${fs_size /}/${fs_free /}${alignr}${color3}${diskiograph /dev/disk/by-uuid/dde2e569-f3bc-48f9-8d8e-e1606f9bc25f 25,100}
${color2}Home:${alignc}${color}${fs_size /home/pat}/${fs_free /home/pat}${alignr}${color3}${diskiograph /dev/disk/by-uuid/de294246-1f3b-4c0a-b217-0646d8d92a88 25,100}
${color2}Storage:${alignc}${color}${fs_size /home/pat/Storage}/${fs_free /home/pat/Storage}${alignr}${color3}${diskiograph /dev/disk/by-uuid/24CCF7D33223A838 25,100}


######### NETWORK ###############
${color3}${alignc}${font ConkyColors:size=30}j${font}
${color2}${font}Public IP: ${color}${alignr}${exec wget http://ipinfo.io/ip -qO -}
${color2}${font}Local IP: ${color}${alignr} ${addrs enp8s0}

${font}${color}Up: ${upspeed enp8s0}${alignr}${font}${color}Down: ${downspeed enp8s0}
${color3}${upspeedgraph enp8s0 25,100}${alignr}${color3}${downspeedgraph enp8s0 25,100}
${color2}${font}total up: ${totalup enp8s0}${alignr}${color}total down: ${totaldown enp8s0}
]];

Before I copy/paste everything previous to this to where ever conky's bug reporting is, I just want to figure out if it's me or actually conky that has the problem.

Last edited by Buddlespit (2020-08-18 00:53:52)

Offline

#2 2020-08-17 11:29:29

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 501

Re: (Fixed-ish) Conky 'upspeed/downspeed' error

The 'work-around' for this is to stop using "execpi". I blocked out line 64 of my conky config ( ${color2}Updates Avail:${alignr} ${color}${execpi 600 checkupdates | wc -l} ) and now my network speeds reported by conky are correct.

The 'fix' is to remove conky::run_all_callbacks(); in conky/src/conky.cc and recompile.

For information sake : https://github.com/brndnmtthws/conky/issues/863

edit: I like my creature comforts. I like being able to read a line in my conky, telling me how many updates are waiting. I went ahead and edited conky.cc, then compiled the latest version of conky (we, arch, are out of date). Now I can have my cake and eat it too. It works.

Last edited by Buddlespit (2020-08-18 00:52:52)

Offline

Board footer

Powered by FluxBB