Very specific conky question...[Closed]
Very specific conky question...[Closed]
Because of the prototypes (Desktops I'm building) I want my Conky "RAM used " calculation/formula to match the data provided by htop.
Does anyone have that figured out? Mother google does not readily provide me with a pointer....
Does anyone have that figured out? Mother google does not readily provide me with a pointer....
Last edited by manyroads on Thu Jun 06, 2019 7:58 am, edited 1 time in total.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
- Eadwine Rose
- Administrator
- Posts: 11960
- Joined: Wed Jul 12, 2006 2:10 am
Re: Very specific conky question...
Code: Select all
${color Tan1}Ram in use ${color}${mem} / $memmax
That is my ramline.
That sounds wrong..
edit: no_buffers are on false here
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Re: Very specific conky question...
top result when I websearched "conky ram vs htop":
https://github.com/brndnmtthws/conky/issues/130
discusses the effect of toggling the "no_buffers=" configuration parameter
https://github.com/brndnmtthws/conky/issues/130
discusses the effect of toggling the "no_buffers=" configuration parameter
Re: Very specific conky question...
Just tried opening a few different apps and my conky looks like it's the same as the output from htop.
Code: Select all
${font Terminus:size=12}${color #99CC99}Memory ${hr 2} ${alignr}${font}$color
${offset 20}$mem / $memmax $alignr $memperc%
${offset 20}$membar
${offset 20}${top_mem name 1}$alignr${top_mem mem 1}%
${offset 20}${top_mem name 2}$alignr${top_mem mem 2}%
${offset 20}${top_mem name 3}$alignr${top_mem mem 3}%
${offset 20}${top_mem name 4}$alignr${top_mem mem 4}%
${font Terminus:size=12}${color #99CC99}Swap ${hr 2} ${alignr}${font}$color
${offset 20}$swap / $swapmax $alignr $swapperc%
${offset 20}$swapbar
Re: Very specific conky question...
I have the
and it does not match htop. It is off by some 30%.
I did try @skidoo's recommended solution:
But I can't make it do anything other than echo the command stream.
btw. I did come across this in my search which looks pretty interesting:
https://github.com/brndnmtthws/conky/wiki/Configs
Code: Select all
$mem / $memmax
I did try @skidoo's recommended solution:
Code: Select all
[[${mem} / ${memwithbuffers} / ${memmax} :: SWAP ${swap}/${swapmax}]
btw. I did come across this in my search which looks pretty interesting:
https://github.com/brndnmtthws/conky/wiki/Configs
Last edited by manyroads on Wed Jun 05, 2019 2:04 pm, edited 1 time in total.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
- Eadwine Rose
- Administrator
- Posts: 11960
- Joined: Wed Jul 12, 2006 2:10 am
Re: Very specific conky question...
I see yes, the difference.
Placing the memwithbuffers bit in mem's place gives me the same result as the sole mem does, so that doesn't seem to help.
Placing the memwithbuffers bit in mem's place gives me the same result as the sole mem does, so that doesn't seem to help.
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Re: Very specific conky question...
Here's a screenshot of what I see...
[attachment=0]screenshot.jpg[/attachment
htop shows 1.18GB RAM... conky 1.48GB
[attachment=0]screenshot.jpg[/attachment
htop shows 1.18GB RAM... conky 1.48GB
You do not have the required permissions to view the files attached to this post.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
- Eadwine Rose
- Administrator
- Posts: 11960
- Joined: Wed Jul 12, 2006 2:10 am
Re: Very specific conky question...
I've googled a bit, it seems to be a tough nut to crack.. htop shows the mem value minus other values, apparently.
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Re: Very specific conky question...
I agree... I'm not certain which value is viewed as being correct. Is it htop or Conky? antiX folks seem to like htop. I think that's fine, but there must be a forumal we can devise to make conky's results match htop (or vice versa).Eadwine Rose wrote: ↑Wed Jun 05, 2019 2:17 pm I've googled a bit, it seems to be a tough nut to crack.. htop shows the mem value minus other values, apparently.
btw. how many angels can stand on the head of a pin???? :lipsrsealed:
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
Re: Very specific conky question...
Have now checked that conky and htop match on both my desktop & laptop so maybe you could swap out your .conkyrc with the one below just to see if its the same for you.
This conky originated at https://pastebin.com/S88Yj0b8 which I then modified (with my very limited conky knowledge) to include the time & date,two cpu core and separate /home.
Code: Select all
conky.config = {
alignment = 'top_right',
maximum_width = 260,
border_width = 0,
font = 'Terminus:size=10',
gap_x = 20,
gap_y = 10,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'override',
own_window_transparent = true,
double_buffer = yes,
background = true,
use_xft = true,
xftalpha = 0,
update_interval = 1.0,
total_run_times = 0,
double_buffer = true,
draw_shades = true,
draw_outline = true,
draw_borders = false,
draw_graph_borders = true,
no_buffers = true,
cpu_avg_samples = 2,
override_utf8_locale = true,
use_spacer = 'right'
}
conky.text = [[
${font Terminus:size=14}${color #99CC99}$nodename ${hr 2} ${alignr}${font}$color
${alignc}${font Terminus:size=28}${color #ffffff}${time %H:%M}${font}
${alignc}${time %A %d %B %Y}
${offset 20}Kernel:$alignr${kernel}
${offset 20}Uptime:$alignr$uptime
${font Terminus:size=12}${color #99CC99}CPU ${hr 2} ${alignr}${font}$color
${offset 20}Core 1 (${cpu cpu1}%) $alignr Core 2 (${cpu cpu2}%)
${offset 20}${cpugraph cpu1 25,100}$alignr${cpugraph cpu2 25,100}
${offset 20}${top name 1}$alignr${top cpu 1}%
${offset 20}${top name 2}$alignr${top cpu 2}%
${offset 20}${top name 3}$alignr${top cpu 3}%
${offset 20}${top name 4}$alignr${top cpu 4}%
${font Terminus:size=12}${color #99CC99}Memory ${hr 2} ${alignr}${font}$color
${offset 20}$mem / $memmax $alignr $memperc%
${offset 20}$membar
${offset 20}${top_mem name 1}$alignr${top_mem mem 1}%
${offset 20}${top_mem name 2}$alignr${top_mem mem 2}%
${offset 20}${top_mem name 3}$alignr${top_mem mem 3}%
${offset 20}${top_mem name 4}$alignr${top_mem mem 4}%
${font Terminus:size=12}${color #99CC99}Swap ${hr 2} ${alignr}${font}$color
${offset 20}$swap / $swapmax $alignr $swapperc%
${offset 20}$swapbar
${font Terminus:size=12}${color #99CC99}Storage ${hr 2} ${alignr}${font}$color
${offset 20}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${offset 20}${fs_bar /}
${offset 20}/home $alignc ${fs_used /home} /home ${fs_size /home} $alignr ${fs_used_perc /home}%
${offset 20}${fs_bar /home}
${color #99CC99}${if_up wlan0}wlan0 (${addr wlan0}) ${hr 2}$color
${offset 20}${color white}$color ${downspeed wlan0}${alignr}${color 333333}$color ${upspeed wlan0}
${offset 20}${downspeedgraph wlan0 25,100} ${alignr}${upspeedgraph wlan0 25,100}$color${endif}
${color #99CC99}${if_up eth0}eth0 (${addr eth0}) ${hr 2}$color
${offset 20}${color white}$color ${downspeed eth0}${alignr}${color 333333}$color ${upspeed eth0}
${offset 20}${downspeedgraph eth0 25,100} ${alignr}${upspeedgraph eth0 25,100}$color${endif}
]]