Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 09, 2011 2:21 pm 
Offline
Newbie

Joined: Wed Mar 09, 2011 2:09 pm
Posts: 2
free -m
total used free shared buffers cached
Mem: 498 120 378 0 5 92
-/+ buffers/cache: 22 476
Swap: 255 0 255

Is this normal?


Top
   
 Post subject:
PostPosted: Wed Mar 09, 2011 2:27 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Yes, it's just how your kernel reports the figures, mine shows more


total used free shared buffers cached
Mem: 527 498 29 0 6 287
-/+ buffers/cache: 203 323
Swap: 255 101 154

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Wed Mar 09, 2011 2:41 pm 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
Linode is giving you your 512M, but your kernel keeps a bit of it reserved and doesn't report it as available. Check your kernel log for a line like this:
Code:
Feb  4 14:01:35 ??? kernel: Memory: 760348k/786432k available (5818k kernel code, 388k absent, 25696k reserved, 2951k data, 520k init)

That is from a linode 768, and the "786432k" divided by 1024 just happens to exactly equal 768M.


Top
   
 Post subject:
PostPosted: Wed Mar 09, 2011 2:58 pm 
Offline
Newbie

Joined: Wed Mar 09, 2011 2:09 pm
Posts: 2
I see now. Thank you all.
I am new to Linode and Linux:)


Top
   
 Post subject:
PostPosted: Wed Mar 09, 2011 7:59 pm 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
Code:
# dmesg | grep Memory
Memory: 503652k/524288k available (5835k kernel code, 388k absent, 20248k reserved, 2894k data, 516k init)


Code:
# dmesg | grep Free
Freeing SMP alternatives: 28k freed
Freeing unused kernel memory: 516k freed
Freeing unused kernel memory: 288k freed
Freeing unused kernel memory: 464k freed


503652k + 28k + 516k + 288k + 464k = 504948k

Code:
# free
             total       used       free     shared    buffers     cached
Mem:        504948     480784      24164          0      16428     217180
-/+ buffers/cache:     247176     257772
Swap:       524284      88644     435640


Top
   
 Post subject:
PostPosted: Sun Mar 13, 2011 10:33 am 
Offline
Junior Member

Joined: Wed Apr 28, 2010 10:33 pm
Posts: 41
The behaviour is slightly different between old-style Xen kernels (Linode "stable") and modern pv_ops kernels (Linode "latest") causing the memory usage to be reported slightly differently, but the difference is mainly just in the way it's reported.

From memory, I think it may have been something like this:

Some RAM (in this case, from the Xen instance) is needed just to load the kernel. In pv_ops kernels, inside the VM you see this as just a reduction in the number reported as system RAM whereas in a Xen kernel, inside the VM you see this as memory that exists but is used.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group