Re: cache Question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 17 May 2003 09:59:16 +0200

On Friday 16 May 2003 23.13, Rodsak Promrattanakul wrote:
> Dear Squid Developer
>
> 1.cache_mem Hit_ratio is vary cache_mem size ?

Yes.

> 2.(cache_mem&cache_dir) Hit_ratio is not vary cache_mem size ?

Not by much.

> 2.When cache_dir is full ,for the better performance
> I should remove cache_dir and create new swap or I should do
> nothing ?

You should do nothing.

If your request load is higher than what the disk cache can sustain
then you should either fix the disk cache or run without a disk
cache.

> 3.statRequestHitMemoryRatio(time_period) is the function used to
> call cache_mem Hit Ratio?

Yes.

> Why this function is not support time_period > 60 mins ?

Because there only is minute precision of the first 60 minutes, and we
have never needed to access the hourly statistics like this.

The hourly statistics can be accessed in the same manner, replacing
CountHist by CountHourHist and minutes by hours. Up to 72 hours
(N_COUNT_HOUR_HIST) of hourly statistics is kept by Squid.

There is also a interesting graph mode hidden in Squid which can show
simple ascii graphs of these. See the STAT_GRAPHS define..

All the stat data is also externally accessible via the snmp interface
or by dumping the raw stathist counters via cachemgr.

Regards
Henrik
Received on Sat May 17 2003 - 01:58:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:56 MST