HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Little free RAM (http://www.howtoforge.com/forums/showthread.php?t=50231)

vaio 26th November 2010 16:33

Little free RAM
 
Hello ISPConfig friends,
I have finally managed to install and setup ISPConfig on Debian Lenny VPS.
At this point i would like to say thank you Till and Falko and others who contribute to manual, howto's, forum etc...

With your advices and help, i got up my ISPconfig running (and working!).

My question is about free RAM.
Code:

# free -m
            total      used      free    shared    buffers    cached
Mem:          2048      1984        63          0        119      1617
-/+ buffers/cache:        248      1800
Swap:        4095          0      4095

I have optimized apache2 and mysql (as far as i know) with tutorials and help. So my question is:
How do i have only so few free ram?

I am running on VPS with 2048mb ddr3 + swap 4096mb ddr3, currently only 1 site with 10kb is on ISPConfig...

What should i do? Please in advices try to use step by step info.
Thank you,
V.

Antennipasi 27th November 2010 07:46

1617MB is used as cache. 0MB of swap is used. So in Windows-terms only 431MB is in use.

There is absolutely no reason to have free, unused RAM. In Linux it is very normal to use any available RAM for something usefull, in this case as cache.

You should worry your memory usage only when amount of swap in use is constantly significant number.

sjau 27th November 2010 09:01

Ram is incredibly fast... so Linux caches things as long as there is ram free... if those things are needed again, it's a lot faster reading from cache than from disk again.

Basically the principle "unused ram == wasted ram" applies here :)

sjau 27th November 2010 09:01

Ram is incredibly fast... so Linux caches things as long as there is ram free... if those things are needed again, it's a lot faster reading from cache than from disk again.

Basically the principle "unused ram == wasted ram" applies here :)

vaio 27th November 2010 09:47

So this basicly means that when i add site it won't ran out of ram just like that :)...

Thank you both for excellent explanation. I thought it's same as normal PC (with WIN apparently :)).

Kind regards,
V.

vaio 28th November 2010 23:23

For all people who want to know why there is so 'little0 free ram on linux:

http://www.linuxatemyram.com/atemyram.png
Why, why, WHY?? :) click for explanation...


kind regards,
V.


All times are GMT +2. The time now is 19:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.