WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Occupied RAM indicated in Conky is different from RAM indicated in TOP. Why?  (Read 1725 times)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Hello,
here is the comparison Conky / TOP on my pc.  http://imagebin.org/163938
The RAM indicated is different: TOP indicate much more occupied RAM than conky.
Why? How to modify the conky parameters in order to have the same indication as per TOP? (my feeling is TOP is correct.. but just a feeling..).


conky.conf =

alignment top_left
background no
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=12
gap_x 5
gap_y 20
minimum_size 5 6
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type desktop
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
${font Verdana:style=Bold:size=40}${color grey}${time %a,  } ${color }${time %e %B %G}
${color grey}${time %Z,    }${color }${time %H:%M:%S}
${color yellow}$hr
$font${color grey}$nodename - $sysname $kernel on $machine
${color yellow}$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${cpugraph 20,245 000000 ffffff}
${color grey}Load: ${color }$loadavg
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color yellow}$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color grey}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color yellow}$hr
${color grey}Networking:
Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
${downspeedgraph eth0 20,119 ff0000 0000ff} ${upspeedgraph eth0 20,119 0000ff ff0000}
${color grey}TOTAL: ${color #CCCCCC}${totaldown eth0}       TOTAL: ${color #CCCCCC}${totalup eth0}
${color yellow}$hr
${color grey}File systems hd_sd: $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11022
http://forum.tinycorelinux.net/index.php?topic=544.0

Neither number is entirely correct; Conky doesn't count buffers and cache, but part of cache is the root filesystem and can't be freed.
The only barriers that can stop you are the ones you create yourself.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
http://forum.tinycorelinux.net/index.php?topic=544.0

Neither number is entirely correct; Conky doesn't count buffers and cache, but part of cache is the root filesystem and can't be freed.
thanks. So, how to indicate buffers and cache in conky? any quick answer would be great.. else I will start google..
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed