10:24 - Friday, 25 April 2014

Conky Show RAM Without Buffers Or Cache

I am wondering if there’s a way to get Conky to show the RAM that is in use minus the buffers and cache.

When I close a program, the RAM usage goes down in HTOP, but in conky it stays the same. So I’d like to see it represented correctly on Conky.

Note in this picture, HTOP shows that there’s 1300mb of RAM used, and Conky shows 2.15 because it includes cache and buffers.

Here’s the chunk of Conky code that deals with RAM

${font Arial:bold:size=10}${color White}MEMORY ${color DarkSlateGray}${hr 2} $font${color DimGray}MEM $alignc $mem / $memmax $alignr $memperc%

conky ram is more than HTOP green bar

Conky can show actual amount of RAM being used plus cached memory or just the former one. To toggle between two, You can use buffer settings:

If no_buffers yes Conky will show only actual amount of RAM being used.

If no_buffers no Conky will show actual amount of RAM + Cached memory