Search squid archive

Re: [squid-users] Two squid instances based on file types? Is it good?

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

 



Thanks Henrik for your answer, I know that lru does not take in account
any size information. But my question is, even if not taking in account
any size information, supposing to have two different cache_dir, one for
big multimedia files and another one for small normal web doc, whenever
squid needs space to cache a new web doc, for instance, will it even
start the replacement policy on the cache_dir for big multimedia files,
or only in the cache_dir for small web doc?

Thanks in advance!

Marco

On Wed, 2005-02-16 at 22:27 +0100, Henrik Nordstrom wrote:
> On Wed, 16 Feb 2005, Marco Crucianelli wrote:
> 
> > As I would like to cache normal web stuff and big multimedia files, like 
> > videos, I was thinking about using two different squid instances running 
> > on two different machine. This idea was led by the fact that I'm not 
> > sure on how squid uses replacement algorithm. I'd bettere explain it: if 
> > I use only one squid, having small files (html pages) and huge files 
> > togheter (big videos) in the same cache, I guess, will make big files 
> > the first candidates to be replaced in cache, right?
> 
> Depends on the removal policy used. The default lru policy (Least Recently 
> Used) only considers when the object was last accessed, not the size.
> 
> The heap based policies includes the object size in the weight.
> 
> Regards
> Henrik

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

  Powered by Linux