Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Is my ram usage too high
PostPosted: Tue Apr 07, 2009 12:55 pm 
Offline
Junior Member

Joined: Thu Dec 18, 2008 12:33 pm
Posts: 27
I am a bit concern about my ram usage, my server usage is for web only, I have lamp, ispconfig, adobe communication server running

Am I in trouble if I receive peaks user in the 2000k in a day?



total used free shared buffers cached
Mem: 360 332 27 0 18 109
-/+ buffers/cache: 205 154
Swap: 255 53 202


Top
   
 Post subject:
PostPosted: Tue Apr 07, 2009 1:25 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
154MB free with 53MB into swap (or ~260MB "allocated") looks pretty good to me. Are you noticing any weird jumps in memory usage in particular situations or anything like that?


Top
   
 Post subject:
PostPosted: Tue Apr 07, 2009 1:32 pm 
Offline
Junior Member

Joined: Thu Dec 18, 2008 12:33 pm
Posts: 27
not really, I'm just a noob in fact, I started on linux some months ago and finally got a server up and running (after numerous try)

I was afraid of the 27. on the first line.
Should I generally look at the second line instead?


Top
   
 Post subject:
PostPosted: Tue Apr 07, 2009 1:50 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Take a look with vmstat:
Code:
peter@fremont ~ $ vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  0    140   8648  60452  73076    0    0     1     1    6   14  0  0 100  0

and pay attention to si and so (swapped in and swapped out). Depending on your usage, the kernel will swap out VM pages that have not been accessed recently in order to free up RAM for buffers. A little swapping in those circumstances is OK, but if those numbers start to climb - you're swapping active pages and your performance will suffer.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Tue Apr 07, 2009 2:49 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Karnius wrote:
I was afraid of the 27. on the first line.
Should I generally look at the second line instead?


Yeah... you (have paid|are paying) good money for that memory, so the kernel will tend to cache data/objects/programs in memory to keep things fast. This can involve swapping stuff to disk if the kernel thinks that's the most efficient way to go. (It would be a shame to keep getty in memory just because there's still free RAM, you know? :-) -rt


Top
   
 Post subject:
PostPosted: Tue Apr 07, 2009 4:00 pm 
Offline
Junior Member

Joined: Thu Dec 18, 2008 12:33 pm
Posts: 27
what a nice kernel it is to do that for me.

Si and so are not moving from 0 so all is good,

Thank you for the explications


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


Who is online

Users browsing this forum: No registered users and 4 guests


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