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.

When logging into my Ubuntu Server 12.04 LTS (VPS), I get some nice stats upon login (or $ landscape-sysinfo):

System information as of Tue Nov  6 05:41:06 EST 2012

  System load:  0.0               Processes:           90
  Usage of /:   22.3% of 8.51GB   Users logged in:     0
  Memory usage: 25%               IP address for eth0: XX.XX.XX.XX
  Swap usage:   7%

If I run: $ free -m

             total       used       free     shared    buffers     cached
Mem:           487        419         67          0          9        117
-/+ buffers/cache:        293        193
Swap:          255         19        236

I see that the memory is different. I'm running a Virtual Private Server that in which I pay for 512Mb RAM. Is that the difference I'm seeing here, that 'landscape-sysinfo' calculates based on the entire machine and 'free' calculates based on my allowed quota?

I saw a similar post here but it doesn't solve my exact issue.

Thanks for your time.

share|improve this question
    
I have the same problem on bare metal, so appears to be a bug: bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1075619 –  psusi Nov 6 '12 at 16:35

1 Answer 1

I think I figured out the issue.

/proc/meminfo reports the same memory info that landscape-sysinfo does.

Here's the thing, 'free' reports a lot of memory info. To get the data supplied by 'free' to match both landscape-sysinfo and /proc/meminfo, the calculation is:

(used - [-/+ buffers/cache]) / total

the -/+ buffers/cache value is the one right below 'used'

Now your % free should match what is reported by landscape-sysinfo

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.