[Asterisk-Users] memory consumption

Martijn van Oosterhout martijn at ecomtel.com.au
Fri Mar 11 09:00:52 MST 2005


You should good for a better explanation, but here's the gist:

1. Free memory is wasted memory. You paid for it so obviously it should
be used. Modern operating systems turn your "free" memory into disk
cache. So the actual amount of memory available is the combination of
free, buffers and cache.

2. Secondly, asterisk uses threads, so all of those processes are using
the same address space and have the same amount of memory. Due to
memory being shared in various ways, the values in top will likely never
add up to anything resembling your actual memory...

Hope this helps,

On Fri, Mar 11, 2005 at 12:42:30PM -0300, Matias G. wrote:
> More info, when in top sorted by Mem usage what I get is:
> 
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
>   257 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   258 root      14   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   260 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   261 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   262 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   263 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   266 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   267 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   268 root      10   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   269 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   270 root      10   0  7584 7520  3604 S     0.0  1.4   0:01 asterisk
>   271 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   274 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   275 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   276 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   277 root       9   0  7584 7520  3604 S     0.0  1.4   0:00 asterisk
>   552 root      17   0  7584 7520  3604 R     0.5  1.4   0:00 asterisk
>   353 root       9   0  1960 1960  1684 R     0.0  0.3   0:00 sshd
> 
> followed by some other processes...
-- 
Martijn van Oosterhout
Ecomtel Pty Ltd



More information about the asterisk-users mailing list