Re: [squid-users] ./squid -z questions

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Wed, 30 Jun 2004 11:12:33 +0200

> Matus UHLAR - fantomas wrote:
> >On 28.06 22:54, Hendrik Voigtländer wrote:
> >
> >>This is what I would do:
> >>- deaktivate all cache_dir which are close to 100%
> >>- deaktivate all cache_dirs on one disk
> >>- repartition it with a single partition & mkreiserfs
> >>- put one cache_dir on it
> >>- repeat with the other disks
> >>- if you are on a big uplink hit ratios shouldnt suffer to much, take
> >>your time and let squid refill the cache_dirs.
> >>- be careful with the cache_dir size. with your disks not more than 50%
> >>and you don't need to keep more than a week of traffic.
> >
> >
> >well, I would use more than 50%, maybe 70%, or better, ~80% of free space
> >on created filesystem, where the overhead is already substracted

On 29.06 20:08, Hendrik Voigtländer wrote:
> In general I agree on a maximum possible usage of ~80%, but if I read
> the mails correctly she has something about 2GB of RAM but 5 x 73 GB
> Harddisk for the cache_dirs only. This is about 300GB of storage, what
> about the RAM requirements when using ~80% ?
>
> http://www.mail-archive.com/squid-users@squid-cache.org/msg18052.html
>
> IMHO there is not enough RAM for all disks in the machine. As having
> more disks gives more speed I think reducing the maximum usage is a
> better option than reducing the number of disks.

Of course I was thinking about this, see below for explanation

> >I would check and probably increase maximum_object_size up to ~32MB
> >and use cache_replacement_policy heap LFUDA

> Good idea for such a large storage. Any idea how this will influence the
> RAM requirements?

As long as RAM usage depends on number of files in cache, increasing
maximum storage size will lower the number of files in cache and thus
decrease the memory consumption. Also, with LFUDA replacement policy it
will increate the byte hit radio.

So, two steps I mentioned could increase cache effectiveness, which of
course higly depends on what maximum_object_size currently used. IF it's
let's say 4MB, it really could be increased to sizes I mentioned.

I have maximum storage size of 20MB and I will probably increase it next
time I get to some simple analysis of cache usage. Last time I checked the
usage I saw that 20MB was the highest file size that was downloaded more
than once...

-- 
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.
If Barbie is so popular, why do you have to buy her friends? 
Received on Wed Jun 30 2004 - 03:12:37 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:03 MDT