Search squid archive

Re: [squid-users] squid child process extended

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

 



Elsen Marc wrote:





right, cache partition size is 15gb  and we have created ....

cache_dir diskd /cache2/cache1 7500
cache_dir diskd /cache2/cache2 7500


Is this fine? or we have to leave some space on cache2 partition , currently 7500 + 7500 = 15000 all the partition space
what is the good partice?





I would advise to only specify one cachedir per partition, it does not make much sense to define two, in performance terms (e.g). Then make it somewhat smaller as the available partition size and you will be fine as in :

 cache_dir diskd /cache2/total_cache 13000

Note  that squid by itself will keep some free space
within the specified cache dir.
These values are controlled by :

cache_swap_low
and cache_swap_high


settings; check squid.conf.default (comments), for further explanations.

M.


alright I got the point atm what i did is to decrease the cache_dir size and restart the squid. However now im thinking about to create a single cache directory on a single partition but duno howto do this, im pasting the output of df and cache_dir lines from squid.conf hopes someone from list suggest a smooth way out to single cache directory per partition.
#df -lh
/dev/sda2 16G 15G 991M 94% /cache1
/dev/sda6 15G 14G 1015M 94% /cache2
/dev/sdb1 16G 15G 1.5G 91% /cache3
/dev/sdb3 16G 15G 1.8G 89% /cache4


#vi /usr/local/squid/etc/squid.conf

cache_dir diskd /cache1/cache1 7500 32 512 Q1=72 Q2=66 Q1=72 Q2=64
cache_dir diskd /cache1/cache2 7500 32 512 Q1=72 Q2=66 Q1=72 Q2=64
cache_dir diskd /cache2/cache1 7000 32 512 Q1=72 Q2=66 Q1=72 Q2=64
cache_dir diskd /cache2/cache2 7000 32 512 Q1=72 Q2=66 Q1=72 Q2=64
cache_dir diskd /cache3/cache1 7500 32 512 Q1=72 Q2=66 Q1=72 Q2=64
cache_dir diskd /cache3/cache2 7500 32 512 Q1=72 Q2=66 Q1=72 Q2=64
cache_dir diskd /cache4/cache1 7500 32 512 Q1=72 Q2=66 Q1=72 Q2=64
cache_dir diskd /cache4/cache2 7500 32 512 Q1=72 Q2=66 Q1=72 Q2=64

store_dir_select_algorithm round-robin


1) To create a single cache direcotry / partition (as you suggested) 3) would i have to loose my stored cache? 2) Is this beneficial to use "Q1=72 Q2=66 Q1=72 Q2=64" things with diskd ?

Thanks and regards



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

  Powered by Linux