Too many cache

Hello,

I’v got an heavy problem of cache overflow… First I give you the
problem in an image (by munin) :

Like you can see, the cache is taking about 900 Mo !

The installation :[list]
[] NGINX - 0.7.67
[
] PHP - 5.3.3
[] APC (bêta)
[
] Suhosin - 0.9.32.1
[*] Suhosin-patch - 5.3.3-0.9.10
[/list]

(If you need of the configure options, I will give them.)

What can I do in that case ?

Thanks,
J.

Posted at Nginx Forum:

Hello!

On Tue, Oct 05, 2010 at 07:22:28AM -0400, Avalon wrote:

Hello,

I’v got an heavy problem of cache overflow… First I give you the
problem in an image (by munin) :

Like you can see, the cache is taking about 900 Mo !

You still have about 700M of free (unused) memory, so it looks
like cache “underflow” for me. Cache is expected to use all
available memory as long as it’s not needed for apps and cache
have something to cache.

Maxim D.

On 10/05/2010 01:22 PM, Avalon wrote:

Hello,

I’v got an heavy problem of cache overflow… First I give you the
problem in an image (by munin) :

Like you can see, the cache is taking about 900 Mo !

The cache adapts dynamically to the workload i.e. as long as you have
free
memory the operating system will try to cache data in there. Once you
run
out of free memory the os will begin to throw out cached information to
satisfy allocation requests.

The real amount of free memory (as in “memory that can be allocated by
applications” also sometimes calles “available memoery”) is free memory
(as
in “completely unused memory” that is shown in e.g. top or
/proc/meminfo)
plus cached memory.

Regards,
Dennis

You still have about 700M of free (unused) memory,
so it looks
like cache “underflow” for me. Cache is expected
to use all
available memory as long as it’s not needed for
apps and cache
have something to cache.

Maxim D.

Thank you ! I think this cache is “underflow” because this server hasn’t
many website on it.

applications" also sometimes calles “available
memoery”) is free memory (as
in “completely unused memory” that is shown in
e.g. top or /proc/meminfo)
plus cached memory.

Regards,
Dennis

Thank your for this valuable answer !!

Posted at Nginx Forum: