Re: [squid-users] How to improve Hit Ratio

From: Matus UHLAR - fantomas <uhlar_at_fantomas.sk>
Date: Fri, 13 Feb 2009 12:04:57 +0100

On 10.02.09 23:12, Jevos, Peter wrote:
> I'd like to ask you how can I improve my Hit Ratio ( byte or request )
> cause it's on average 12-15 %, so it seems too low

> I'm using cacti to measure squid snmp activites and my basic config is:
>
> RAM: 1 GB
> cache_mem 8 MB
> maximum_object_size_in_memory 1 MB
> cache_dir ufs /var/cache/squid 5500 16 256
> minimum_object_size 0 bytes
> maximum_object_size 4194304 bytes
> cache_swap_low 90
> cache_swap_high 95

instead of playing refresh_patterns, increase disk cache

> refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 100% 43200
> reload-into-ims
> refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 100% 43200
> reload-into-ims
> refresh_pattern ^ftp: 1440 20% 10080
> refresh_pattern ^gopher: 1440 0% 1440
> refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200
> override-expire ignore-no-cache ignore-private
> refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90%
> 432000 override-expire ignore-no-cache ignore-private
> refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$
> 10080 90% 43200 override-expire ignore-no-cache ignore-p
> rivate
> refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
> refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
> refresh_pattern . 0 40% 40320

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Posli tento mail 100 svojim znamim - nech vidia aky si idiot
Send this email to 100 your friends - let them see what an idiot you are
Received on Fri Feb 13 2009 - 11:05:06 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 13 2009 - 12:00:02 MST