Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I just started a new job and one of my tasks is to move our hosting to a new cheaper server, i'm trying to spec out the new server but I'm a little unsure on the amount of memory I will actually need.

Our current server has 4 gigs of RAM and when I use the top command to check out what's running it shows that 3 of the 4 gig is being used, but the system processes only show tasks using very small amounts of memory, the highest used is at 0.7.

first of all, is using 3 out of 4 gigs of RAM usual for a server that hosts less than 20 sites (most of which are fairly small scale) if not where has all my memory gone?

Some Server Info: OS: CentOS 5.5 RAM: 4gig CPU: Quad Core Intel Xeon (2GHz per core)

share|improve this question
up vote 2 down vote accepted

Ah, it's a classic question. See for an answer.

share|improve this answer
thanks, I just did some googleing and found out what was going, cheers guys – iamthewit Aug 18 '10 at 10:04
accepted duplicate, jealousy == downvote – James L Aug 18 '10 at 10:07

Read which will explain true memory usage to you.

share|improve this answer

It's gone into cache and buffers. Use free, and check the second line.

share|improve this answer
total used free shared buffers cached Mem: 4194480 3290524 903956 0 205332 2656604 -/+ buffers/cache: 428588 3765892 Swap: 6258680 8 6258672 thats what I get out. so I do actually have over 3 gig free then? which should mean I can go for a lower spec with the new webserver? – iamthewit Aug 18 '10 at 9:54
Your system uses approx. 420M of your memory. The rest are caches and buffers which will be freed if an application needs more memory. Just answer yourself a question: Is unused RAM really useful? – joschi Aug 18 '10 at 10:00
yeah, it makes sense when you say it like that, thanks – iamthewit Aug 18 '10 at 10:05

Your Answer


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.