[asterisk-users] Asterisk proces memory increase

Shaun Ruffell sruffell at digium.com
Thu Mar 8 10:20:56 CST 2012


Un top-posting...

On Thu, Mar 08, 2012 at 09:47:54AM +0100, Jonas Kellens wrote:
> On 03/08/2012 09:44 AM, [Digital^Dude] ® wrote:
> >AFAIK:
> >Linux has a tendency to keep RAM filled up with any recently accessed
> >progarm. To keep programs access fast enough, it never removes something
> >from the memory, only replaces it, in case some program has more frequent
> >access than the one already present in ram.
> >
> >If your server isn't swapping.. things are okay.
>
> Nope, no swapping...
> 

Another minor comment on this.  It is better to look at the -/+ line of the
free output to see the amount of free memory that is available. This line
moves memory used by the page cache from the used to free column.  In your
case the running asterisk server had 3569MB free before reboot and 3624MB
after.

You can also flush the page cache and *truly* free that memory with "echo 1 >
/proc/sys/vm/drop_caches". This means the system will take a performance hit
when since it must reload from disk those pages which you just flushed the
next time those files are accessed.

Cheers,
Shaun

-- 
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list