You are not logged in.

#1 2012-07-09 21:42:03

darthpenguin
Member
Registered: 2011-09-16
Posts: 113

Conky is giving wrong stats.

Hi all,

So I thought this was odd, but i am a bit of a noob so what do i know? smile

Conky is giving me wrong information. For example.

# free -h

shows that of 2.9G RAM I am using 2.6G with only 367M free. Yet, Conky insists I am only using 10%-15% of my available RAM. You don't need to be good at math to know something is fishy here.

Also, NetworkManager will show a 90%-100% wireless signal when my laptop is beside my AP. But Conky doesn't want to read out more that 70% signal strength.

So, what the duck?

Thank you for any support.

Offline

#2 2012-07-09 21:49:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: Conky is giving wrong stats.

What is the actual output of free -h  ?  I have a hunch it is a matter of interpretation.

Last edited by ewaller (2012-07-09 21:50:01)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2012-07-10 04:14:41

darthpenguin
Member
Registered: 2011-09-16
Posts: 113

Re: Conky is giving wrong stats.

Here is output of free -h

            total       used       free     shared    buffers     cached
Mem:          2.9G       2.7G       280M         0B       693M       1.7G
-/+ buffers/cache:       313M       2.6G
Swap:         258M       724K       258M

At the time of running this command Conky shows RAM usage at 16%

Last edited by darthpenguin (2012-07-10 04:16:13)

Offline

#4 2012-07-10 05:02:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: Conky is giving wrong stats.

I cannot get to your 16%.

The used space is 2.7G - 1.7G = 1G.  That should yield about 33%.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2012-07-10 05:32:47

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,682

Re: Conky is giving wrong stats.

Excluding buffers/cache, you are using 313M of 2.9G total, which is about 11%

Offline

#6 2012-07-10 05:37:40

venam
Member
From: Lebanon
Registered: 2012-05-23
Posts: 15
Website

Re: Conky is giving wrong stats.

Hello darthpenguin,
If the problem comes from conky commands, try to code the command yourself,
and if you have some issues coding it send me an email and I'll be glad to help you.
Wish you solve your problem sooner or later.


"For even better randomness, let your cat walk on the keyboard." -- From the "Advanced Linux Programming" book

Offline

#7 2012-07-10 08:34:49

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: Conky is giving wrong stats.

Look in htop or top for used memory.

The behavior of free is a bit different. It sums up all the memory that are currently being used and those to be used in near future by paged programs as assumed by the kernel. This sum is listed as 'used' memory.
In essence, AFAIK it is like the committed, reserved and free memory as described by the windows XP kernel.

Last edited by debdj (2012-07-10 08:38:45)

Offline

#8 2012-07-10 23:27:19

darthpenguin
Member
Registered: 2011-09-16
Posts: 113

Re: Conky is giving wrong stats.

Thanks skunktrader and debdj. I was just reading the "free" command wrong. I feel kind of dumb now but like I said, I am still a Linux noob. htop is much better than just top.

I still don't know why conky reads my wireless signal strength at only 70%

Thanks again.

Offline

Board footer

Powered by FluxBB