Re: Cache Byte Hit Ratios

From: Joe Cooper <joe@dont-contact.us>
Date: Mon, 10 Jul 2000 22:22:28 -0500

Hi Jimmy,

There's the obvious things:

Increase the maximum_object_size from 4MB to something much higher (32MB
is not unreasonable)

If you're using the newer Squid's you could try the LFUDA replacement
policy with a large maximum_object_size

As for the cache_mem setting, I've found that under Linux (you are
running linux, if I recall correctly?), as long as you aren't pushing
your system memory usage into swap it doesn't hurt performance to raise
this pretty high, in fact it helps. I usually run with 48MB or 64MB
here for a 384MB system with ~18GB of cache_swap. So for your system it
could be higher than that. Maybe 96MB. I'm unsure of what impact this
has on BHR. It certainly increases the MEM_HITS.

Another good idea for BHR is to get more users. ;-)

Nonetheless, 25% BHR is not that bad. It depends on the diversity of
interest among your clients, among other things. I think the norm among
ISP's is between 25% and 35%, and declining as the web gets bigger and
more diverse and less cacheable (I'm hoping to see the trend towards
non-cacheable content be reversed in the near future!).

HTH. I'm sure some folks who know more than I will have some ideas to
add, too. Good luck.

Jimmy Stewpot wrote:
>
> Hello all,
> I am just trying to increase my cache byte hit ratios, and am after some information on how this is best achieved. Currently my system has around 1gb of RAM, and is running at around 25% byte hit ratios, is this respectable, my HTTP request HIT ratio is around 55%.
> My current squid memory is set to 32mb. Should i change this i read somewhere that changing this figure would actually help increasing the byte hit ratios. But elsewhere i have read that increasing this figure can actually cause harm to the performance in other areas, are these figures correct?
> Is there any resource that i could find more information about these items. Or has anyone got any experience that could help me increase my byte hit ratios?.
> NB i have around 64gb of Cache_dir space
> thankyou in advance
> Jimmy Stewpot

                                 --
                    Joe Cooper <joe@swelltech.com>
                Affordable Web Caching Proxy Appliances
                       http://www.swelltech.com
Received on Mon Jul 10 2000 - 21:19:22 MDT

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