nginx-0.7.44

Igor Sysoev is at rambler-co.ru
Thu Mar 26 09:50:53 MSK 2009


On Wed, Mar 25, 2009 at 06:36:38PM +0100, Johan Bergstr?m wrote:

> 
> On Mar 25, 2009, at 18:16 , Igor Sysoev wrote:
> 
> >On Tue, Mar 24, 2009 at 07:22:03PM +0100, J?r?me Loyet wrote:
> >
> >>>>Other question, how can I determine the maximum number of cache  
> >>>>entrie
> >>>>I have with a particular conf ?
> >>>>
> >>>>proxy_cache_path  /data/nginx/cache  keys_zone=one:10m;
> >>>>
> >>>>What is the size of keys on shared mem (X bytes). So that I can
> >>>>extrapole the maximum number N of cache entries with YMo of shared
> >>>>memory (N = (Y x 1024 x 1024) / X). (if there is nothing elese in  
> >>>>the
> >>>>shared mem and if the key size is constant)
> >>>
> >>>The key size is 128 bytes.
> >>
> >>Thanks for the answer.
> >>
> >>Is there a way to know the effective used size in the SHM segement ?
> >
> >No, if shared memory is overflowed you will see in error_log the  
> >message:
> >"ngx_slab_alloc(): failed". The problem is that currently no way to  
> >see
> >what memory zone is overflowed: no name and subsystem (proxy cache,
> >ssl_session_cache, limit requests, etc.) I'm going to fix this.
> 
> Would it be possible to somehow add this into the status module, so  
> it's possible to graph both disk allocation and other stats such as  
> hits/misses?

Only when the full featured status module will be introduced.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list