Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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% $membar

conky ram is more than HTOP green bar

share|improve this question
    
It will be helpful if you could include your conkyrc in the question. –  Basharat Sialvi May 14 '12 at 0:16
    
Okay, I've added it. Thanks, that's a good point. –  Frantumn May 14 '12 at 1:28
1  
Make sure that the no_buffers setting in your conkyrc is set to yes like this: "no_buffers yes" –  Basharat Sialvi May 14 '12 at 2:16
    
Thanks @BasharatSial That seemed to be the solution. If you'd like to post as an answer, I can + your response. :) –  Frantumn May 14 '12 at 13:14

1 Answer 1

up vote 4 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.