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]

 



On Thu, 2005-02-17 at 12:52 -0600, Kevin wrote:

> 
> What mechanism are you using to set expire times?

Well, I'm still not sure what I shall use! I mean: should I use
refresh_pattern!? Or what? I mean, refresh_pattern can let me change
refresh period based on sire url right? What' else could I use?!

> 
> 
> > 2) supposing to have two different cache dir, the first one for normal
> > web doc and the second one for big multimedia files, whenever squid
> > needs space to cache, let's say, another web doc (small file) does it
> > start applying the replacement policy only on the small file cache_dir
> > or even in the big file cache dir? I don't want it to purge big
> > multimedia files, when it needs to cache only a small web doc!!!
> 
> That's a good question.
> 
> I guess it depends on how the code is implemented, the squid.conf comments
> say "It is used to initially choose the storedir", but not what happens if the
> initial storedir is full?

Right, this is interesting to understand, but I couldn't find info
anywhere! :/

> 
> 
> > > You might also consider setting the maximum_object_size_in_memory
> > > relatively low, even if you have quite a bit of RAM to work with.  I have
> > > caches with cache_mem set to 2GB, yet I set m_o_s_i_m to 128KB.
> > 
> > Well, if I need to cache very big files, let's say about 1GB in size, I
> > can't set m_o_s to 128kb or I would never cache files bigger than
> > 128kb...Am I wrong?
> 
> From a production cache:
>    $ egrep "^(cache_dir|cache_mem|maximum_)" squid.conf
>    cache_mem 2100 MB
>    maximum_object_size 16383 KB
>    maximum_object_size_in_memory 128 KB
>    cache_dir aufs /squid 1600 16 256
> 
> Kevin Kadow

Well, maybe I did misunderstood! I was thinking about m_o_s and not
m_o_s_i_m, sorry! Anyway, giving a look at your configuration, can I ask
you why do you have 2.1GB on RAM dedicated to squid, while you have only
1.6GB of cache storage? I've read that normally you should dedicate
about 10MB of RAM for each GB of storage space...right?
Well, considering that I could cache very big files, let's say about
also 1GB per file, what do you suggest me? I was thinking something like
this:

cache_mem 1000 MB
maximum_object_size 1000MB
maximum_object_size_in_memory ??
cache_dir aufs /web ?? 16 256
cache_dir aufs /multimedia ?? 16 256

where the cache_dir in total could be up to 1TB (I could even use more
disk space, but then, I think, I would have problem for RAM!!!!)

Thanks!

Marco


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

  Powered by Linux