Search squid archive

Re: not caching enough

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29.09.09 02:20, tookers wrote:
> Why not make use of some of your RAM for cache_mem? It will make requests
> for smaller, more frequently requested files a hell of a lot quicker, and it
> should give you a better hit ratio.

mostly because we weren't sure if his RAM will be enough for the cache
index...
 
> # 3GB process size limit in 32bit, so don't set higher than 1 GB for a very
> busy cache
> cache_mem 512 MB
> maximum_object_size_in_memory 2048 KB

I would set those lower, maybue 128M/128K

> A few refresh_patterns to get images and other static content in cache for
> longer:-
> 
> refresh_pattern \.jpg$ 3600 50% 60 ignore-reload
> refresh_pattern \.gif$ 3600 50% 60 ignore-reload
> refresh_pattern \.css$ 3600 50% 60 ignore-reload
> refresh_pattern \.js$ 3600 50% 60 ignore-reload
> 
> # Cache all html for 5 minutes
> refresh_pattern \.html$ 300 50% 10 ignore-reload

ignore-reload may cause problems for clients. I strongly discourage using
that. Better skip those refresh_patterns, for now se can use defaults.

-- 
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; 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.
(R)etry, (A)bort, (C)ancer

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux